(0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ExqUqVJZMUQsJ9rQmhn60.bX0o9VLpt9beUN1h5t9JqP1U56Ipg.W"], ["created_at", "2018-12-05 18:38:39.472778"], ["updated_at", "2018-12-05 18:38:39.472778"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rz3msAQHYnH.3L7UAPs7GOi3NqlrWiSdVawYzCEltUo2Tu8kX7IQa"], ["created_at", "2018-12-05 18:38:39.476946"], ["updated_at", "2018-12-05 18:38:39.476946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.484099"], ["updated_at", "2018-12-05 18:38:39.484099"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7065], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9491], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9491], ["room_id", 7065], ["created_at", "2018-12-05 18:38:39.502629"], ["updated_at", "2018-12-05 18:38:39.502629"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3577"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3577], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7065], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9491], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 119.6ms Sent mail to 123@123.com (5.2ms) Date: Wed, 05 Dec 2018 16:38:39 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081b2f9b124_539a2ace3c6e66008829@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081b2f9a384_539a2ace3c6e66008792";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081b2f9a384_539a2ace3c6e66008792 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081b2f9a384_539a2ace3c6e66008792 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
       Email styles need to be inline   
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081b2f9a384_539a2ace3c6e66008792–

Completed 302 Found in 129ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wFC6E9P6kYoW/qYoWvGyNuhf8DGJ.5/mdwOMCDmg9iDf.lPw9zmzC"], ["created_at", "2018-12-05 18:38:39.641928"], ["updated_at", "2018-12-05 18:38:39.641928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PD70n13RYxTx2BAV/wFozea16VziolFUSdLDu/8U6Q24RktpVHQYy"], ["created_at", "2018-12-05 18:38:39.644906"], ["updated_at", "2018-12-05 18:38:39.644906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.646154"], ["updated_at", "2018-12-05 18:38:39.646154"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7066], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9493], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9493], ["room_id", 7066], ["created_at", "2018-12-05 18:38:39.648743"], ["updated_at", "2018-12-05 18:38:39.648743"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3578"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3578], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7066], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9493], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-05 18:38:39.653290"], ["id", 3578]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Wed, 05 Dec 2018 16:38:39 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081b2fa0715_539a2ace3c6e6600902c@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081b2fa01b4_539a2ace3c6e66008924";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081b2fa01b4_539a2ace3c6e66008924 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081b2fa01b4_539a2ace3c6e66008924 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
       Email styles need to be inline   
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081b2fa01b4_539a2ace3c6e66008924–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R1uhonS6sp7dMqE2KwwdyOsiV6O/9kf5hmPDAHrOmbFnE1m125i9C"], ["created_at", "2018-12-05 18:38:39.662520"], ["updated_at", "2018-12-05 18:38:39.662520"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4PX/i04vA/Vynh6cnvsmFeCIpvRiBZZm8kkRcPvEEjc1yRVROvJ/i"], ["created_at", "2018-12-05 18:38:39.665542"], ["updated_at", "2018-12-05 18:38:39.665542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.667003"], ["updated_at", "2018-12-05 18:38:39.667003"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7067], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9495], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9495], ["room_id", 7067], ["created_at", "2018-12-05 18:38:39.670447"], ["updated_at", "2018-12-05 18:38:39.670447"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.8aubC8x7yfFt2PZRLWUVO6cGzstvNKW6yHI3RDb7rnuiiFZOuL1C"], ["created_at", "2018-12-05 18:38:39.676988"], ["updated_at", "2018-12-05 18:38:39.676988"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vQhklo0tf/16U5bNxPw8Je0EB8YegBqf9TjM3V25fLW3iCg7gpwwa"], ["created_at", "2018-12-05 18:38:39.680151"], ["updated_at", "2018-12-05 18:38:39.680151"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.681494"], ["updated_at", "2018-12-05 18:38:39.681494"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7068], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9497], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9497], ["room_id", 7068], ["created_at", "2018-12-05 18:38:39.684479"], ["updated_at", "2018-12-05 18:38:39.684479"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3580], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Nc7xmy0QZQy2G47SEHj6/OxCEqBdc/Uil9HkdPtioYXRFw3NtsGF."], ["created_at", "2018-12-05 18:38:39.689667"], ["updated_at", "2018-12-05 18:38:39.689667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9498"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "GXOQRhFlRpy9DRONsGH-rQ"], ["updated_at", "2018-12-05 18:38:39.692942"], ["id", 9498]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-05 18:38:39.694395"], ["reset_sent_at", "2018-12-05 18:38:39.694077"], ["id", 9498]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.4ms)

UserMailer#password_reset: processed outbound mail in 5.6ms Sent mail to teste@unb.com.br (2.3ms) Date: Wed, 05 Dec 2018 16:38:39 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c081b2fab599_539a2ace3c6e6600936d@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081b2faafd1_539a2ace3c6e660092bf";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081b2faafd1_539a2ace3c6e660092bf Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/GXOQRhFlRpy9DRONsGH-rQ/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c081b2faafd1_539a2ace3c6e660092bf Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/GXOQRhFlRpy9DRONsGH-rQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c081b2faafd1_539a2ace3c6e660092bf–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$7pW0bkzvfJMmkp/71nBdYO6jusaBf9swj3AKc9kyEm0H.imvRQQo2"], ["created_at", "2018-12-05 18:38:39.707713"], ["updated_at", "2018-12-05 18:38:39.707713"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 2.2ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$z2QTQlm2MCgjBIpHcEJPZuyUboY0B85ILsAMLOWLzn8xDWJ8fdjt6"], ["created_at", "2018-12-05 18:38:39.717365"], ["updated_at", "2018-12-05 18:38:39.717365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9500"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$4/a2W9f7XEMNagpNfdeqZurkTWKg3aeQSvRalvrh44aMBVwY3M7UO"], ["updated_at", "2018-12-05 18:38:39.723037"], ["id", 9500]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 5ms (ActiveRecord: 0.9ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$YHEIi2q5M8v/hlf0XafktOJ2lx0JtGSXxawQ1ScJKErnDkQVl8UZ."], ["created_at", "2018-12-05 18:38:39.729968"], ["updated_at", "2018-12-05 18:38:39.729968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9501"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$VLEhDejmX1sgPKGxC2ek7.1igiLVJwH//HrKPQ4li981akuLHP/L."], ["created_at", "2018-12-05 18:38:39.740581"], ["updated_at", "2018-12-05 18:38:39.740581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9502"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)

Completed 200 OK in 9ms (Views: 1.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$2pikpjgS2mYd1Uk8bspaWO6yjVMsy/gClQC/t0QyVigCm1pTasYAa"], ["created_at", "2018-12-05 18:38:39.756048"], ["updated_at", "2018-12-05 18:38:39.756048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9503"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ocmLt6FXE4GSkgDcU7ZvbO9eQ6k8u6gaMGlg7hzsULBib7k9jh6mm"], ["created_at", "2018-12-05 18:38:39.765046"], ["updated_at", "2018-12-05 18:38:39.765046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9504"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ihul4Q4bPwRHecfJ6uKEae4bZSWCXgESRRtQaXUR86X6LxaIaiSTO"], ["created_at", "2018-12-05 18:38:39.774133"], ["updated_at", "2018-12-05 18:38:39.774133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KSbIUaa3Fo0HKxwMiC0cf.YzAqdEc674mKZ.5ZAPA.tFBY9IqF18W"], ["created_at", "2018-12-05 18:38:39.780904"], ["updated_at", "2018-12-05 18:38:39.780904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rwa44N5rkw/OWqTJG6mE.u/yCnEKA0SpDiHKp5HNO7nCGUQKkvaQy"], ["created_at", "2018-12-05 18:38:39.789201"], ["updated_at", "2018-12-05 18:38:39.789201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.790779"], ["updated_at", "2018-12-05 18:38:39.790779"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7069], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9507], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9507], ["room_id", 7069], ["created_at", "2018-12-05 18:38:39.793886"], ["updated_at", "2018-12-05 18:38:39.793886"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dJGKYeS0/O1Lath1x0FODe1Ljc7oLWJdZPaRnH0mq0h8Vx/X4mnym"], ["created_at", "2018-12-05 18:38:39.800575"], ["updated_at", "2018-12-05 18:38:39.800575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.802867"], ["updated_at", "2018-12-05 18:38:39.802867"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7070], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9508], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9508], ["room_id", 7070], ["created_at", "2018-12-05 18:38:39.806169"], ["updated_at", "2018-12-05 18:38:39.806169"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eoic/U0gI8uChSFW9pqK.uoKY4mD0sK1px4ZAGdeIZ3r8c3vK2sRe"], ["created_at", "2018-12-05 18:38:39.832628"], ["updated_at", "2018-12-05 18:38:39.832628"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.834389"], ["updated_at", "2018-12-05 18:38:39.834389"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.841976"], ["last_sign_in_at", "2018-12-05 18:38:39.841976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.842520"], ["id", 9509]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7071"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7071], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9509], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9509], ["room_id", 7071], ["created_at", "2018-12-05 18:38:39.850185"], ["updated_at", "2018-12-05 18:38:39.850185"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7071], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$srGq8MtZVPWzFtLhx96qjOzQttaoZztOIeO/g.ZugeM76ZR9sK/DS"], ["created_at", "2018-12-05 18:38:39.857571"], ["updated_at", "2018-12-05 18:38:39.857571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.859312"], ["updated_at", "2018-12-05 18:38:39.859312"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.861279"], ["last_sign_in_at", "2018-12-05 18:38:39.861279"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.861670"], ["id", 9510]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7072"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7072], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9510], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9510], ["room_id", 7072], ["created_at", "2018-12-05 18:38:39.865819"], ["updated_at", "2018-12-05 18:38:39.865819"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jr/L6IYm/HP5Aog4trRbSe3nVowZ096ItylPBI.QQQskUf0MkrXtG"], ["created_at", "2018-12-05 18:38:39.871509"], ["updated_at", "2018-12-05 18:38:39.871509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.873178"], ["updated_at", "2018-12-05 18:38:39.873178"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.875400"], ["last_sign_in_at", "2018-12-05 18:38:39.875400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.875782"], ["id", 9511]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7073", "user_id"=>"9511"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7073], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9511], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9511], ["room_id", 7073], ["created_at", "2018-12-05 18:38:39.879905"], ["updated_at", "2018-12-05 18:38:39.879905"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7073", "user_id"=>"9511"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9511], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7073], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9511], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9511], ["room_id", 7073], ["created_at", "2018-12-05 18:38:39.886072"], ["updated_at", "2018-12-05 18:38:39.886072"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zlry8SnMGxMsc9kf5mmZXuxPpdkHnzGlm5cg.0KI30WaHdvup1VlG"], ["created_at", "2018-12-05 18:38:39.891982"], ["updated_at", "2018-12-05 18:38:39.891982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.893646"], ["updated_at", "2018-12-05 18:38:39.893646"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.895969"], ["last_sign_in_at", "2018-12-05 18:38:39.895969"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.896342"], ["id", 9512]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7074", "user_id"=>"9512"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7074], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9512], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9512], ["room_id", 7074], ["created_at", "2018-12-05 18:38:39.900438"], ["updated_at", "2018-12-05 18:38:39.900438"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7074", "user_id"=>"9512"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9512], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7074], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9512], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9512], ["room_id", 7074], ["created_at", "2018-12-05 18:38:39.906153"], ["updated_at", "2018-12-05 18:38:39.906153"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7074], ["user_id", 9512], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ktKvNvZzhXovBdW3crxpION3p/3TDiY6/gEgTJJKtMD/ADiEjGVfS"], ["created_at", "2018-12-05 18:38:39.912904"], ["updated_at", "2018-12-05 18:38:39.912904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.914672"], ["updated_at", "2018-12-05 18:38:39.914672"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.916901"], ["last_sign_in_at", "2018-12-05 18:38:39.916901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.917320"], ["id", 9513]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7075", "user_id"=>"9513"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7075], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9513], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9513], ["room_id", 7075], ["created_at", "2018-12-05 18:38:39.921857"], ["updated_at", "2018-12-05 18:38:39.921857"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7075", "user_id"=>"9513"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9513], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7075], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9513], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9513], ["room_id", 7075], ["created_at", "2018-12-05 18:38:39.927887"], ["updated_at", "2018-12-05 18:38:39.927887"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7075], ["user_id", 9513], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$orijvkj2GoCQ45ZokeQp6etOrswUity3CLT5FPAy/0.hIJRFIvfzq"], ["created_at", "2018-12-05 18:38:39.934548"], ["updated_at", "2018-12-05 18:38:39.934548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.936314"], ["updated_at", "2018-12-05 18:38:39.936314"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.938283"], ["last_sign_in_at", "2018-12-05 18:38:39.938283"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.938703"], ["id", 9514]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7076"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7076], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3aQufryh7Z5RTGdjjcc5necWN.qLk8FBx3NXj5zOs9ObluFuviRf6"], ["created_at", "2018-12-05 18:38:39.945728"], ["updated_at", "2018-12-05 18:38:39.945728"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.947370"], ["updated_at", "2018-12-05 18:38:39.947370"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.949361"], ["last_sign_in_at", "2018-12-05 18:38:39.949361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.949814"], ["id", 9515]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7077"}
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NKOk2CT3JeFVTZuS9gLZ7exxOS5QcgJjCuE2yp9rDcoTJEYjtBEbG"], ["created_at", "2018-12-05 18:38:39.962496"], ["updated_at", "2018-12-05 18:38:39.962496"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:39.964186"], ["updated_at", "2018-12-05 18:38:39.964186"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7078], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9516], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9516], ["room_id", 7078], ["created_at", "2018-12-05 18:38:39.967296"], ["updated_at", "2018-12-05 18:38:39.967296"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7078” for 127.0.0.1 at 2018-12-05 16:38:39 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:39.968912"], ["last_sign_in_at", "2018-12-05 18:38:39.968912"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:39.969327"], ["id", 9516]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7078"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7078], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7078')
Rendered appointments/show.html.erb within layouts/application (8.1ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 6983ms (Views: 6981.3ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eQ3nHxyvFCvwdgem64jikeIjrNM5BI/K3gqkhwGGtZaRyXGoI1t7a"], ["created_at", "2018-12-05 18:38:46.959218"], ["updated_at", "2018-12-05 18:38:46.959218"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:46.960944"], ["updated_at", "2018-12-05 18:38:46.960944"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7079], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9517], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9517], ["room_id", 7079], ["created_at", "2018-12-05 18:38:46.963690"], ["updated_at", "2018-12-05 18:38:46.963690"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3592/edit” for 127.0.0.1 at 2018-12-05 16:38:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:46.965178"], ["last_sign_in_at", "2018-12-05 18:38:46.965178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:46.965512"], ["id", 9517]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3592"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3592], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2TnnUDdoM4Rep5xetV50Q./tdtuPoIuk./t8wxvtVY.nMw1clE2.i"], ["created_at", "2018-12-05 18:38:46.977119"], ["updated_at", "2018-12-05 18:38:46.977119"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:38:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:46.978981"], ["last_sign_in_at", "2018-12-05 18:38:46.978981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:46.979323"], ["id", 9518]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VPltaCxr/M/yGM.QZz5Evuvwg/u5YpvvYKTXRURa5lS7t8ryy6O7u"], ["created_at", "2018-12-05 18:38:46.990591"], ["updated_at", "2018-12-05 18:38:46.990591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:46.992177"], ["updated_at", "2018-12-05 18:38:46.992177"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7080], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9519], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9519], ["room_id", 7080], ["created_at", "2018-12-05 18:38:46.995306"], ["updated_at", "2018-12-05 18:38:46.995306"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7080], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9519], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9519], ["room_id", 7080], ["created_at", "2018-12-05 18:38:46.998005"], ["updated_at", "2018-12-05 18:38:46.998005"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:46.999458"], ["last_sign_in_at", "2018-12-05 18:38:46.999458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:46.999801"], ["id", 9519]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9519]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 9ms (Views: 4.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9XokUkdig3xVvUsT31mPceeYGxlfH3F33p0C2ywfTuOg10m7NUMvi"], ["created_at", "2018-12-05 18:38:47.014723"], ["updated_at", "2018-12-05 18:38:47.014723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.016777"], ["updated_at", "2018-12-05 18:38:47.016777"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7081], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9520], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9520], ["room_id", 7081], ["created_at", "2018-12-05 18:38:47.020718"], ["updated_at", "2018-12-05 18:38:47.020718"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7081], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9520], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9520], ["room_id", 7081], ["created_at", "2018-12-05 18:38:47.023682"], ["updated_at", "2018-12-05 18:38:47.023682"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.025291"], ["last_sign_in_at", "2018-12-05 18:38:47.025291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.025658"], ["id", 9520]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9520]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OVujBSq3DS9mOokAjuSX.eRExvKeMKdzSM489oa.XJotaPNC30J7."], ["created_at", "2018-12-05 18:38:47.035447"], ["updated_at", "2018-12-05 18:38:47.035447"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.037115"], ["updated_at", "2018-12-05 18:38:47.037115"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7082], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9521], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9521], ["room_id", 7082], ["created_at", "2018-12-05 18:38:47.040146"], ["updated_at", "2018-12-05 18:38:47.040146"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3597” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.041706"], ["last_sign_in_at", "2018-12-05 18:38:47.041706"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.042090"], ["id", 9521]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3597"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3597], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3597]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OmxAzV3UNpve/Zq4qdCJieqYPLs8WfOMUYkd/6rFGSBpT/KlmMrbe"], ["created_at", "2018-12-05 18:38:47.051972"], ["updated_at", "2018-12-05 18:38:47.051972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.053769"], ["updated_at", "2018-12-05 18:38:47.053769"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jMUt3uCsIavwso13bWAv7uhAc.od2c/8/c4V7NnV3rFd3FmFo/UQq"], ["created_at", "2018-12-05 18:38:47.056940"], ["updated_at", "2018-12-05 18:38:47.056940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7083], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9523], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9523], ["room_id", 7083], ["created_at", "2018-12-05 18:38:47.060026"], ["updated_at", "2018-12-05 18:38:47.060026"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3598” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.062018"], ["last_sign_in_at", "2018-12-05 18:38:47.062018"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.062388"], ["id", 9522]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3598"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3598], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7083], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9523], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JvU2jjx0fJ0eP6a7d1fey.G29u582Jp/vfqMw3k4ldffhG6R0MfZe"], ["created_at", "2018-12-05 18:38:47.072075"], ["updated_at", "2018-12-05 18:38:47.072075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.073704"], ["updated_at", "2018-12-05 18:38:47.073704"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aOfSeD0Xt.LbH599bfXNe.8HpNr4r2.GGRN1bsKgVuJuh1EyYyTBa"], ["created_at", "2018-12-05 18:38:47.077030"], ["updated_at", "2018-12-05 18:38:47.077030"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7084], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9525], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9525], ["room_id", 7084], ["created_at", "2018-12-05 18:38:47.080843"], ["updated_at", "2018-12-05 18:38:47.080843"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3599” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.083239"], ["last_sign_in_at", "2018-12-05 18:38:47.083239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.083723"], ["id", 9524]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3599"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3599], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7084], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9525], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RmQe0BnQaU36ncWnd4J0yuuw44Yutksui3Ny9zcVjkpUXP9R142Zu"], ["created_at", "2018-12-05 18:38:47.093286"], ["updated_at", "2018-12-05 18:38:47.093286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.094892"], ["updated_at", "2018-12-05 18:38:47.094892"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EoZe24vc4G6DYU/KRyKye.zglXaSr9atLSf9lvnMi9wgAltw68Ekm"], ["created_at", "2018-12-05 18:38:47.098219"], ["updated_at", "2018-12-05 18:38:47.098219"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7085], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9527], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9527], ["room_id", 7085], ["created_at", "2018-12-05 18:38:47.101382"], ["updated_at", "2018-12-05 18:38:47.101382"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3600” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.103331"], ["last_sign_in_at", "2018-12-05 18:38:47.103331"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.103704"], ["id", 9526]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3600"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3600], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7085], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9527], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-05 18:38:47.107903"], ["id", 3600]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 2.0ms Sent mail to 123@123.com (2.6ms) Date: Wed, 05 Dec 2018 16:38:47 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c081b371b59c_539a2ace3c6e6600100b4@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c081b371af89_539a2ace3c6e6600991f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c081b371af89_539a2ace3c6e6600991f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c081b371af89_539a2ace3c6e6600991f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c081b371af89_539a2ace3c6e6600991f–

Completed 302 Found in 9ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZtoIRwhLNmJC.kpCae18Lu7PYCux0JkN.n4yxjFmilQy3OOKzidz6"], ["created_at", "2018-12-05 18:38:47.118980"], ["updated_at", "2018-12-05 18:38:47.118980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.120815"], ["updated_at", "2018-12-05 18:38:47.120815"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/SmMeQrXOn6Z0D5zZuIyWO4bHVLZcb8sup.bLqDwnmblVqy6LPoSK"], ["created_at", "2018-12-05 18:38:47.124123"], ["updated_at", "2018-12-05 18:38:47.124123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7086], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9529], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9529], ["room_id", 7086], ["created_at", "2018-12-05 18:38:47.127410"], ["updated_at", "2018-12-05 18:38:47.127410"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:38:47.128835"], ["id", 3601]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7086], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9529], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9529], ["room_id", 7086], ["created_at", "2018-12-05 18:38:47.131565"], ["updated_at", "2018-12-05 18:38:47.131565"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:38:47.132880"], ["id", 3602]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.134312"], ["last_sign_in_at", "2018-12-05 18:38:47.134312"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.134684"], ["id", 9528]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9529], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7086], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9529], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7086], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.5ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OL.8yhciA/PerWX65f.ffOaweAbV6JuNOeA/ZTiJNo037Kcbp/i6S"], ["created_at", "2018-12-05 18:38:47.148991"], ["updated_at", "2018-12-05 18:38:47.148991"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.150820"], ["updated_at", "2018-12-05 18:38:47.150820"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$./PwQ.T1NRXKB6vnNhuCPeW0eg0LLBjRAiN2rmDUiU9Av1.ryJYx2"], ["created_at", "2018-12-05 18:38:47.154063"], ["updated_at", "2018-12-05 18:38:47.154063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7087], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9531], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9531], ["room_id", 7087], ["created_at", "2018-12-05 18:38:47.157223"], ["updated_at", "2018-12-05 18:38:47.157223"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-05 18:38:47.158626"], ["id", 3603]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7087], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9531], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9531], ["room_id", 7087], ["created_at", "2018-12-05 18:38:47.161374"], ["updated_at", "2018-12-05 18:38:47.161374"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-05 18:38:47.162694"], ["id", 3604]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.164126"], ["last_sign_in_at", "2018-12-05 18:38:47.164126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.164502"], ["id", 9530]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9531], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7087], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9531], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7087], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pA57mJ.dbeTFwjMS5z3QJO0yGW0AN4bhPeRfa/pApTjyw21PUcx/q"], ["created_at", "2018-12-05 18:38:47.177802"], ["updated_at", "2018-12-05 18:38:47.177802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.179814"], ["last_sign_in_at", "2018-12-05 18:38:47.179814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.180176"], ["id", 9532]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TYw3/yJAbQ3aur99wfm3R.VkVhm2kjlztQ6A7kH8FwEKt1.ZDUK72"], ["created_at", "2018-12-05 18:38:47.193753"], ["updated_at", "2018-12-05 18:38:47.193753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.195585"], ["last_sign_in_at", "2018-12-05 18:38:47.195585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.196021"], ["id", 9533]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mUyRx62gPT8SDMpyT0iPTOGDnsDfG.arpY6zPvkyhbbuB1fKr0CAm"], ["created_at", "2018-12-05 18:38:47.202258"], ["updated_at", "2018-12-05 18:38:47.202258"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.203907"], ["last_sign_in_at", "2018-12-05 18:38:47.203907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.204255"], ["id", 9534]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DX3LPWaic..9dGGSYYA0J.bBq78P.NgpfK3rYC.eqqSIb6SQoSPBa"], ["created_at", "2018-12-05 18:38:47.215708"], ["updated_at", "2018-12-05 18:38:47.215708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.217579"], ["last_sign_in_at", "2018-12-05 18:38:47.217579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.217984"], ["id", 9535]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kJmX3zpn4Iux6Z1eOOR2g.JidRQ2kDe2sna3gfuYshBrB1BPjwWdS"], ["created_at", "2018-12-05 18:38:47.232066"], ["updated_at", "2018-12-05 18:38:47.232066"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.233671"], ["updated_at", "2018-12-05 18:38:47.233671"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7088” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.235180"], ["last_sign_in_at", "2018-12-05 18:38:47.235180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.235608"], ["id", 9536]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7088"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7088], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eHXeOMvUNOkTyOW6XUlKBOlpc.x7Nhj2CpHjixp5Pm1outbu89WTK"], ["created_at", "2018-12-05 18:38:47.246045"], ["updated_at", "2018-12-05 18:38:47.246045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.247711"], ["updated_at", "2018-12-05 18:38:47.247711"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7089” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.249291"], ["last_sign_in_at", "2018-12-05 18:38:47.249291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.249690"], ["id", 9537]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7089"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7089], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.256343"], ["updated_at", "2018-12-05 18:38:47.256343"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7090” for 127.0.0.1 at 2018-12-05 16:38:47 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7090"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iBpWZV52U9eKR2MX8MtB/eGKG.XenPke.W0rQz8k1m9TParU1Bn5C"], ["created_at", "2018-12-05 18:38:47.262572"], ["updated_at", "2018-12-05 18:38:47.262572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.264240"], ["updated_at", "2018-12-05 18:38:47.264240"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7091” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.265752"], ["last_sign_in_at", "2018-12-05 18:38:47.265752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.266138"], ["id", 9538]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7091"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.275702"], ["updated_at", "2018-12-05 18:38:47.275702"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7092” for 127.0.0.1 at 2018-12-05 16:38:47 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7092"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qOgxrhPi5ucN9uwJ0FyHCuNh3IKLcZ4SwvkxEMfpt6HMpNsOj7LiK"], ["created_at", "2018-12-05 18:38:47.282500"], ["updated_at", "2018-12-05 18:38:47.282500"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.284180"], ["updated_at", "2018-12-05 18:38:47.284180"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7093/edit” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.285660"], ["last_sign_in_at", "2018-12-05 18:38:47.285660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.286050"], ["id", 9539]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7093"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7093], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$duz4jgOc6V8XQYJmJ9qAqehZVo8kmEwQVYOKmYZnTccFZRYY3E2G2"], ["created_at", "2018-12-05 18:38:47.297957"], ["updated_at", "2018-12-05 18:38:47.297957"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.299605"], ["updated_at", "2018-12-05 18:38:47.299605"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7094/edit” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.301363"], ["last_sign_in_at", "2018-12-05 18:38:47.301363"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.301856"], ["id", 9540]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7094"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7094], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.310926"], ["updated_at", "2018-12-05 18:38:47.310926"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7095” for 127.0.0.1 at 2018-12-05 16:38:47 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7095"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UrjaH5cuBEhoCadC2BFlcOfWt1S9JyNNH.b6qhlyiHWsrdTdI6m9G"], ["created_at", "2018-12-05 18:38:47.317776"], ["updated_at", "2018-12-05 18:38:47.317776"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.319953"], ["last_sign_in_at", "2018-12-05 18:38:47.319953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.320307"], ["id", 9541]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.322821"], ["updated_at", "2018-12-05 18:38:47.322821"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zWcDSv2s3Tnp0ATSvuwIVe.dQwGawiexZ9HqNMypL9TK7vdYNYxOK"], ["created_at", "2018-12-05 18:38:47.328873"], ["updated_at", "2018-12-05 18:38:47.328873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.330927"], ["last_sign_in_at", "2018-12-05 18:38:47.330927"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.331296"], ["id", 9542]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.334015"], ["updated_at", "2018-12-05 18:38:47.334015"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sx3IeQgbbmGEoBH4S7iufON.sZ0o/j/YnQQ4xtVCwdsWxd5erU732"], ["created_at", "2018-12-05 18:38:47.340264"], ["updated_at", "2018-12-05 18:38:47.340264"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.342697"], ["last_sign_in_at", "2018-12-05 18:38:47.342697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.343080"], ["id", 9543]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fKuBVCM0X33P06N6pKMIP.NwGhxjwomW701T.GrrXlEbOoj7PupIS"], ["created_at", "2018-12-05 18:38:47.351409"], ["updated_at", "2018-12-05 18:38:47.351409"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.354016"], ["last_sign_in_at", "2018-12-05 18:38:47.354016"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.354407"], ["id", 9544]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AMVQYToQUwkht0eoKcwa2.eofjOyclDREsRXdbdhaTStvIHXsm8f2"], ["created_at", "2018-12-05 18:38:47.362600"], ["updated_at", "2018-12-05 18:38:47.362600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.364855"], ["last_sign_in_at", "2018-12-05 18:38:47.364855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.365319"], ["id", 9545]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o.lXnHAzeIls671x6vxxY.ATxJmrjz8cLyIfeHVOZinJYWcI5iB86"], ["created_at", "2018-12-05 18:38:47.372889"], ["updated_at", "2018-12-05 18:38:47.372889"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.374952"], ["updated_at", "2018-12-05 18:38:47.374952"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7098” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.377081"], ["last_sign_in_at", "2018-12-05 18:38:47.377081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.377467"], ["id", 9546]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7098"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7098], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:38:47.380740"], ["id", 7098]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7098 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q77lrqVqBddhT0svGFfaruiJK9nrvwyC.VQnwJph03/hPkxX0vpr2"], ["created_at", "2018-12-05 18:38:47.387182"], ["updated_at", "2018-12-05 18:38:47.387182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.389015"], ["updated_at", "2018-12-05 18:38:47.389015"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7099” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.391140"], ["last_sign_in_at", "2018-12-05 18:38:47.391140"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.391587"], ["id", 9547]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7099"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7099], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-05 18:38:47.394787"], ["id", 7099]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7099 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zIfEdzS.FcFDi0dRf.bEouZBWnYF6qdygU26DYIGRX16xX37CUtyO"], ["created_at", "2018-12-05 18:38:47.401176"], ["updated_at", "2018-12-05 18:38:47.401176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.403355"], ["updated_at", "2018-12-05 18:38:47.403355"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7100” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.405502"], ["last_sign_in_at", "2018-12-05 18:38:47.405502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.405908"], ["id", 9548]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7100"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7100], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VKeS4LfBHblCugBaWRuShOtySgLz6F2Mpn0TWdZYaqPW/ssrjCvdS"], ["created_at", "2018-12-05 18:38:47.419388"], ["updated_at", "2018-12-05 18:38:47.419388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.421516"], ["updated_at", "2018-12-05 18:38:47.421516"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7101” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.423723"], ["last_sign_in_at", "2018-12-05 18:38:47.423723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.424155"], ["id", 9549]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7101"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7101], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mxzQIb.7jztyC7kJmVYWaO2Js/3UMrSVdG5rDWE2nOrWQtyCeCTfi"], ["created_at", "2018-12-05 18:38:47.437330"], ["updated_at", "2018-12-05 18:38:47.437330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.440048"], ["last_sign_in_at", "2018-12-05 18:38:47.440048"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.440516"], ["id", 9550]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LLfi7MJwxKnK16QAwOAVbexwkH2HljPv9X2bMyVw97pyex//op0EK"], ["created_at", "2018-12-05 18:38:47.447672"], ["updated_at", "2018-12-05 18:38:47.447672"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.449415"], ["updated_at", "2018-12-05 18:38:47.449415"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7102” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.450955"], ["last_sign_in_at", "2018-12-05 18:38:47.450955"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.451342"], ["id", 9551]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7102"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7102], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7102]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tVffmOKUT0oFW7kC7GkEoeeoiFV1K0Zb03JnQVfbtaanrCN9LKdZS"], ["created_at", "2018-12-05 18:38:47.460454"], ["updated_at", "2018-12-05 18:38:47.460454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.462407"], ["updated_at", "2018-12-05 18:38:47.462407"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7103” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.464057"], ["last_sign_in_at", "2018-12-05 18:38:47.464057"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.464493"], ["id", 9552]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7103"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7103], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7103]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p/98eT2Ehh5.3j7hhBkclu60G/X6bCBJCsMJ9uXhUR56c7qskOSVa"], ["created_at", "2018-12-05 18:38:47.472883"], ["updated_at", "2018-12-05 18:38:47.472883"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.474701"], ["updated_at", "2018-12-05 18:38:47.474701"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7104” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.476316"], ["last_sign_in_at", "2018-12-05 18:38:47.476316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.476697"], ["id", 9553]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7104"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u7zu3KL95EuP1fHXo9HbqeKYsZXAWderXXmInrQL9M6MwrAxnwtC6"], ["created_at", "2018-12-05 18:38:47.483449"], ["updated_at", "2018-12-05 18:38:47.483449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.485162"], ["updated_at", "2018-12-05 18:38:47.485162"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7105” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.486861"], ["last_sign_in_at", "2018-12-05 18:38:47.486861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.487339"], ["id", 9554]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7105"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PyrOOXgSVcosIO5sSNtw2Oo35U4vm8Ddv6XDeHWD1XX5bfDe7UZp2"], ["created_at", "2018-12-05 18:38:47.494573"], ["updated_at", "2018-12-05 18:38:47.494573"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.496569"], ["last_sign_in_at", "2018-12-05 18:38:47.496569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.496958"], ["id", 9555]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kZF63zzQmDiwmiLxL/RUouKHlFdYjN.1D8mUOvp/nfrY1/NkXUCva"], ["created_at", "2018-12-05 18:38:47.510385"], ["updated_at", "2018-12-05 18:38:47.510385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.512096"], ["updated_at", "2018-12-05 18:38:47.512096"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.513517"], ["updated_at", "2018-12-05 18:38:47.513517"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.514802"], ["updated_at", "2018-12-05 18:38:47.514802"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7106], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9556], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9556], ["room_id", 7106], ["created_at", "2018-12-05 18:38:47.517666"], ["updated_at", "2018-12-05 18:38:47.517666"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.519548"], ["last_sign_in_at", "2018-12-05 18:38:47.519548"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.519998"], ["id", 9556]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y54M4iIbdf3z/orI0qb7TOeqF1EQRDkpTQyqEyK1ltvPN1TNDaTrO"], ["created_at", "2018-12-05 18:38:47.538543"], ["updated_at", "2018-12-05 18:38:47.538543"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.540261"], ["updated_at", "2018-12-05 18:38:47.540261"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.541691"], ["updated_at", "2018-12-05 18:38:47.541691"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-05 18:38:47.542987"], ["updated_at", "2018-12-05 18:38:47.542987"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7109], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9557], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9557], ["room_id", 7109], ["created_at", "2018-12-05 18:38:47.545987"], ["updated_at", "2018-12-05 18:38:47.545987"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-05 16:38:47 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:47.547624"], ["last_sign_in_at", "2018-12-05 18:38:47.547624"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:47.547998"], ["id", 9557]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$bfkvFF1D0k4a7PPOeuW1Xej4zntD9X0Wh5JOVP5k2nEZ08tst1L6a"], ["created_at", "2018-12-05 18:38:57.910981"], ["updated_at", "2018-12-05 18:38:57.910981"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (39.4ms)
Rendered users/sessions/new.html.erb within layouts/application (191.6ms)

Completed 200 OK in 206ms (Views: 196.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.146786"], ["last_sign_in_at", "2018-12-05 18:38:58.146786"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.147251"], ["id", 9558]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9558], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9558], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9558], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 5.8ms | ActiveRecord: 1.9ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9558], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9558], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KI1plT6A0XT.Qwj2mdBfGeyl56xsrZtOsqhIywilOzfbEhb2bmEl2"], ["created_at", "2018-12-05 18:38:58.203819"], ["updated_at", "2018-12-05 18:38:58.203819"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.215631"], ["last_sign_in_at", "2018-12-05 18:38:58.215631"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.216002"], ["id", 9559]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9559], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9559], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#new as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9559], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9559], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9559], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$tHd7T0S5GDTQFFmqvFtPxOeTaVPLQqyCvkNzETD42X0AWOz7sis3e"], ["created_at", "2018-12-05 18:38:58.259117"], ["updated_at", "2018-12-05 18:38:58.259117"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.272352"], ["last_sign_in_at", "2018-12-05 18:38:58.272352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.272743"], ["id", 9560]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9560], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$OKH/mGJhriBOIJr3bYUhkObn3L3AHguu3pxfdvxlNYy7TZFY8cJxy"], ["created_at", "2018-12-05 18:38:58.286500"], ["updated_at", "2018-12-05 18:38:58.286500"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.3ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$fIYyVz2oy/ZK8ro2lcq5MOlkOJFGfFqPRwVHw/EhCReHx1wtHcIRC"], ["created_at", "2018-12-05 18:38:58.309673"], ["updated_at", "2018-12-05 18:38:58.309673"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.321315"], ["last_sign_in_at", "2018-12-05 18:38:58.321315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.321723"], ["id", 9562]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9562], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:58.330410"], ["updated_at", "2018-12-05 18:38:58.330410"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9562], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/appointments/7112” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7112"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7112], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7112')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9562], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.7ms) Started POST “/appointments.7112” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9562], ["LIMIT", 1]]
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7112], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9562], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9562], ["room_id", 7112], ["created_at", "2018-12-05 18:38:58.381813"], ["updated_at", "2018-12-05 18:38:58.381813"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 1.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9562], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9Mghc0ouj0YWBnCY4fCSROQHvD7hTdwdI2SNs55m2mezkuJiQTwHm"], ["created_at", "2018-12-05 18:38:58.393206"], ["updated_at", "2018-12-05 18:38:58.393206"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.405004"], ["last_sign_in_at", "2018-12-05 18:38:58.405004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.405432"], ["id", 9563]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9563], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:58.413483"], ["updated_at", "2018-12-05 18:38:58.413483"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7113], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9563], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9563], ["room_id", 7113], ["created_at", "2018-12-05 18:38:58.417402"], ["updated_at", "2018-12-05 18:38:58.417402"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9563], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7113” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7113"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7113], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7113')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9563], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.6ms) Started POST “/appointments.7113” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9563], ["LIMIT", 1]]
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7113], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9563], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9563], ["room_id", 7113], ["created_at", "2018-12-05 18:38:58.444961"], ["updated_at", "2018-12-05 18:38:58.444961"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9563], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$mmjtiMymmDS1brpyEKk/fuUyOydsrb.mANhs.Mh2dTvHpV/2pEf0m"], ["created_at", "2018-12-05 18:38:58.456094"], ["updated_at", "2018-12-05 18:38:58.456094"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.467625"], ["last_sign_in_at", "2018-12-05 18:38:58.467625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.468054"], ["id", 9564]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9564], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:58.475638"], ["updated_at", "2018-12-05 18:38:58.475638"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7114], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9564], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9564], ["room_id", 7114], ["created_at", "2018-12-05 18:38:58.479239"], ["updated_at", "2018-12-05 18:38:58.479239"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9564], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9564]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started DELETE “/appointments/3610” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3610"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3610], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3610]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9564], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9564]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$Rlra.bCUS2e8uRO7Q8SKq.hfjUYm.5Bwx/aIb.n2yO1jJYpZJkDaO"], ["created_at", "2018-12-05 18:38:58.507960"], ["updated_at", "2018-12-05 18:38:58.507960"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (6.8ms)
Rendered users/sessions/new.html.erb within layouts/application (7.6ms)

Completed 200 OK in 9ms (Views: 8.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.526094"], ["last_sign_in_at", "2018-12-05 18:38:58.526094"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.526503"], ["id", 9565]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9565], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:38:58.533343"], ["updated_at", "2018-12-05 18:38:58.533343"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7115], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9565], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 9565], ["room_id", 7115], ["created_at", "2018-12-05 18:38:58.537133"], ["updated_at", "2018-12-05 18:38:58.537133"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9565], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9565]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started DELETE “/appointments/3611” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3611"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3611], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3611]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9565], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9565]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GkriBuzzStU2R9sTqAXijOyfzlTHsAmqH5Y.2Oq3WpP.1p/sdCL26"], ["created_at", "2018-12-05 18:38:58.559951"], ["updated_at", "2018-12-05 18:38:58.559951"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.571521"], ["last_sign_in_at", "2018-12-05 18:38:58.571521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.571893"], ["id", 9566]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9566], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-05 18:38:58.579892"], ["updated_at", "2018-12-05 18:38:58.579892"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:38:58.581123"], ["updated_at", "2018-12-05 18:38:58.581123"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9566], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9566], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.5ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9566], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$jwTbnHPJfL9AhAnM5lvOFeJ105vVsSrQn1F694UIstPChOUHFvfl."], ["created_at", "2018-12-05 18:38:58.604958"], ["updated_at", "2018-12-05 18:38:58.604958"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.617702"], ["last_sign_in_at", "2018-12-05 18:38:58.617702"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.618073"], ["id", 9567]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9567], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.5ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9567], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$vKXlxzvlORlOvqVtQyhinuprYUYTgbsIw.dBZY4hzKhBKRXx6Q5R6"], ["created_at", "2018-12-05 18:38:58.654219"], ["updated_at", "2018-12-05 18:38:58.654219"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.665422"], ["last_sign_in_at", "2018-12-05 18:38:58.665422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.665801"], ["id", 9568]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9568], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:58.675146"], ["updated_at", "2018-12-05 18:38:58.675146"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7118], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9568], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9568], ["room_id", 7118], ["created_at", "2018-12-05 18:38:58.678923"], ["updated_at", "2018-12-05 18:38:58.678923"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9568], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET “/appointments/7118” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7118"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7118], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7118')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9568], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.5ms) Started POST “/appointments.7118” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9568], ["LIMIT", 1]]
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7118], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9568], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9568], ["room_id", 7118], ["created_at", "2018-12-05 18:38:58.706913"], ["updated_at", "2018-12-05 18:38:58.706913"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9568], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$65heNH4nWjZOWw6aCGzNFOF5Mvt5hJAFg6.9vrRA8L/cfSd2NE4Lu"], ["created_at", "2018-12-05 18:38:58.718738"], ["updated_at", "2018-12-05 18:38:58.718738"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.730013"], ["last_sign_in_at", "2018-12-05 18:38:58.730013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.730373"], ["id", 9569]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9569], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:58.738502"], ["updated_at", "2018-12-05 18:38:58.738502"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7119], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9569], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9569], ["room_id", 7119], ["created_at", "2018-12-05 18:38:58.742304"], ["updated_at", "2018-12-05 18:38:58.742304"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9569], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9569]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$/oZNw/a5M8EIhD8Py96NdukVrAbsQTpDIk8tLOSkeUW4g0AyiD.dq"], ["created_at", "2018-12-05 18:38:58.756720"], ["updated_at", "2018-12-05 18:38:58.756720"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.768376"], ["last_sign_in_at", "2018-12-05 18:38:58.768376"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.768862"], ["id", 9570]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9570], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-05 18:38:58.776691"], ["updated_at", "2018-12-05 18:38:58.776691"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7120], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9570], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["user_id", 9570], ["room_id", 7120], ["created_at", "2018-12-05 18:38:58.780360"], ["updated_at", "2018-12-05 18:38:58.780360"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9570], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9570]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$c10V9ita5THVGKysdqz0FeLPyd14r.6epkk0.IoLg5SbYE6SDXeRG"], ["created_at", "2018-12-05 18:38:58.794644"], ["updated_at", "2018-12-05 18:38:58.794644"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.806969"], ["last_sign_in_at", "2018-12-05 18:38:58.806969"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.807377"], ["id", 9571]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9571], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$erF1qfKaaQDdXElzNPp.4ORbG5t.haevSlE8LnUksEQJdQYvSRf9y"], ["created_at", "2018-12-05 18:38:58.820796"], ["updated_at", "2018-12-05 18:38:58.820796"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.832399"], ["last_sign_in_at", "2018-12-05 18:38:58.832399"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.832909"], ["id", 9572]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9572], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:38:58.841234"], ["updated_at", "2018-12-05 18:38:58.841234"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:58.842502"], ["updated_at", "2018-12-05 18:38:58.842502"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9572], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/7121” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7121"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7121], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7121')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9572], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.7ms) Started POST “/appointments.7121” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9572], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7121], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9572], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9572], ["room_id", 7121], ["created_at", "2018-12-05 18:38:58.872123"], ["updated_at", "2018-12-05 18:38:58.872123"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9572], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$H1BqkD4a6.vJauyFU4HRP.oG0hQKeDA.D/zGkTH4ltd/56nnS6ADy"], ["created_at", "2018-12-05 18:38:58.884961"], ["updated_at", "2018-12-05 18:38:58.884961"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.898272"], ["last_sign_in_at", "2018-12-05 18:38:58.898272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.898865"], ["id", 9573]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9573], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:38:58.907941"], ["updated_at", "2018-12-05 18:38:58.907941"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:58.909469"], ["updated_at", "2018-12-05 18:38:58.909469"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9573], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/appointments/7123” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7123"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7123], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7123')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9573], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.8ms) Started POST “/appointments.7123” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9573], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9573], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$mzhqLu0oudI7kp9Oxfo6yuzhBGVGcV.zOJQaOMqwBixT22PTpmWNq"], ["created_at", "2018-12-05 18:38:58.954090"], ["updated_at", "2018-12-05 18:38:58.954090"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:58.966823"], ["last_sign_in_at", "2018-12-05 18:38:58.966823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:58.967298"], ["id", 9574]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9574], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:38:58.974848"], ["updated_at", "2018-12-05 18:38:58.974848"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9574], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9574], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started DELETE “/rooms/7125” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7125"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9574], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7125], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7125]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:58 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9574], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$4zAvRJOSCphuQAOdVGPx9uO4XZ2vQ9ayklE1FEzs9h7xyeJctoLTK"], ["created_at", "2018-12-05 18:38:59.003355"], ["updated_at", "2018-12-05 18:38:59.003355"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-05 18:38:59.004923"], ["updated_at", "2018-12-05 18:38:59.004923"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.020635"], ["last_sign_in_at", "2018-12-05 18:38:59.020635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.021109"], ["id", 9575]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9575], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9575], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/rooms/7126/edit” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7126"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9575], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7126], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started PATCH “/rooms/7126” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"7126"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9575], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7126], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.9ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$vxi5EgS6fnW9Gv/WkOKkJe.3Y5IHx/s.ecozsXpDM0yKcHNjQ4FPO"], ["created_at", "2018-12-05 18:38:59.066539"], ["updated_at", "2018-12-05 18:38:59.066539"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$sZDCoenRXXaD2V.CWONG5OOY7l8wC78yD6xLEH7n2lrj2OY/yhOGS"], ["created_at", "2018-12-05 18:38:59.075116"], ["updated_at", "2018-12-05 18:38:59.075116"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.086561"], ["last_sign_in_at", "2018-12-05 18:38:59.086561"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.087034"], ["id", 9577]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9577], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9577], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-05 18:38:59.099923"], ["updated_at", "2018-12-05 18:38:59.099923"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-05 18:38:59.101149"], ["updated_at", "2018-12-05 18:38:59.101149"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-05 18:38:59.102099"], ["updated_at", "2018-12-05 18:38:59.102099"], ["tipo_sala", "Salas de Reunião"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$WGC68v3Ckuw6m7U4NCK9bOKf5p8NxsAi/Wx4ZbbE8mEe1lTlf4VvC"], ["created_at", "2018-12-05 18:38:59.116696"], ["updated_at", "2018-12-05 18:38:59.116696"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.128869"], ["last_sign_in_at", "2018-12-05 18:38:59.128869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.129301"], ["id", 9578]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9578], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:38:59.136324"], ["updated_at", "2018-12-05 18:38:59.136324"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:59.137603"], ["updated_at", "2018-12-05 18:38:59.137603"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9578], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$6mc.6prf6REEEBvbHoNtOeKDvo0GZpNSE08UG/Y8fIuce6sUn/B6C"], ["created_at", "2018-12-05 18:38:59.153326"], ["updated_at", "2018-12-05 18:38:59.153326"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.164953"], ["last_sign_in_at", "2018-12-05 18:38:59.164953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.165416"], ["id", 9579]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9579], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:38:59.173055"], ["updated_at", "2018-12-05 18:38:59.173055"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:59.174425"], ["updated_at", "2018-12-05 18:38:59.174425"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9579], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$LSwwZccn9R87Y6BS9zQrq.PSz.tM9rf47vFkIL2YmvIOGPWuKhI3K"], ["created_at", "2018-12-05 18:38:59.191303"], ["updated_at", "2018-12-05 18:38:59.191303"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.203139"], ["last_sign_in_at", "2018-12-05 18:38:59.203139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.203620"], ["id", 9580]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9580], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-05 18:38:59.211108"], ["updated_at", "2018-12-05 18:38:59.211108"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-05 18:38:59.212590"], ["updated_at", "2018-12-05 18:38:59.212590"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9580], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9580], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9580], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9580], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9580], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-06", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9580], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-06' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 12ms (Views: 3.6ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$.RVybcSW2ILSC5.JoDCI9u6ElRoDGL5HrVXmMWN9W2eYeixVsHBEu"], ["created_at", "2018-12-05 18:38:59.259051"], ["updated_at", "2018-12-05 18:38:59.259051"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.277488"], ["last_sign_in_at", "2018-12-05 18:38:59.277488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.277974"], ["id", 9581]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9581], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.8ms)
Rendered users/registrations/new.html.erb within layouts/application (9.0ms)

Completed 200 OK in 12ms (Views: 11.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$AMqHf3mWxE2TlYP7RmZvM.xuh31dkt/kJEdPIlUIlRsGEZLHL90tC"], ["created_at", "2018-12-05 18:38:59.327295"], ["updated_at", "2018-12-05 18:38:59.327295"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-05 18:38:59.328545"], ["last_sign_in_at", "2018-12-05 18:38:59.328545"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-05 18:38:59.328828"], ["id", 9582]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9582], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$aJtPhIPV2A/y9dQufBSjbeL1Pb93gJTgG7PRsDLsPQNGKdZKqi0/6"], ["created_at", "2018-12-05 18:38:59.341713"], ["updated_at", "2018-12-05 18:38:59.341713"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.359859"], ["last_sign_in_at", "2018-12-05 18:38:59.359859"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.360312"], ["id", 9583]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9583], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) Started GET “/users/9583/edit” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"9583"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9583], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.3ms) Started PUT “/users/9583” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"9583"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9583], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9583], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 9583], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-05 18:38:59.392220"], ["id", 9583]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9583], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$Rv2TkKwD5.841jRAObCq4ue1sYc1Yv7TuVmjJfm.YUupyUfzx8Gx."], ["created_at", "2018-12-05 18:38:59.406490"], ["updated_at", "2018-12-05 18:38:59.406490"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.419107"], ["last_sign_in_at", "2018-12-05 18:38:59.419107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.419552"], ["id", 9584]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9584], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:38:59.426841"], ["updated_at", "2018-12-05 18:38:59.426841"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9584], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9584], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9584], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9584], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9584], ["room_id", 1], ["created_at", "2018-12-05 18:38:59.452558"], ["updated_at", "2018-12-05 18:38:59.452558"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9584], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$kU4feRUIe1DHXuvduphJ6.KLRdf7JeQtnKbj75BMklC6HadSrRH5m"], ["created_at", "2018-12-05 18:38:59.463278"], ["updated_at", "2018-12-05 18:38:59.463278"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-05 18:38:59.475649"], ["last_sign_in_at", "2018-12-05 18:38:59.475649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-05 18:38:59.476071"], ["id", 9585]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9585], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-05 18:38:59.483439"], ["updated_at", "2018-12-05 18:38:59.483439"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9585], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9585], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-06", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9585], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9585], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-06 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9585], ["room_id", 1], ["created_at", "2018-12-05 18:38:59.509172"], ["updated_at", "2018-12-05 18:38:59.509172"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9585], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$NP.Q9QF7fYzngnmz72YvWuZalno.BFsbPZN/k33ZyOZJEQbqd8R.2"], ["created_at", "2018-12-05 18:38:59.520454"], ["updated_at", "2018-12-05 18:38:59.520454"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.9ms)
Rendered password_resets/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$DNYgDhR/1z86koTIKIakzuayLA.srpkw8CPmUoEhyxQSNCIiK2dYW"], ["updated_at", "2018-12-05 18:38:59.550197"], ["id", 9586]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-05 16:38:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (22.0ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (68.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (34.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$FLaGVD9AZJ8Q9/DRVN6Vkudv./zt4SWs0ntgqmRfv2D7ARRy.b29q"], ["created_at", "2018-12-06 10:03:55.330079"], ["updated_at", "2018-12-06 10:03:55.330079"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:03:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (311.5ms)
Rendered users/sessions/new.html.erb within layouts/application (5424.1ms)

Completed 200 OK in 5496ms (Views: 5486.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:01.653720"], ["last_sign_in_at", "2018-12-06 10:04:01.653720"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:01.654395"], ["id", 9587]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 233ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9587], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.1ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 149ms (Views: 111.1ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9587], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 08:04:01 -0200 Processing by RoomsController#new as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9587], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 67ms (Views: 6.8ms | ActiveRecord: 2.6ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9587], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9587], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$uNWy.qw.1JKsvcTkVHCo3uApy3sSAtWWJrmCqt7sXF3Kv.EklxgPO"], ["created_at", "2018-12-06 10:04:02.045524"], ["updated_at", "2018-12-06 10:04:02.045524"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:02.060601"], ["last_sign_in_at", "2018-12-06 10:04:02.060601"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:02.061185"], ["id", 9588]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9588], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9588], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9588], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9588], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9588], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (1.0ms)

Completed 200 OK in 23ms (Views: 7.5ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$yLTGmt6QWd1DAGpxzSeVNufQrtfV2xQsNqDNS2eho6HfJLacWJTP2"], ["created_at", "2018-12-06 10:04:02.153027"], ["updated_at", "2018-12-06 10:04:02.153027"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:02.170293"], ["last_sign_in_at", "2018-12-06 10:04:02.170293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:02.171019"], ["id", 9589]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9589], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$dxhrkKWl6gnJz6IFCvSYaejtOcPysLMGOXGlWueMkNz0wEFPXGRvG"], ["created_at", "2018-12-06 10:04:02.215488"], ["updated_at", "2018-12-06 10:04:02.215488"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$XxS644YQAshcXLJtKbQ2Nuucfi9bPJxcWrpHtCQsI2ovmmCNLmDpK"], ["created_at", "2018-12-06 10:04:02.245576"], ["updated_at", "2018-12-06 10:04:02.245576"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.4ms)
Rendered users/sessions/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:02.279318"], ["last_sign_in_at", "2018-12-06 10:04:02.279318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:02.279901"], ["id", 9591]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9591], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 41ms (Views: 40.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (186.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:02.328311"], ["updated_at", "2018-12-06 10:04:02.328311"], ["tipo_sala", "Auditório"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by RoomsController#index as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9591], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.8ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (7.5ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 56ms (Views: 13.8ms | ActiveRecord: 1.3ms) Started GET “/appointments/7136” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7136"}
Room Load (0.8ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7136], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (108.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7136')
Rendered appointments/show.html.erb within layouts/application (159.3ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9591], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 349ms (Views: 58.4ms | ActiveRecord: 112.6ms) Started POST “/appointments.7136” for 127.0.0.1 at 2018-12-06 08:04:02 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9591], ["LIMIT", 1]]
Appointment Load (58.4ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7136], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9591], ["LIMIT", 1]]
SQL (40.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9591], ["room_id", 7136], ["created_at", "2018-12-06 10:04:03.060382"], ["updated_at", "2018-12-06 10:04:03.060382"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 127ms (ActiveRecord: 102.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9591], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$MubxfBlE36JCH.29YALpd.JQeqVtFZgnOxLhIpvK9jINDKJPq6lla"], ["created_at", "2018-12-06 10:04:03.115373"], ["updated_at", "2018-12-06 10:04:03.115373"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.129252"], ["last_sign_in_at", "2018-12-06 10:04:03.129252"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.129844"], ["id", 9592]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9592], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:03.140680"], ["updated_at", "2018-12-06 10:04:03.140680"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7137], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9592], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9592], ["room_id", 7137], ["created_at", "2018-12-06 10:04:03.146245"], ["updated_at", "2018-12-06 10:04:03.146245"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9592], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/7137” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7137"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7137], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7137')
Rendered appointments/show.html.erb within layouts/application (4.3ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9592], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 10ms (Views: 8.3ms | ActiveRecord: 1.0ms) Started POST “/appointments.7137” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9592], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7137], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9592], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9592], ["room_id", 7137], ["created_at", "2018-12-06 10:04:03.186378"], ["updated_at", "2018-12-06 10:04:03.186378"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9592], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$dzevgBeJUIUXZ6Aw.umeruw28kvzdtD/PHR1..ihD8A6UJxyduYNq"], ["created_at", "2018-12-06 10:04:03.213021"], ["updated_at", "2018-12-06 10:04:03.213021"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.4ms)
Rendered users/sessions/new.html.erb within layouts/application (2.9ms)

Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.232959"], ["last_sign_in_at", "2018-12-06 10:04:03.232959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.234119"], ["id", 9593]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9593], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:03.249175"], ["updated_at", "2018-12-06 10:04:03.249175"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7138], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9593], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9593], ["room_id", 7138], ["created_at", "2018-12-06 10:04:03.256083"], ["updated_at", "2018-12-06 10:04:03.256083"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9593], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9593]]
Rendered appointments/my_appointments.html.erb within layouts/application (7.3ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 138ms (Views: 13.4ms | ActiveRecord: 0.8ms) Started DELETE “/appointments/3622” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3622"}
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3622], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3622]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 6ms (ActiveRecord: 1.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9593], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9593]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 5.0ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$CBqRT8fcLetaqeuKxRaq/u35rF6OsPqdQms8WRHkDG1cVxgNSF99a"], ["created_at", "2018-12-06 10:04:03.437037"], ["updated_at", "2018-12-06 10:04:03.437037"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.9ms)
Rendered users/sessions/new.html.erb within layouts/application (3.5ms)

Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.456777"], ["last_sign_in_at", "2018-12-06 10:04:03.456777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.457412"], ["id", 9594]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9594], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.6ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-06 10:04:03.470042"], ["updated_at", "2018-12-06 10:04:03.470042"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7139], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9594], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 9594], ["room_id", 7139], ["created_at", "2018-12-06 10:04:03.476320"], ["updated_at", "2018-12-06 10:04:03.476320"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9594], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9594]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/3623” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3623"}
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3623], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3623]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9594], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9594]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ZI6JJ4yLdOntTsxxSku1DOdaskMhParvJvthAYIVQN7cZiuv2HSK6"], ["created_at", "2018-12-06 10:04:03.514123"], ["updated_at", "2018-12-06 10:04:03.514123"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.8ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.535064"], ["last_sign_in_at", "2018-12-06 10:04:03.535064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.535676"], ["id", 9595]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9595], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-06 10:04:03.547847"], ["updated_at", "2018-12-06 10:04:03.547847"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-06 10:04:03.549606"], ["updated_at", "2018-12-06 10:04:03.549606"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9595], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.7ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (8.2ms)
User Load (1.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9595], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (3.7ms)

Completed 200 OK in 93ms (Views: 21.4ms | ActiveRecord: 1.7ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.6ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.5ms)
User Load (1.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9595], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (4.1ms)

Completed 200 OK in 88ms (Views: 18.0ms | ActiveRecord: 1.6ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$yduWK3msr8Jf0SU5MeB9E.0.o58E.NcZJJ7JZsLd8K6oAhJHGg.Tm"], ["created_at", "2018-12-06 10:04:03.779784"], ["updated_at", "2018-12-06 10:04:03.779784"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.6ms)
Rendered users/sessions/new.html.erb within layouts/application (3.6ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.801835"], ["last_sign_in_at", "2018-12-06 10:04:03.801835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.802431"], ["id", 9596]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9596], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.8ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9596], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.6ms)

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kWRFA4pZKi2zdp5mR138ou4Bq9WWRk564Ftjrsdw0uKYkaF9PGzHO"], ["created_at", "2018-12-06 10:04:03.858213"], ["updated_at", "2018-12-06 10:04:03.858213"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.871758"], ["last_sign_in_at", "2018-12-06 10:04:03.871758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.872291"], ["id", 9597]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9597], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:03.882243"], ["updated_at", "2018-12-06 10:04:03.882243"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7142], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9597], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9597], ["room_id", 7142], ["created_at", "2018-12-06 10:04:03.887691"], ["updated_at", "2018-12-06 10:04:03.887691"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9597], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms) Started GET “/appointments/7142” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7142"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7142], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7142')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9597], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.7ms) Started POST “/appointments.7142” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9597], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7142], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9597], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9597], ["room_id", 7142], ["created_at", "2018-12-06 10:04:03.921500"], ["updated_at", "2018-12-06 10:04:03.921500"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9597], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$Wcmesw4/KwvFhNmkS1d7M.BMUOvyk.ukKI5JMSy86m2.8EO69P6JS"], ["created_at", "2018-12-06 10:04:03.935799"], ["updated_at", "2018-12-06 10:04:03.935799"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.950556"], ["last_sign_in_at", "2018-12-06 10:04:03.950556"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.951100"], ["id", 9598]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9598], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:03.960561"], ["updated_at", "2018-12-06 10:04:03.960561"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7143], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9598], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9598], ["room_id", 7143], ["created_at", "2018-12-06 10:04:03.965043"], ["updated_at", "2018-12-06 10:04:03.965043"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9598], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9598]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$0xx0VdKZlMrvlUk7KvedZ.U94q9sT6dAEjhQl3cIEcI7UK6RI5JK6"], ["created_at", "2018-12-06 10:04:03.984941"], ["updated_at", "2018-12-06 10:04:03.984941"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:03.999454"], ["last_sign_in_at", "2018-12-06 10:04:03.999454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:03.999969"], ["id", 9599]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9599], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-06 10:04:04.008918"], ["updated_at", "2018-12-06 10:04:04.008918"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7144], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9599], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 9599], ["room_id", 7144], ["created_at", "2018-12-06 10:04:04.014676"], ["updated_at", "2018-12-06 10:04:04.014676"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9599], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9599]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sy9omgug1.PeVYmsHB4jIeMaTgUl0.ea7HyfgckbnjfoNgTbqvBaa"], ["created_at", "2018-12-06 10:04:04.033028"], ["updated_at", "2018-12-06 10:04:04.033028"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.048104"], ["last_sign_in_at", "2018-12-06 10:04:04.048104"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.048624"], ["id", 9600]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9600], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$dYGUk1KhphBBtW1WnTd8J.J.L61KzcJ03exUAdQN8f2kol.HHiWKK"], ["created_at", "2018-12-06 10:04:04.065112"], ["updated_at", "2018-12-06 10:04:04.065112"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.079911"], ["last_sign_in_at", "2018-12-06 10:04:04.079911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.080458"], ["id", 9601]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9601], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:04:04.089559"], ["updated_at", "2018-12-06 10:04:04.089559"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:04.091063"], ["updated_at", "2018-12-06 10:04:04.091063"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9601], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.5ms) Started GET “/appointments/7145” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7145"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7145], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7145')
Rendered appointments/show.html.erb within layouts/application (1.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9601], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 7ms (Views: 4.4ms | ActiveRecord: 0.8ms) Started POST “/appointments.7145” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9601], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7145], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9601], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9601], ["room_id", 7145], ["created_at", "2018-12-06 10:04:04.126045"], ["updated_at", "2018-12-06 10:04:04.126045"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9601], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$o9gm77KmbKONYIYXWgHC7usAIxFrPdeoudioDxTx4DymV1IYNgOLi"], ["created_at", "2018-12-06 10:04:04.141130"], ["updated_at", "2018-12-06 10:04:04.141130"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.156519"], ["last_sign_in_at", "2018-12-06 10:04:04.156519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.157045"], ["id", 9602]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9602], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:04:04.166864"], ["updated_at", "2018-12-06 10:04:04.166864"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:04.168500"], ["updated_at", "2018-12-06 10:04:04.168500"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9602], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/7147” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7147"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7147], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7147')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9602], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7147” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9602], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9602], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ZrSKW9hl9pBvlPsnQRoZuuEKxtTJerBq9BwCnXJagH29oukAVSRuG"], ["created_at", "2018-12-06 10:04:04.221363"], ["updated_at", "2018-12-06 10:04:04.221363"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.235813"], ["last_sign_in_at", "2018-12-06 10:04:04.235813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.236425"], ["id", 9603]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9603], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-06 10:04:04.246701"], ["updated_at", "2018-12-06 10:04:04.246701"], ["tipo_sala", "tipoTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9603], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9603], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started DELETE “/rooms/7149” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7149"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9603], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7149], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7149]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9603], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$kS7e6MP6jqEdzPSnYkQ0LuO9.kO/a/pMBfsbSBKv/b9Hiq9bjZSEu"], ["created_at", "2018-12-06 10:04:04.283826"], ["updated_at", "2018-12-06 10:04:04.283826"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-06 10:04:04.285600"], ["updated_at", "2018-12-06 10:04:04.285600"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.307054"], ["last_sign_in_at", "2018-12-06 10:04:04.307054"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.307614"], ["id", 9604]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9604], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9604], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.6ms) Started GET “/rooms/7150/edit” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7150"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9604], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7150], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 75ms (Views: 4.7ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/7150” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"7150"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9604], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7150], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 4.0ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$0mEIy7/qkeuNV7k66uPQ2eufSAIvG292/bVH5d/nf3bCiFYYwkSHK"], ["created_at", "2018-12-06 10:04:04.431510"], ["updated_at", "2018-12-06 10:04:04.431510"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$/huAO1I7QPGI8foOq514ie4pige7rXgg.bc7lxwIzAqOzoFi1J4dO"], ["created_at", "2018-12-06 10:04:04.443512"], ["updated_at", "2018-12-06 10:04:04.443512"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.457985"], ["last_sign_in_at", "2018-12-06 10:04:04.457985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.458476"], ["id", 9606]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9606], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9606], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-06 10:04:04.474014"], ["updated_at", "2018-12-06 10:04:04.474014"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-06 10:04:04.475516"], ["updated_at", "2018-12-06 10:04:04.475516"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-06 10:04:04.476733"], ["updated_at", "2018-12-06 10:04:04.476733"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$wBKd8cqWqQ39xcvryEXKvOEKPiXeTrohQiVO5aNteAqMkLD4pEqt2"], ["created_at", "2018-12-06 10:04:04.494380"], ["updated_at", "2018-12-06 10:04:04.494380"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.509684"], ["last_sign_in_at", "2018-12-06 10:04:04.509684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.510154"], ["id", 9607]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9607], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:04:04.519393"], ["updated_at", "2018-12-06 10:04:04.519393"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:04.520938"], ["updated_at", "2018-12-06 10:04:04.520938"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9607], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$1ZKWl/rAi92il7hV1zlJ5eatoH8WUnGYAKo36quGs20fLd9jJsTZ2"], ["created_at", "2018-12-06 10:04:04.543986"], ["updated_at", "2018-12-06 10:04:04.543986"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.558807"], ["last_sign_in_at", "2018-12-06 10:04:04.558807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.559272"], ["id", 9608]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9608], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.8ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:04:04.570874"], ["updated_at", "2018-12-06 10:04:04.570874"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:04.572544"], ["updated_at", "2018-12-06 10:04:04.572544"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9608], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$EbQsln3pY2ce8p30jAf2NOtn.dsyqlUmVMGnsj4LqzZSP4y0.lbKe"], ["created_at", "2018-12-06 10:04:04.596119"], ["updated_at", "2018-12-06 10:04:04.596119"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:04.618780"], ["last_sign_in_at", "2018-12-06 10:04:04.618780"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:04.619397"], ["id", 9609]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9609], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 10:04:04.629312"], ["updated_at", "2018-12-06 10:04:04.629312"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 10:04:04.630985"], ["updated_at", "2018-12-06 10:04:04.630985"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9609], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9609], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9609], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.2ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9609], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9609], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 16ms (Views: 10.5ms | ActiveRecord: 0.9ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 08:04:04 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-07", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9609], ["LIMIT", 1]]
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-07' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 367ms (Views: 3.3ms | ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$ujF.G3/FsBIrUruDgF868.KBaMn/sdLYdduE.cyX2STSmE.JCb84e"], ["created_at", "2018-12-06 10:04:05.158879"], ["updated_at", "2018-12-06 10:04:05.158879"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:05.178822"], ["last_sign_in_at", "2018-12-06 10:04:05.178822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:05.179329"], ["id", 9610]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9610], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.6ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.7ms)
Rendered users/registrations/new.html.erb within layouts/application (127.9ms)

Completed 200 OK in 244ms (Views: 243.7ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$n87UsieVkxqJzxNxiv9Wq.zEdEzpndCWPDkNUwCw9bSTmXbJw2amG"], ["created_at", "2018-12-06 10:04:05.607355"], ["updated_at", "2018-12-06 10:04:05.607355"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:05.608878"], ["last_sign_in_at", "2018-12-06 10:04:05.608878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:05.609303"], ["id", 9611]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9611], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$tfOoObJ4qxrC30Go5Owouums.HbCkPGmPLowoUhc31mKPhIb8ZIKu"], ["created_at", "2018-12-06 10:04:05.625326"], ["updated_at", "2018-12-06 10:04:05.625326"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:05.646576"], ["last_sign_in_at", "2018-12-06 10:04:05.646576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:05.647086"], ["id", 9612]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9612], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms) Started GET “/users/9612/edit” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"9612"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9612], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (8.6ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 101ms (Views: 98.7ms | ActiveRecord: 0.4ms) Started PUT “/users/9612” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"9612"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9612], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9612], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 9612], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-06 10:04:05.793632"], ["id", 9612]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 11ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9612], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$P/NUvv.DQ7P7Sw00Ta1pNOVX2flaebttk2TYPjTmdq5FFpnXCs6j2"], ["created_at", "2018-12-06 10:04:05.813288"], ["updated_at", "2018-12-06 10:04:05.813288"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:05.829393"], ["last_sign_in_at", "2018-12-06 10:04:05.829393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:05.829990"], ["id", 9613]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9613], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 10:04:05.840091"], ["updated_at", "2018-12-06 10:04:05.840091"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9613], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.7ms)
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9613], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 1.0ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9613], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9613], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9613], ["room_id", 1], ["created_at", "2018-12-06 10:04:05.874727"], ["updated_at", "2018-12-06 10:04:05.874727"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9613], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$btiIYvnPJPEhgB6uGIkloed3NgMxILn/Mrsd6aoxjPZD9qbW2xGUy"], ["created_at", "2018-12-06 10:04:05.889998"], ["updated_at", "2018-12-06 10:04:05.889998"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 10:04:05.906458"], ["last_sign_in_at", "2018-12-06 10:04:05.906458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 10:04:05.907023"], ["id", 9614]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9614], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-06 10:04:05.916957"], ["updated_at", "2018-12-06 10:04:05.916957"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9614], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.6ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9614], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9614], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9614], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9614], ["room_id", 1], ["created_at", "2018-12-06 10:04:05.952476"], ["updated_at", "2018-12-06 10:04:05.952476"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9614], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$yaUDSObVReOBLwIg5vNWt.aGX6DNZJOhu/kSgmw7oukBCm803rrYm"], ["created_at", "2018-12-06 10:04:05.974370"], ["updated_at", "2018-12-06 10:04:05.974370"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 08:04:05 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (1.1ms)
Rendered password_resets/new.html.erb within layouts/application (108.2ms)

Completed 200 OK in 118ms (Views: 112.3ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 08:04:06 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.1ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$LCQjaKd8yTV/J4JdIQd3oev71UaQmTtgPD6F.Q2FjtljonVtaHIMG"], ["updated_at", "2018-12-06 10:04:06.210652"], ["id", 9615]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 08:04:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4K2jkkdz0X7I8wTUNj.Qx.trElJDfd0MJO2wvplnnJdfBaO9zxsX2"], ["created_at", "2018-12-06 10:04:26.405960"], ["updated_at", "2018-12-06 10:04:26.405960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$chcouzxd0xiTTD20k5wx7.b7VzfubJ2Q0de/fR7qijVBXeK0T5/ly"], ["created_at", "2018-12-06 10:04:26.410017"], ["updated_at", "2018-12-06 10:04:26.410017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:26.417732"], ["updated_at", "2018-12-06 10:04:26.417732"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7160], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9617], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9617], ["room_id", 7160], ["created_at", "2018-12-06 10:04:26.436841"], ["updated_at", "2018-12-06 10:04:26.436841"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3631"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3631], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7160], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9617], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (2.3ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.8ms)

UserMailer#status_notification: processed outbound mail in 391.6ms Sent mail to 123@123.com (18.3ms) Date: Thu, 06 Dec 2018 08:04:26 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c08f42ad0874_c0e2ac3292f05f07d8@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08f42accaa3_c0e2ac3292f05f06d5";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08f42accaa3_c0e2ac3292f05f06d5 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c08f42accaa3_c0e2ac3292f05f06d5 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c08f42accaa3_c0e2ac3292f05f06d5–

Completed 302 Found in 415ms (ActiveRecord: 0.9ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5TrztgLZSn.CgvHIu4naneXbMSoRikAEgZ.bcgThDA72v.PQLHNG2"], ["created_at", "2018-12-06 10:04:26.862563"], ["updated_at", "2018-12-06 10:04:26.862563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uODoEraLvldkTvsO18Ndxur78g.UfMyli5De2310lp.opHuQ17dA2"], ["created_at", "2018-12-06 10:04:26.866058"], ["updated_at", "2018-12-06 10:04:26.866058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:26.867520"], ["updated_at", "2018-12-06 10:04:26.867520"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7161], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9619], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9619], ["room_id", 7161], ["created_at", "2018-12-06 10:04:26.870624"], ["updated_at", "2018-12-06 10:04:26.870624"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3632"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3632], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7161], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9619], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-06 10:04:26.876075"], ["id", 3632]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 08:04:26 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c08f42ad6e39_c0e2ac3292f05f0957@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08f42ad68c1_c0e2ac3292f05f08bd";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08f42ad68c1_c0e2ac3292f05f08bd Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c08f42ad68c1_c0e2ac3292f05f08bd Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c08f42ad68c1_c0e2ac3292f05f08bd–

Completed 302 Found in 9ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kImy9J/tmFiAtqAB8GE2/.wa.H5bmkIp5MwVaKOoYG85r2ViNFcPC"], ["created_at", "2018-12-06 10:04:26.886159"], ["updated_at", "2018-12-06 10:04:26.886159"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ORBfvqb/KkhWudaSPWGjYuWYWLOtBAno08ynLg1Q2hodJy5sSAoO."], ["created_at", "2018-12-06 10:04:26.890579"], ["updated_at", "2018-12-06 10:04:26.890579"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:26.892574"], ["updated_at", "2018-12-06 10:04:26.892574"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7162], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9621], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9621], ["room_id", 7162], ["created_at", "2018-12-06 10:04:26.895952"], ["updated_at", "2018-12-06 10:04:26.895952"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T3ZbARpkTWQLmaeDNmw6UuMiPG1HzLxxY7jm./pC2E1g5Vt17deSy"], ["created_at", "2018-12-06 10:04:26.902811"], ["updated_at", "2018-12-06 10:04:26.902811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PDBuWod8bT/VZrgzALUL1uSHkdWRpJE7zQfllCZgPZ44gvZM3kx3u"], ["created_at", "2018-12-06 10:04:26.906246"], ["updated_at", "2018-12-06 10:04:26.906246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:26.907730"], ["updated_at", "2018-12-06 10:04:26.907730"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7163], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9623], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9623], ["room_id", 7163], ["created_at", "2018-12-06 10:04:26.998057"], ["updated_at", "2018-12-06 10:04:26.998057"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.6ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3634], ["LIMIT", 1]]
 (0.4ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$pxyEDdTj4J/WIBRy9HEauOTiEfvUu18SzkG3/hRkgRrhQnwbwh9Oy"], ["created_at", "2018-12-06 10:04:27.016675"], ["updated_at", "2018-12-06 10:04:27.016675"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9624"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "OP1e1tUJPqZAs_G_Aqr8qg"], ["updated_at", "2018-12-06 10:04:27.028156"], ["id", 9624]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-06 10:04:27.031471"], ["reset_sent_at", "2018-12-06 10:04:27.030900"], ["id", 9624]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (1.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (1.0ms)

UserMailer#password_reset: processed outbound mail in 166.2ms Sent mail to teste@unb.com.br (8.4ms) Date: Thu, 06 Dec 2018 08:04:27 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c08f42b317fc_c0e2ac3292f05f01234@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08f42b303fc_c0e2ac3292f05f011a3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08f42b303fc_c0e2ac3292f05f011a3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/OP1e1tUJPqZAs_G_Aqr8qg/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c08f42b303fc_c0e2ac3292f05f011a3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/OP1e1tUJPqZAs_G_Aqr8qg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c08f42b303fc_c0e2ac3292f05f011a3–

Redirected to test.host/login Completed 302 Found in 185ms (ActiveRecord: 2.3ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.8ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$f3fRomcndL73.PmP9AzzwuBtmknpkMfo9ATDcZLGZviCbByKoN/jS"], ["created_at", "2018-12-06 10:04:27.221999"], ["updated_at", "2018-12-06 10:04:27.221999"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 4.6ms

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$5WLCRUQU9NNWygggT6Op5OiyUDBOrVu6eqo6tk7LqUzP8McsAjrpG"], ["created_at", "2018-12-06 10:04:27.239138"], ["updated_at", "2018-12-06 10:04:27.239138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9626"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$Dc/OMYQ5S7SfWkpr/T/84eoxBSgNVAmfQU7tl/1ec57MumkoW5zGe"], ["updated_at", "2018-12-06 10:04:27.246042"], ["id", 9626]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 6ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$lVz.uOqnkV34GALMx4S08uvhrNMg2Wowdoy8yjuhYPmM2byu620ey"], ["created_at", "2018-12-06 10:04:27.253862"], ["updated_at", "2018-12-06 10:04:27.253862"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9627"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.3ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$x/kLbUgxINOK5aFoy4BckuOo1MNMusJlZzFLj4reP9Ww/PYlf2M/6"], ["created_at", "2018-12-06 10:04:27.266294"], ["updated_at", "2018-12-06 10:04:27.266294"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9628"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)

Completed 200 OK in 11ms (Views: 1.4ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vvNwmPZ5s4Lq7RhZHw5RXORADepzi/tX6xgg0PiMMNEhRYx7oz/jO"], ["created_at", "2018-12-06 10:04:27.283826"], ["updated_at", "2018-12-06 10:04:27.283826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9629"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ywdHL3SeOf36UbmD55PMWebM0s6Z2YFgxtEW2P963PL5ma51wkS9G"], ["created_at", "2018-12-06 10:04:27.293010"], ["updated_at", "2018-12-06 10:04:27.293010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9630"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.0ms)

Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mZx36UvctkDc4KG564NuLOUt7s6uiWDPW/B0t6Xh2fzcVezOST68S"], ["created_at", "2018-12-06 10:04:27.344731"], ["updated_at", "2018-12-06 10:04:27.344731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 3.8ms

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j.lDuunBGI/xmz3cwsDk4.17Da9oTp6uUnAdthWEpX3oz.k1nWnnC"], ["created_at", "2018-12-06 10:04:27.358897"], ["updated_at", "2018-12-06 10:04:27.358897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.3ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.2ms)

UserMailer#password_reset: processed outbound mail in 3.8ms

 (0.3ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$twqYi1BsMX2IUyKTp0EcCeQnIiRd.0K9mST9wn7kCUVrcxky6/A2W"], ["created_at", "2018-12-06 10:04:27.373980"], ["updated_at", "2018-12-06 10:04:27.373980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.376585"], ["updated_at", "2018-12-06 10:04:27.376585"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7164], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9633], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9633], ["room_id", 7164], ["created_at", "2018-12-06 10:04:27.380878"], ["updated_at", "2018-12-06 10:04:27.380878"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.2ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$78GDR38pl.PMg55eSD.SQeNdY1G8m3FgYXQUUansqT2232lGsAC.."], ["created_at", "2018-12-06 10:04:27.389195"], ["updated_at", "2018-12-06 10:04:27.389195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.391027"], ["updated_at", "2018-12-06 10:04:27.391027"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7165], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9634], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9634], ["room_id", 7165], ["created_at", "2018-12-06 10:04:27.394393"], ["updated_at", "2018-12-06 10:04:27.394393"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CwtpSKj6Xmha2g.8IToytejtJNdot.ikSC3aA7f4b5FOoIbyhga9."], ["created_at", "2018-12-06 10:04:27.418541"], ["updated_at", "2018-12-06 10:04:27.418541"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.420456"], ["updated_at", "2018-12-06 10:04:27.420456"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.427835"], ["last_sign_in_at", "2018-12-06 10:04:27.427835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.428277"], ["id", 9635]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7166"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7166], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9635], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9635], ["room_id", 7166], ["created_at", "2018-12-06 10:04:27.435855"], ["updated_at", "2018-12-06 10:04:27.435855"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7166], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V9BnVLuS6ERwda2Y2AR9Y.e2ysJr3imUduCzmPqGVrni30LPwfgb2"], ["created_at", "2018-12-06 10:04:27.442401"], ["updated_at", "2018-12-06 10:04:27.442401"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.444069"], ["updated_at", "2018-12-06 10:04:27.444069"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.446364"], ["last_sign_in_at", "2018-12-06 10:04:27.446364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.446935"], ["id", 9636]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7167"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7167], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9636], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9636], ["room_id", 7167], ["created_at", "2018-12-06 10:04:27.452281"], ["updated_at", "2018-12-06 10:04:27.452281"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6NEMVnjF41J3sLn83WjwP.ZozNu6DB9DNt98.LIqoUoPtnpsnJd4G"], ["created_at", "2018-12-06 10:04:27.457895"], ["updated_at", "2018-12-06 10:04:27.457895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.459549"], ["updated_at", "2018-12-06 10:04:27.459549"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.461911"], ["last_sign_in_at", "2018-12-06 10:04:27.461911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.462343"], ["id", 9637]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7168", "user_id"=>"9637"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7168], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9637], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9637], ["room_id", 7168], ["created_at", "2018-12-06 10:04:27.466752"], ["updated_at", "2018-12-06 10:04:27.466752"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7168", "user_id"=>"9637"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9637], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7168], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9637], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9637], ["room_id", 7168], ["created_at", "2018-12-06 10:04:27.473285"], ["updated_at", "2018-12-06 10:04:27.473285"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iobDB59elxbgpS.bHXiIY.ek.QVBdUBMxiNMMaw7q4DuVhOaRtbtS"], ["created_at", "2018-12-06 10:04:27.479637"], ["updated_at", "2018-12-06 10:04:27.479637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.481641"], ["updated_at", "2018-12-06 10:04:27.481641"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.484226"], ["last_sign_in_at", "2018-12-06 10:04:27.484226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.484698"], ["id", 9638]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7169", "user_id"=>"9638"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7169], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9638], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9638], ["room_id", 7169], ["created_at", "2018-12-06 10:04:27.489288"], ["updated_at", "2018-12-06 10:04:27.489288"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7169", "user_id"=>"9638"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9638], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7169], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9638], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9638], ["room_id", 7169], ["created_at", "2018-12-06 10:04:27.495693"], ["updated_at", "2018-12-06 10:04:27.495693"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7169], ["user_id", 9638], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DfFPDAFG.2oFKBH2TOAZtObQldBIv8DZPS9I2N3PYDsV1AWIMMcXS"], ["created_at", "2018-12-06 10:04:27.501946"], ["updated_at", "2018-12-06 10:04:27.501946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.503536"], ["updated_at", "2018-12-06 10:04:27.503536"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.505747"], ["last_sign_in_at", "2018-12-06 10:04:27.505747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.506116"], ["id", 9639]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7170", "user_id"=>"9639"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7170], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9639], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9639], ["room_id", 7170], ["created_at", "2018-12-06 10:04:27.511583"], ["updated_at", "2018-12-06 10:04:27.511583"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7170", "user_id"=>"9639"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9639], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7170], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9639], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9639], ["room_id", 7170], ["created_at", "2018-12-06 10:04:27.518761"], ["updated_at", "2018-12-06 10:04:27.518761"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7170], ["user_id", 9639], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$K3a5XRQfbH5WmdYOX.Pa2eiYhkC0NFA4Vp9szuLVfrEHQHRo4UzQO"], ["created_at", "2018-12-06 10:04:27.524824"], ["updated_at", "2018-12-06 10:04:27.524824"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.526408"], ["updated_at", "2018-12-06 10:04:27.526408"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.528369"], ["last_sign_in_at", "2018-12-06 10:04:27.528369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.528745"], ["id", 9640]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7171"}
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7171], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wIVe6X/d8pj0cKcGsrfWWek.jXHuBhdHF0.Rku9nq1WjTkIh/W.A6"], ["created_at", "2018-12-06 10:04:27.535709"], ["updated_at", "2018-12-06 10:04:27.535709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.537348"], ["updated_at", "2018-12-06 10:04:27.537348"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.539282"], ["last_sign_in_at", "2018-12-06 10:04:27.539282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.539704"], ["id", 9641]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7172"}
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mTdkx6loGMLKtIBqrbkNse9VNZeSu6ukDvcrIZEx2M2FpQksk8xMK"], ["created_at", "2018-12-06 10:04:27.548484"], ["updated_at", "2018-12-06 10:04:27.548484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.555574"], ["updated_at", "2018-12-06 10:04:27.555574"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7173], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9642], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9642], ["room_id", 7173], ["created_at", "2018-12-06 10:04:27.559164"], ["updated_at", "2018-12-06 10:04:27.559164"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7173” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.561054"], ["last_sign_in_at", "2018-12-06 10:04:27.561054"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.561480"], ["id", 9642]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7173"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7173], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7173')
Rendered appointments/show.html.erb within layouts/application (7.1ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 221ms (Views: 218.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p1RVgj916rKJAgRSMzwWZehG7wtv9e2CNY1J6p1QkPHudu73D5D7a"], ["created_at", "2018-12-06 10:04:27.789284"], ["updated_at", "2018-12-06 10:04:27.789284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.791178"], ["updated_at", "2018-12-06 10:04:27.791178"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7174], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9643], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9643], ["room_id", 7174], ["created_at", "2018-12-06 10:04:27.794574"], ["updated_at", "2018-12-06 10:04:27.794574"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3646/edit” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.796397"], ["last_sign_in_at", "2018-12-06 10:04:27.796397"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.796849"], ["id", 9643]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3646"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3646], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3DZOHIvGD2YZAd397uALXOCNCSmak6y/2Cf2g0xv3bCHeBgg7t.Ou"], ["created_at", "2018-12-06 10:04:27.810807"], ["updated_at", "2018-12-06 10:04:27.810807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.812981"], ["last_sign_in_at", "2018-12-06 10:04:27.812981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.813601"], ["id", 9644]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2G/2vf3XHvc8Kn/cbxZ6V.b47lBVgzpwsLmtxXzc3CagqZFhIFZ/S"], ["created_at", "2018-12-06 10:04:27.827199"], ["updated_at", "2018-12-06 10:04:27.827199"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.829157"], ["updated_at", "2018-12-06 10:04:27.829157"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7175], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9645], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9645], ["room_id", 7175], ["created_at", "2018-12-06 10:04:27.832524"], ["updated_at", "2018-12-06 10:04:27.832524"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7175], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9645], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9645], ["room_id", 7175], ["created_at", "2018-12-06 10:04:27.835712"], ["updated_at", "2018-12-06 10:04:27.835712"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.837415"], ["last_sign_in_at", "2018-12-06 10:04:27.837415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.837864"], ["id", 9645]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9645]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 12ms (Views: 6.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4FuuMPG.3DN4v8V/HvbM8.tqRMePS.UKJbA6Y8tvvBjMqdtbn2WXS"], ["created_at", "2018-12-06 10:04:27.856421"], ["updated_at", "2018-12-06 10:04:27.856421"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.858247"], ["updated_at", "2018-12-06 10:04:27.858247"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7176], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9646], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9646], ["room_id", 7176], ["created_at", "2018-12-06 10:04:27.861636"], ["updated_at", "2018-12-06 10:04:27.861636"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7176], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9646], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9646], ["room_id", 7176], ["created_at", "2018-12-06 10:04:27.864928"], ["updated_at", "2018-12-06 10:04:27.864928"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.866539"], ["last_sign_in_at", "2018-12-06 10:04:27.866539"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.866919"], ["id", 9646]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9646]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.6ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$peYa/qV2QaAI/pfNsFZp2exRkydTQXtHTUKVFwjsxqcxuNUhNtihu"], ["created_at", "2018-12-06 10:04:27.877433"], ["updated_at", "2018-12-06 10:04:27.877433"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.880309"], ["updated_at", "2018-12-06 10:04:27.880309"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7177], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9647], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9647], ["room_id", 7177], ["created_at", "2018-12-06 10:04:27.884376"], ["updated_at", "2018-12-06 10:04:27.884376"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3651” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.886373"], ["last_sign_in_at", "2018-12-06 10:04:27.886373"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.886815"], ["id", 9647]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3651"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3651], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3651]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/f95H8/uFh0OyzdtMoykBePEd5SbT22Tdw5zshMmMA4i3Tix2sXS6"], ["created_at", "2018-12-06 10:04:27.897047"], ["updated_at", "2018-12-06 10:04:27.897047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.898997"], ["updated_at", "2018-12-06 10:04:27.898997"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$O4qoxpUK3bNzFVPqqyHcEucmr3a6.nvxKjkwQtvEQTFxsogS8YBKi"], ["created_at", "2018-12-06 10:04:27.902555"], ["updated_at", "2018-12-06 10:04:27.902555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7178], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9649], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9649], ["room_id", 7178], ["created_at", "2018-12-06 10:04:27.905679"], ["updated_at", "2018-12-06 10:04:27.905679"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3652” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.907720"], ["last_sign_in_at", "2018-12-06 10:04:27.907720"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.908131"], ["id", 9648]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3652"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3652], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7178], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9649], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$28pEO7x/CAQaxpqF8A7QZ.gyd9LH9NO96ElMEngaPUZ0/dZcuBL1e"], ["created_at", "2018-12-06 10:04:27.920409"], ["updated_at", "2018-12-06 10:04:27.920409"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.922303"], ["updated_at", "2018-12-06 10:04:27.922303"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ndhk9KQgESS8bPctuKQycew3uNt6ktFO8Tft7XzlqhwCcoO2M8VnK"], ["created_at", "2018-12-06 10:04:27.925712"], ["updated_at", "2018-12-06 10:04:27.925712"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7179], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9651], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9651], ["room_id", 7179], ["created_at", "2018-12-06 10:04:27.928837"], ["updated_at", "2018-12-06 10:04:27.928837"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3653” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.930815"], ["last_sign_in_at", "2018-12-06 10:04:27.930815"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.931190"], ["id", 9650]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3653"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3653], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7179], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9651], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lCbGQEvuVaQNjd2p86.oe.iDEO4uj6ysbHEiitrCVJoglQKRD3jfG"], ["created_at", "2018-12-06 10:04:27.940289"], ["updated_at", "2018-12-06 10:04:27.940289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.942773"], ["updated_at", "2018-12-06 10:04:27.942773"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/RLqiumtT2Ct5MLMCF1JsepaEWXXQE2Ml.cxCCuE1lJ76k6Skdl7O"], ["created_at", "2018-12-06 10:04:27.946432"], ["updated_at", "2018-12-06 10:04:27.946432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7180], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9653], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9653], ["room_id", 7180], ["created_at", "2018-12-06 10:04:27.949691"], ["updated_at", "2018-12-06 10:04:27.949691"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3654” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.951783"], ["last_sign_in_at", "2018-12-06 10:04:27.951783"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.952166"], ["id", 9652]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3654"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3654], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7180], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9653], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-06 10:04:27.956632"], ["id", 3654]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 08:04:27 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c08f42bea857_c0e2ac3292f05f0192e@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c08f42bea291_c0e2ac3292f05f018b3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c08f42bea291_c0e2ac3292f05f018b3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c08f42bea291_c0e2ac3292f05f018b3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c08f42bea291_c0e2ac3292f05f018b3–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i.1ro7xISjTSTN8YspUOBOO/0PxfaYubSfFkDH1izEfQKyJEAXwfy"], ["created_at", "2018-12-06 10:04:27.967095"], ["updated_at", "2018-12-06 10:04:27.967095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:27.968964"], ["updated_at", "2018-12-06 10:04:27.968964"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RbSpm2Yc5TzRcJ5nCzi.YeTPIMk9vtm2dcvqSYbCLpNWFnVy79Dfq"], ["created_at", "2018-12-06 10:04:27.972566"], ["updated_at", "2018-12-06 10:04:27.972566"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7181], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9655], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9655], ["room_id", 7181], ["created_at", "2018-12-06 10:04:27.977133"], ["updated_at", "2018-12-06 10:04:27.977133"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-06 10:04:27.978869"], ["id", 3655]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7181], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9655], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9655], ["room_id", 7181], ["created_at", "2018-12-06 10:04:27.981729"], ["updated_at", "2018-12-06 10:04:27.981729"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-06 10:04:27.983078"], ["id", 3656]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 08:04:27 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:27.984602"], ["last_sign_in_at", "2018-12-06 10:04:27.984602"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:27.985008"], ["id", 9654]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9655], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7181], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9655], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7181], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 5.8ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kbQRx16mI4IVNOKq.dAeBOjS6dVuJsNesDd9JlozK8iAezrDko/16"], ["created_at", "2018-12-06 10:04:27.998947"], ["updated_at", "2018-12-06 10:04:27.998947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.000745"], ["updated_at", "2018-12-06 10:04:28.000745"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jK0M/0EPb5h.K9fbh.l7eueYu0h94AvepNMr.q9tFB5tR3zikABj6"], ["created_at", "2018-12-06 10:04:28.004291"], ["updated_at", "2018-12-06 10:04:28.004291"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7182], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9657], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9657], ["room_id", 7182], ["created_at", "2018-12-06 10:04:28.008807"], ["updated_at", "2018-12-06 10:04:28.008807"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-06 10:04:28.010543"], ["id", 3657]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7182], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9657], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9657], ["room_id", 7182], ["created_at", "2018-12-06 10:04:28.013594"], ["updated_at", "2018-12-06 10:04:28.013594"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-06 10:04:28.014988"], ["id", 3658]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.016493"], ["last_sign_in_at", "2018-12-06 10:04:28.016493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.016890"], ["id", 9656]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9657], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7182], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9657], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7182], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sRT4.bj7yITM//2KnGa7F.Kzya6WLpDye0u1DIhFKJlenvbmUwtzS"], ["created_at", "2018-12-06 10:04:28.030402"], ["updated_at", "2018-12-06 10:04:28.030402"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.032264"], ["last_sign_in_at", "2018-12-06 10:04:28.032264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.032690"], ["id", 9658]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 6.0ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$07FLGr/qnnK6hGF0J8tRR.3VlThshXHKoF3ZXY1BFz/RwfVG2KAoy"], ["created_at", "2018-12-06 10:04:28.048422"], ["updated_at", "2018-12-06 10:04:28.048422"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.050363"], ["last_sign_in_at", "2018-12-06 10:04:28.050363"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.050759"], ["id", 9659]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B9m4Jd44dDVlFXHlljIFvO/NZZBKGDn9GuxqXCZemiRz0E8X6lDYK"], ["created_at", "2018-12-06 10:04:28.057340"], ["updated_at", "2018-12-06 10:04:28.057340"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.059150"], ["last_sign_in_at", "2018-12-06 10:04:28.059150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.059524"], ["id", 9660]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9hP.o4HFALCcvaMIi02pbuHkY87BjFWs9.60jYc6Pr5txRfccZ1o6"], ["created_at", "2018-12-06 10:04:28.070857"], ["updated_at", "2018-12-06 10:04:28.070857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.072841"], ["last_sign_in_at", "2018-12-06 10:04:28.072841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.073236"], ["id", 9661]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xBQFu2TSVODFGGcYsiWTaehcAVfoNps8o0kypJD8cj3kArKWptcBa"], ["created_at", "2018-12-06 10:04:28.088645"], ["updated_at", "2018-12-06 10:04:28.088645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.090372"], ["updated_at", "2018-12-06 10:04:28.090372"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7183” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.092006"], ["last_sign_in_at", "2018-12-06 10:04:28.092006"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.092483"], ["id", 9662]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7183"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7183], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.I0DHgw/iercvxBEfifvw.rJNaBYZNFrmoAITtv1n8rF7GdGIZr7K"], ["created_at", "2018-12-06 10:04:28.103970"], ["updated_at", "2018-12-06 10:04:28.103970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.106036"], ["updated_at", "2018-12-06 10:04:28.106036"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7184” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.107838"], ["last_sign_in_at", "2018-12-06 10:04:28.107838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.108330"], ["id", 9663]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7184"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7184], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.115699"], ["updated_at", "2018-12-06 10:04:28.115699"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7185” for 127.0.0.1 at 2018-12-06 08:04:28 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7185"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.BtUlZ7UfMImb8v6HwLkZOnAZH1vPZHUvd34dea1tRNjdpV4BLCPG"], ["created_at", "2018-12-06 10:04:28.122626"], ["updated_at", "2018-12-06 10:04:28.122626"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.124419"], ["updated_at", "2018-12-06 10:04:28.124419"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7186” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.126080"], ["last_sign_in_at", "2018-12-06 10:04:28.126080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.126546"], ["id", 9664]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7186"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.137797"], ["updated_at", "2018-12-06 10:04:28.137797"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7187” for 127.0.0.1 at 2018-12-06 08:04:28 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7187"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l1he54itr2nC8XAiqQd4V.LoU2B9olX9vETvvne.imNFetCzefRiy"], ["created_at", "2018-12-06 10:04:28.145114"], ["updated_at", "2018-12-06 10:04:28.145114"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.146897"], ["updated_at", "2018-12-06 10:04:28.146897"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7188/edit” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.148488"], ["last_sign_in_at", "2018-12-06 10:04:28.148488"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.148953"], ["id", 9665]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7188"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7188], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D2schqsd6kZEv0TLiDJiqeSJYtNxAnvbl8o/SMmQWN9FQuLT28UWi"], ["created_at", "2018-12-06 10:04:28.160763"], ["updated_at", "2018-12-06 10:04:28.160763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.163424"], ["updated_at", "2018-12-06 10:04:28.163424"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7189/edit” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.166289"], ["last_sign_in_at", "2018-12-06 10:04:28.166289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.166811"], ["id", 9666]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7189"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7189], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.176092"], ["updated_at", "2018-12-06 10:04:28.176092"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7190” for 127.0.0.1 at 2018-12-06 08:04:28 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7190"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CZw9EiWiPBCDsRi3aTrJgu8fLKypSK3/MOgyjnwMJdkIZJaCkLfVm"], ["created_at", "2018-12-06 10:04:28.183226"], ["updated_at", "2018-12-06 10:04:28.183226"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.185559"], ["last_sign_in_at", "2018-12-06 10:04:28.185559"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.185954"], ["id", 9667]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.188735"], ["updated_at", "2018-12-06 10:04:28.188735"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F/I3hlAlqR5YtT7wrA4DXOSgmgKIHYsBYU.jgen199D40kNnarE9G"], ["created_at", "2018-12-06 10:04:28.196962"], ["updated_at", "2018-12-06 10:04:28.196962"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.199670"], ["last_sign_in_at", "2018-12-06 10:04:28.199670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.200122"], ["id", 9668]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.203037"], ["updated_at", "2018-12-06 10:04:28.203037"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A8dIrAP6Dlye0ptRhaj3Du5psZAzYpUcEtteLwRRtE1mKybhOSRBC"], ["created_at", "2018-12-06 10:04:28.208989"], ["updated_at", "2018-12-06 10:04:28.208989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.211221"], ["last_sign_in_at", "2018-12-06 10:04:28.211221"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.211617"], ["id", 9669]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$28nEA9cjjBOlP9MwpWRaWeKJ9hZLeSTGl2DgfCghSNQTwCH2p/wMm"], ["created_at", "2018-12-06 10:04:28.219840"], ["updated_at", "2018-12-06 10:04:28.219840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.221919"], ["last_sign_in_at", "2018-12-06 10:04:28.221919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.222269"], ["id", 9670]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U3ilESUSiQZYnpMz8y9mBu60K9tMocA6MJ2EcgR4kJcrvkWsuulwi"], ["created_at", "2018-12-06 10:04:28.231936"], ["updated_at", "2018-12-06 10:04:28.231936"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.234348"], ["last_sign_in_at", "2018-12-06 10:04:28.234348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.234752"], ["id", 9671]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DcIKrXnN5bJxUUlc0Nvv2uOA4OUHRWwfxtNXkpESI.FcJlWoHJzau"], ["created_at", "2018-12-06 10:04:28.241528"], ["updated_at", "2018-12-06 10:04:28.241528"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.243239"], ["updated_at", "2018-12-06 10:04:28.243239"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7193” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.245182"], ["last_sign_in_at", "2018-12-06 10:04:28.245182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.245580"], ["id", 9672]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7193"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7193], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-06 10:04:28.248672"], ["id", 7193]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7193 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BfIrsOfNFvCbnTsXs8LgK.2DN2Dj80sC7rNFQ3SZ4FPmAXMD/AWsi"], ["created_at", "2018-12-06 10:04:28.254642"], ["updated_at", "2018-12-06 10:04:28.254642"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.256369"], ["updated_at", "2018-12-06 10:04:28.256369"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7194” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.259741"], ["last_sign_in_at", "2018-12-06 10:04:28.259741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.260257"], ["id", 9673]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7194"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7194], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-06 10:04:28.263892"], ["id", 7194]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7194 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Hu/VCPaDwUMR.Ln.YZwpzupnHWLbvgyKB21j0TpEklcbcpkEfT1eO"], ["created_at", "2018-12-06 10:04:28.269886"], ["updated_at", "2018-12-06 10:04:28.269886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.271622"], ["updated_at", "2018-12-06 10:04:28.271622"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7195” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.273580"], ["last_sign_in_at", "2018-12-06 10:04:28.273580"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.274029"], ["id", 9674]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7195"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7195], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XqJ8eWxOujbda2srA5/X/O7tEmsb1.0iLZdZAfCqBJ.2J4rbDnnlW"], ["created_at", "2018-12-06 10:04:28.286089"], ["updated_at", "2018-12-06 10:04:28.286089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.288143"], ["updated_at", "2018-12-06 10:04:28.288143"], ["tipo_sala", "palestras"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7196” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.291268"], ["last_sign_in_at", "2018-12-06 10:04:28.291268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.291830"], ["id", 9675]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7196"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7196], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n36lTIwmnc9wP6/aCVSH4OcjR0GpD42fwYW0tewzKI8ertvNso/IC"], ["created_at", "2018-12-06 10:04:28.304682"], ["updated_at", "2018-12-06 10:04:28.304682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.307045"], ["last_sign_in_at", "2018-12-06 10:04:28.307045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.307438"], ["id", 9676]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lkB07pZOHzXHmRsBQ74f0OPI1ntJxZyVgCe3vJ9cN10A2Od2vaNvy"], ["created_at", "2018-12-06 10:04:28.314214"], ["updated_at", "2018-12-06 10:04:28.314214"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.315941"], ["updated_at", "2018-12-06 10:04:28.315941"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7197” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.317558"], ["last_sign_in_at", "2018-12-06 10:04:28.317558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.318009"], ["id", 9677]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7197"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7197], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7197]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4tKtSbgoZAYdGxa1pF7yleW7bQMF8FSaLpJzlkQxWgzn1MhqTKW1S"], ["created_at", "2018-12-06 10:04:28.328196"], ["updated_at", "2018-12-06 10:04:28.328196"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.329981"], ["updated_at", "2018-12-06 10:04:28.329981"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7198” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.331609"], ["last_sign_in_at", "2018-12-06 10:04:28.331609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.332062"], ["id", 9678]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7198"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7198], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7198]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xlh5tV.zzGC62yl6EjhjAu12fcSYFhgU5VtFCEmXC01Q/Z3FPY.AC"], ["created_at", "2018-12-06 10:04:28.340144"], ["updated_at", "2018-12-06 10:04:28.340144"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.341816"], ["updated_at", "2018-12-06 10:04:28.341816"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7199” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.343241"], ["last_sign_in_at", "2018-12-06 10:04:28.343241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.343592"], ["id", 9679]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7199"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PSPpl2iXzZk15B5xc35H3.sWYQZF3cY/0Djcg9q3qUuFNATMHTPnu"], ["created_at", "2018-12-06 10:04:28.349735"], ["updated_at", "2018-12-06 10:04:28.349735"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.351394"], ["updated_at", "2018-12-06 10:04:28.351394"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7200” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.353132"], ["last_sign_in_at", "2018-12-06 10:04:28.353132"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.353527"], ["id", 9680]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7200"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XnaH/5rjJkXX.CYdnok6lOF8IrGXDiYwwDkw4T.s7Xm9IENSScWlO"], ["created_at", "2018-12-06 10:04:28.361092"], ["updated_at", "2018-12-06 10:04:28.361092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.362905"], ["last_sign_in_at", "2018-12-06 10:04:28.362905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.363263"], ["id", 9681]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qRR6ftqfxyQw8Z0kKnNGruqmJkCvw9vj6.bvkumtw0a/4YgibbunK"], ["created_at", "2018-12-06 10:04:28.375616"], ["updated_at", "2018-12-06 10:04:28.375616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.377317"], ["updated_at", "2018-12-06 10:04:28.377317"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.378721"], ["updated_at", "2018-12-06 10:04:28.378721"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.380078"], ["updated_at", "2018-12-06 10:04:28.380078"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7201], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9682], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9682], ["room_id", 7201], ["created_at", "2018-12-06 10:04:28.383125"], ["updated_at", "2018-12-06 10:04:28.383125"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.385440"], ["last_sign_in_at", "2018-12-06 10:04:28.385440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.386107"], ["id", 9682]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 0.6ms)

Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9bkM/EkNeeOkMnW9vQ4S5.oW266rM7EVCCnqk8myJ6zlA93HyULp2"], ["created_at", "2018-12-06 10:04:28.404604"], ["updated_at", "2018-12-06 10:04:28.404604"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.406316"], ["updated_at", "2018-12-06 10:04:28.406316"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.407581"], ["updated_at", "2018-12-06 10:04:28.407581"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-06 10:04:28.408878"], ["updated_at", "2018-12-06 10:04:28.408878"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7204], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9683], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9683], ["room_id", 7204], ["created_at", "2018-12-06 10:04:28.411813"], ["updated_at", "2018-12-06 10:04:28.411813"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 08:04:28 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-06 10:04:28.413469"], ["last_sign_in_at", "2018-12-06 10:04:28.413469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-06 10:04:28.413899"], ["id", 9683]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (15.7ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.4ms)  SAVEPOINT active_record_1
User Exists (45.8ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (38.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$mEGrIflisX5RB0aE.CqozOBfZDsgTPw5LVfHeLind3CynoHlHoktW"], ["created_at", "2018-12-06 23:07:16.197720"], ["updated_at", "2018-12-06 23:07:16.197720"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:07:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (112.8ms)
Rendered users/sessions/new.html.erb within layouts/application (827.5ms)

Completed 200 OK in 897ms (Views: 880.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:07:17 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:07:17.422225"], ["last_sign_in_at", "2018-12-06 23:07:17.422225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:07:17.423499"], ["id", 9684]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 27ms (ActiveRecord: 2.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:07:17 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9684], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (4.2ms)
Rendered layouts/_header-user.html.erb (3.7ms)

Completed 200 OK in 33ms (Views: 18.9ms | ActiveRecord: 0.9ms)

 (0.3ms)  SAVEPOINT active_record_1
SQL (88.8ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:07:17.550125"], ["updated_at", "2018-12-06 23:07:17.550125"], ["tipo_sala", "Auditório"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:07:17 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9684], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.9ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (6.8ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 45ms (Views: 14.0ms | ActiveRecord: 1.3ms) Started GET “/appointments/7207” for 127.0.0.1 at 2018-12-06 21:07:17 -0200

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$QWgzTtmllr/sHyV09PbzdOLGeJIJerlkqRgS4d7z99M5TX4lIZOHi"], ["created_at", "2018-12-06 23:07:17.727185"], ["updated_at", "2018-12-06 23:07:17.727185"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:07:17 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:07:17 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:07:17.741863"], ["last_sign_in_at", "2018-12-06 23:07:17.741863"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:07:17.742370"], ["id", 9685]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:07:17 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9685], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:07:17.752664"], ["updated_at", "2018-12-06 23:07:17.752664"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7208], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9685], ["LIMIT", 1]]
SQL (117.0ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9685], ["room_id", 7208], ["created_at", "2018-12-06 23:07:17.785195"], ["updated_at", "2018-12-06 23:07:17.785195"]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:07:17 -0200 Processing by RoomsController#index as HTML

User Load (0.9ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9685], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.7ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 15ms (Views: 9.9ms | ActiveRecord: 1.6ms) Started GET “/appointments/7208” for 127.0.0.1 at 2018-12-06 21:07:17 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$gk8Nfc7Qxque8EhbTsdbF.PTY/bV/CNCrVrFy2OxKueKMG2cdGf4e"], ["created_at", "2018-12-06 23:07:51.652862"], ["updated_at", "2018-12-06 23:07:51.652862"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (115.6ms)

Completed 200 OK in 128ms (Views: 120.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:07:51.807884"], ["last_sign_in_at", "2018-12-06 23:07:51.807884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:07:51.808382"], ["id", 9686]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9686], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:07:51.832003"], ["updated_at", "2018-12-06 23:07:51.832003"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by RoomsController#index as HTML

User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9686], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 1.0ms) Started GET “/appointments/7209” for 127.0.0.1 at 2018-12-06 21:07:51 -0200

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$dWNcTWadsRSmELvOzQ03/O4O0Dh/bKbCBbt.N00KBEGT0.NReLiS2"], ["created_at", "2018-12-06 23:07:51.856112"], ["updated_at", "2018-12-06 23:07:51.856112"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:07:51.867545"], ["last_sign_in_at", "2018-12-06 23:07:51.867545"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:07:51.867960"], ["id", 9687]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9687], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:07:51.876024"], ["updated_at", "2018-12-06 23:07:51.876024"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7210], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9687], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9687], ["room_id", 7210], ["created_at", "2018-12-06 23:07:51.898162"], ["updated_at", "2018-12-06 23:07:51.898162"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:07:51 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9687], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7210” for 127.0.0.1 at 2018-12-06 21:07:51 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$IhTl6PT2cptikiPcwawI4OvcieC2PsLJL/N1Aljv75oUFn0.lwmXC"], ["created_at", "2018-12-06 23:08:07.681425"], ["updated_at", "2018-12-06 23:08:07.681425"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (124.0ms)

Completed 200 OK in 137ms (Views: 128.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:07.845858"], ["last_sign_in_at", "2018-12-06 23:08:07.845858"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:07.846378"], ["id", 9688]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9688], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:07.870552"], ["updated_at", "2018-12-06 23:08:07.870552"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:07 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9688], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7211” for 127.0.0.1 at 2018-12-06 21:08:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7211"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7211], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.8ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7211')
Rendered appointments/show.html.erb within layouts/application (9.7ms)
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9688], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 123ms (Views: 13.4ms | ActiveRecord: 3.3ms) Started POST “/appointments.7211” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9688], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7211], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9688], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9688], ["room_id", 7211], ["created_at", "2018-12-06 23:08:08.051176"], ["updated_at", "2018-12-06 23:08:08.051176"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 26ms (ActiveRecord: 3.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9688], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (4.3ms)
Rendered layouts/_header-admin.html.erb (3.5ms)

Completed 200 OK in 39ms (Views: 25.2ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$JZo/c8yyzJvua1O9jbexwOFocrK3jCwJh9547d84DriVxvDJvzWFW"], ["created_at", "2018-12-06 23:08:08.119628"], ["updated_at", "2018-12-06 23:08:08.119628"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:08.132540"], ["last_sign_in_at", "2018-12-06 23:08:08.132540"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:08.132973"], ["id", 9689]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9689], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:08.141373"], ["updated_at", "2018-12-06 23:08:08.141373"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7212], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9689], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9689], ["room_id", 7212], ["created_at", "2018-12-06 23:08:08.145866"], ["updated_at", "2018-12-06 23:08:08.145866"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9689], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7212” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7212"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7212], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7212')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9689], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.6ms) Started POST “/appointments.7212” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9689], ["LIMIT", 1]]
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7212], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9689], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9689], ["room_id", 7212], ["created_at", "2018-12-06 23:08:08.173171"], ["updated_at", "2018-12-06 23:08:08.173171"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9689], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$IouPK5TQavbU.fOEvgghx.9NilkZNNIBKmkchHg.OodxL13Wt2jNu"], ["created_at", "2018-12-06 23:08:27.825821"], ["updated_at", "2018-12-06 23:08:27.825821"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (112.2ms)

Completed 200 OK in 125ms (Views: 116.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:27.977090"], ["last_sign_in_at", "2018-12-06 23:08:27.977090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:27.977589"], ["id", 9690]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9690], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:28.001223"], ["updated_at", "2018-12-06 23:08:28.001223"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9690], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7213” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7213"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7213], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7213')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9690], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.7213” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9690], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7213], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9690], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9690], ["room_id", 7213], ["created_at", "2018-12-06 23:08:28.057068"], ["updated_at", "2018-12-06 23:08:28.057068"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9690], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$En./q7CzxVWbR7y5mx8YWOwrCzkVljXmjZ/un6UU/qu.TysSwNuBm"], ["created_at", "2018-12-06 23:08:28.072538"], ["updated_at", "2018-12-06 23:08:28.072538"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:28.084199"], ["last_sign_in_at", "2018-12-06 23:08:28.084199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:28.084666"], ["id", 9691]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9691], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:28.092955"], ["updated_at", "2018-12-06 23:08:28.092955"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7214], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9691], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9691], ["room_id", 7214], ["created_at", "2018-12-06 23:08:28.097413"], ["updated_at", "2018-12-06 23:08:28.097413"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9691], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/7214” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7214"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7214], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7214')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9691], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7214” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9691], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7214], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9691], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9691], ["room_id", 7214], ["created_at", "2018-12-06 23:08:28.144589"], ["updated_at", "2018-12-06 23:08:28.144589"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:28 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9691], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$/yjvgYCNjdo6jkWzKBzSJ.xSNqa2qEys8saP5ebFVmWPNlDsbBRAK"], ["created_at", "2018-12-06 23:08:35.773253"], ["updated_at", "2018-12-06 23:08:35.773253"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (119.7ms)

Completed 200 OK in 133ms (Views: 124.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:35.932563"], ["last_sign_in_at", "2018-12-06 23:08:35.932563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:35.933053"], ["id", 9692]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9692], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:35.956676"], ["updated_at", "2018-12-06 23:08:35.956676"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:35 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9692], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7215” for 127.0.0.1 at 2018-12-06 21:08:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7215"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7215], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7215')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9692], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 15ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7215” for 127.0.0.1 at 2018-12-06 21:08:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9692], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7215], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9692], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9692], ["room_id", 7215], ["created_at", "2018-12-06 23:08:36.012122"], ["updated_at", "2018-12-06 23:08:36.012122"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9692], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$D33uYx.JbrU//KS9DoRPA.lw9Fc9DbVe9z4Gxkg6P48RMJ1X/09si"], ["created_at", "2018-12-06 23:08:36.027617"], ["updated_at", "2018-12-06 23:08:36.027617"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:36.039197"], ["last_sign_in_at", "2018-12-06 23:08:36.039197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:36.039690"], ["id", 9693]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9693], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:36.047956"], ["updated_at", "2018-12-06 23:08:36.047956"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7216], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9693], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9693], ["room_id", 7216], ["created_at", "2018-12-06 23:08:36.052381"], ["updated_at", "2018-12-06 23:08:36.052381"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9693], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7216” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7216"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7216], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7216')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9693], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7216” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9693], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7216], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9693], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9693], ["room_id", 7216], ["created_at", "2018-12-06 23:08:36.080555"], ["updated_at", "2018-12-06 23:08:36.080555"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9693], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.5ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$s5gQqJkztx5vctZiuuKctu6ggtSWgwk30.NYglEtuMQMFIo6U2TmK"], ["created_at", "2018-12-06 23:08:47.702683"], ["updated_at", "2018-12-06 23:08:47.702683"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (118.7ms)

Completed 200 OK in 132ms (Views: 123.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:47.861375"], ["last_sign_in_at", "2018-12-06 23:08:47.861375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:47.861877"], ["id", 9694]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9694], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:47.885799"], ["updated_at", "2018-12-06 23:08:47.885799"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9694], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7217” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7217"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7217], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7217')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9694], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7217” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9694], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7217], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9694], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9694], ["room_id", 7217], ["created_at", "2018-12-06 23:08:47.942914"], ["updated_at", "2018-12-06 23:08:47.942914"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9694], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$14ANAosKVLfATPczctXIJ.uULoz9DoGZeC2UOrjhru3BI7u3RUvpK"], ["created_at", "2018-12-06 23:08:47.959239"], ["updated_at", "2018-12-06 23:08:47.959239"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:47.971192"], ["last_sign_in_at", "2018-12-06 23:08:47.971192"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:47.971685"], ["id", 9695]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9695], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:47.979999"], ["updated_at", "2018-12-06 23:08:47.979999"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7218], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9695], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9695], ["room_id", 7218], ["created_at", "2018-12-06 23:08:47.984161"], ["updated_at", "2018-12-06 23:08:47.984161"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9695], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7218” for 127.0.0.1 at 2018-12-06 21:08:47 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7218"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7218], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7218')
Rendered appointments/show.html.erb within layouts/application (3.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9695], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.8ms) Started POST “/appointments.7218” for 127.0.0.1 at 2018-12-06 21:08:48 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9695], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7218], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9695], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9695], ["room_id", 7218], ["created_at", "2018-12-06 23:08:48.036524"], ["updated_at", "2018-12-06 23:08:48.036524"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9695], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8k9H/w1KdPmRR/KW9AF25ueKQSNtWtbXIbMLyqrgtPt880IU/MgAG"], ["created_at", "2018-12-06 23:08:56.335112"], ["updated_at", "2018-12-06 23:08:56.335112"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.2ms)
Rendered users/sessions/new.html.erb within layouts/application (108.7ms)

Completed 200 OK in 122ms (Views: 113.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:56.484793"], ["last_sign_in_at", "2018-12-06 23:08:56.484793"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:56.485274"], ["id", 9696]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9696], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:56.509155"], ["updated_at", "2018-12-06 23:08:56.509155"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9696], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7219” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7219"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7219], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7219')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9696], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7219” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9696], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7219], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9696], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9696], ["room_id", 7219], ["created_at", "2018-12-06 23:08:56.565985"], ["updated_at", "2018-12-06 23:08:56.565985"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9696], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$RGo7q4zSrqX2toeBD/2BKeROdDFKFAeZRaqRhPZLw00fNN4BJhUj."], ["created_at", "2018-12-06 23:08:56.581940"], ["updated_at", "2018-12-06 23:08:56.581940"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 6ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:08:56.596978"], ["last_sign_in_at", "2018-12-06 23:08:56.596978"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:08:56.597406"], ["id", 9697]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9697], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:08:56.605834"], ["updated_at", "2018-12-06 23:08:56.605834"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7220], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9697], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9697], ["room_id", 7220], ["created_at", "2018-12-06 23:08:56.610946"], ["updated_at", "2018-12-06 23:08:56.610946"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9697], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/7220” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7220"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7220], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7220')
Rendered appointments/show.html.erb within layouts/application (4.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9697], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 9ms (Views: 6.8ms | ActiveRecord: 0.9ms) Started POST “/appointments.7220” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9697], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7220], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9697], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9697], ["room_id", 7220], ["created_at", "2018-12-06 23:08:56.666625"], ["updated_at", "2018-12-06 23:08:56.666625"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:08:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9697], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$oA0oiXrzqqzEGCZrt0Dg..M5HCZac6k2783wFvyxvDQXQMuALcuAG"], ["created_at", "2018-12-06 23:09:04.847450"], ["updated_at", "2018-12-06 23:09:04.847450"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:09:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.9ms)
Rendered users/sessions/new.html.erb within layouts/application (112.1ms)

Completed 200 OK in 125ms (Views: 116.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:09:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:09:04.999512"], ["last_sign_in_at", "2018-12-06 23:09:04.999512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:09:05.000006"], ["id", 9698]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9698], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:09:05.023628"], ["updated_at", "2018-12-06 23:09:05.023628"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9698], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.6ms) Started GET “/appointments/7221” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7221"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7221], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7221')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9698], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7221” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9698], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7221], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9698], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9698], ["room_id", 7221], ["created_at", "2018-12-06 23:09:05.079222"], ["updated_at", "2018-12-06 23:09:05.079222"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9698], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$bGCdiJnjrv2edP0otKd5/.fvsmdCsWvwcRFCn8VNQA4CCJgL.as8u"], ["created_at", "2018-12-06 23:09:05.095103"], ["updated_at", "2018-12-06 23:09:05.095103"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:09:05.106754"], ["last_sign_in_at", "2018-12-06 23:09:05.106754"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:09:05.107247"], ["id", 9699]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9699], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:09:05.115657"], ["updated_at", "2018-12-06 23:09:05.115657"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7222], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9699], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9699], ["room_id", 7222], ["created_at", "2018-12-06 23:09:05.120318"], ["updated_at", "2018-12-06 23:09:05.120318"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9699], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms) Started GET “/appointments/7222” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7222"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7222], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7222')
Rendered appointments/show.html.erb within layouts/application (3.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9699], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms) Started POST “/appointments.7222” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9699], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7222], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9699], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9699], ["room_id", 7222], ["created_at", "2018-12-06 23:09:05.168989"], ["updated_at", "2018-12-06 23:09:05.168989"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:09:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9699], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1IVoxu0VPqFKjanDGurbp.ed3OdLmN3Va6U3s19QrKOBCcogAqjwS"], ["created_at", "2018-12-06 23:19:47.812794"], ["updated_at", "2018-12-06 23:19:47.812794"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:19:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.1ms)
Rendered users/sessions/new.html.erb within layouts/application (125.0ms)

Completed 200 OK in 138ms (Views: 129.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:19:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:19:47.978241"], ["last_sign_in_at", "2018-12-06 23:19:47.978241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:19:47.978770"], ["id", 9700]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:19:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9700], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:19:48.002982"], ["updated_at", "2018-12-06 23:19:48.002982"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9700], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7223” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7223"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7223], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7223')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9700], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7223” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9700], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7223], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9700], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9700], ["room_id", 7223], ["created_at", "2018-12-06 23:19:48.059067"], ["updated_at", "2018-12-06 23:19:48.059067"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9700], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1hXLJbrGQ8cXKMUhQ25jZe7brqr2MLiI/3ATWTS.C7bJfNS7Tf40K"], ["created_at", "2018-12-06 23:19:48.075290"], ["updated_at", "2018-12-06 23:19:48.075290"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:19:48.087295"], ["last_sign_in_at", "2018-12-06 23:19:48.087295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:19:48.087716"], ["id", 9701]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9701], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:19:48.095757"], ["updated_at", "2018-12-06 23:19:48.095757"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7224], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9701], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9701], ["room_id", 7224], ["created_at", "2018-12-06 23:19:48.099840"], ["updated_at", "2018-12-06 23:19:48.099840"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9701], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7224” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7224"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7224], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7224')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9701], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7224” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9701], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7224], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9701], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9701], ["room_id", 7224], ["created_at", "2018-12-06 23:19:48.128181"], ["updated_at", "2018-12-06 23:19:48.128181"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:19:48 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9701], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$loCFlpUeOKzRaDQuf2RyfOK859cMaQZod154zDVYaVN6c1yWgtLya"], ["created_at", "2018-12-06 23:22:08.189603"], ["updated_at", "2018-12-06 23:22:08.189603"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.0ms)
Rendered users/sessions/new.html.erb within layouts/application (112.1ms)

Completed 200 OK in 125ms (Views: 116.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:22:08.341052"], ["last_sign_in_at", "2018-12-06 23:22:08.341052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:22:08.341534"], ["id", 9702]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9702], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:22:08.365513"], ["updated_at", "2018-12-06 23:22:08.365513"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9702], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7225” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7225"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7225], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7225')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9702], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7225” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9702], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Completed 500 Internal Server Error in 55ms (ActiveRecord: 1.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UlVBgr5Sr4z.U7jFP1pVe.B8oy06YT9y47Ukg5HPmT4c.X7W3bgDm"], ["created_at", "2018-12-06 23:22:08.470971"], ["updated_at", "2018-12-06 23:22:08.470971"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:22:08.484608"], ["last_sign_in_at", "2018-12-06 23:22:08.484608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:22:08.485076"], ["id", 9703]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9703], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:22:08.493461"], ["updated_at", "2018-12-06 23:22:08.493461"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7226], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9703], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9703], ["room_id", 7226], ["created_at", "2018-12-06 23:22:08.505283"], ["updated_at", "2018-12-06 23:22:08.505283"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9703], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7226” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7226"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7226], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7226')
Rendered appointments/show.html.erb within layouts/application (3.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9703], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.9ms) Started POST “/appointments.7226” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9703], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7226], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9703], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9703], ["room_id", 7226], ["created_at", "2018-12-06 23:22:08.554696"], ["updated_at", "2018-12-06 23:22:08.554696"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:22:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9703], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$vdBe6bPLLc55InTz7eEl4.FSXVhWLs6e61Kv5kNPBbvIJGZzKhh7C"], ["created_at", "2018-12-06 23:22:24.423122"], ["updated_at", "2018-12-06 23:22:24.423122"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (123.2ms)

Completed 200 OK in 136ms (Views: 127.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:22:24.586595"], ["last_sign_in_at", "2018-12-06 23:22:24.586595"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:22:24.587107"], ["id", 9704]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9704], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:22:24.611189"], ["updated_at", "2018-12-06 23:22:24.611189"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9704], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7227” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7227"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7227], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7227')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9704], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7227” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9704], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7227], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9704], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9704], ["room_id", 7227], ["created_at", "2018-12-06 23:22:24.667432"], ["updated_at", "2018-12-06 23:22:24.667432"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9704], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Z26aJqSegKCIxs6xe.V.7OuW9dLRuLatvLRdyCpFnlmk83Aydv3OG"], ["created_at", "2018-12-06 23:22:24.683276"], ["updated_at", "2018-12-06 23:22:24.683276"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:22:24.695201"], ["last_sign_in_at", "2018-12-06 23:22:24.695201"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:22:24.695675"], ["id", 9705]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9705], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:22:24.703922"], ["updated_at", "2018-12-06 23:22:24.703922"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7228], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9705], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9705], ["room_id", 7228], ["created_at", "2018-12-06 23:22:24.708065"], ["updated_at", "2018-12-06 23:22:24.708065"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9705], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7228” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7228"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7228], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7228')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9705], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7228” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9705], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7228], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9705], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9705], ["room_id", 7228], ["created_at", "2018-12-06 23:22:24.736726"], ["updated_at", "2018-12-06 23:22:24.736726"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:22:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9705], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ahqIbiVE9SRuaCqJKCbw/OR6r85/4dS4YsNQxXHkBKqI1FqJ1uVMK"], ["created_at", "2018-12-06 23:25:10.891306"], ["updated_at", "2018-12-06 23:25:10.891306"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:25:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (117.6ms)

Completed 200 OK in 130ms (Views: 122.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:25:11.048710"], ["last_sign_in_at", "2018-12-06 23:25:11.048710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:25:11.049215"], ["id", 9706]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9706], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:25:11.072880"], ["updated_at", "2018-12-06 23:25:11.072880"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9706], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7229” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7229"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7229], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7229')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9706], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7229” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9706], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7229], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9706], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9706], ["room_id", 7229], ["created_at", "2018-12-06 23:25:11.128374"], ["updated_at", "2018-12-06 23:25:11.128374"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9706], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HVpjEZfsGnNfg9dlkCLxlecxHdBM.e6/ZcQ9oUh8WBji7tDu217lS"], ["created_at", "2018-12-06 23:25:11.143624"], ["updated_at", "2018-12-06 23:25:11.143624"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:25:11.155227"], ["last_sign_in_at", "2018-12-06 23:25:11.155227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:25:11.155742"], ["id", 9707]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9707], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:25:11.164086"], ["updated_at", "2018-12-06 23:25:11.164086"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7230], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9707], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9707], ["room_id", 7230], ["created_at", "2018-12-06 23:25:11.168698"], ["updated_at", "2018-12-06 23:25:11.168698"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9707], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7230” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7230"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7230], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7230')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9707], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7230” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9707], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7230], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9707], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9707], ["room_id", 7230], ["created_at", "2018-12-06 23:25:11.197289"], ["updated_at", "2018-12-06 23:25:11.197289"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:25:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9707], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$TDwRcSJHmWct/sd5URi0VeavOUjxB0ue6jrYPMNTRGCOtkqchW17W"], ["created_at", "2018-12-06 23:25:21.019501"], ["updated_at", "2018-12-06 23:25:21.019501"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:25:21 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (119.8ms)

Completed 200 OK in 133ms (Views: 124.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:25:21 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:25:21.179554"], ["last_sign_in_at", "2018-12-06 23:25:21.179554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:25:21.180025"], ["id", 9708]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:25:21 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9708], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:25:21.204148"], ["updated_at", "2018-12-06 23:25:21.204148"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7231], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9708], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9708], ["room_id", 7231], ["created_at", "2018-12-06 23:25:21.227330"], ["updated_at", "2018-12-06 23:25:21.227330"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:25:21 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9708], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7231” for 127.0.0.1 at 2018-12-06 21:25:21 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7231"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7231], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7231')
Rendered appointments/show.html.erb within layouts/application (6.0ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9708], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 8.9ms | ActiveRecord: 1.0ms) Started POST “/appointments.7231” for 127.0.0.1 at 2018-12-06 21:25:21 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9708], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7231], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9708], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9708], ["room_id", 7231], ["created_at", "2018-12-06 23:25:21.267181"], ["updated_at", "2018-12-06 23:25:21.267181"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:25:21 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9708], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hhfybw1pBs1PuH5jWNBh.ObFx/VPjZFnu9OhZ16i6nsiewOxIRTV6"], ["created_at", "2018-12-06 23:25:27.988442"], ["updated_at", "2018-12-06 23:25:27.988442"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:25:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (118.9ms)

Completed 200 OK in 132ms (Views: 123.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:25:28.147486"], ["last_sign_in_at", "2018-12-06 23:25:28.147486"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:25:28.147988"], ["id", 9709]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9709], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:25:28.171310"], ["updated_at", "2018-12-06 23:25:28.171310"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:25:28.172906"], ["updated_at", "2018-12-06 23:25:28.172906"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9709], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7232” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7232"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7232], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7232')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9709], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.7232” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9709], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7232], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9709], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9709], ["room_id", 7232], ["created_at", "2018-12-06 23:25:28.230841"], ["updated_at", "2018-12-06 23:25:28.230841"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9709], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$p34V5A10VJG7pkmsqdlUW.dYsRCTGiY1IONZo4rOzAYURTQpZsxAa"], ["created_at", "2018-12-06 23:25:28.247031"], ["updated_at", "2018-12-06 23:25:28.247031"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:25:28.259043"], ["last_sign_in_at", "2018-12-06 23:25:28.259043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:25:28.259535"], ["id", 9710]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9710], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:25:28.266982"], ["updated_at", "2018-12-06 23:25:28.266982"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:25:28.268278"], ["updated_at", "2018-12-06 23:25:28.268278"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9710], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7234” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7234"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7234], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7234')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9710], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms) Started POST “/appointments.7234” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9710], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:25:28 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9710], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$RqVr.OpzvAYkF19.GjxWQOkG.RRDCC4GbYXUz2vvhkkUo7ai4T.0q"], ["created_at", "2018-12-06 23:41:04.308155"], ["updated_at", "2018-12-06 23:41:04.308155"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (116.1ms)

Completed 200 OK in 129ms (Views: 120.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:41:04.464149"], ["last_sign_in_at", "2018-12-06 23:41:04.464149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:41:04.464657"], ["id", 9711]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9711], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:41:04.487744"], ["updated_at", "2018-12-06 23:41:04.487744"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:41:04.489319"], ["updated_at", "2018-12-06 23:41:04.489319"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9711], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7236” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7236"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7236], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7236')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9711], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7236” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9711], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7236], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9711], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9711], ["room_id", 7236], ["created_at", "2018-12-06 23:41:04.547457"], ["updated_at", "2018-12-06 23:41:04.547457"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9711], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$0hhRyNknha83nH6doHMYUuU/icuENpFXmC6PmFlh2ju0kQTMzyiCS"], ["created_at", "2018-12-06 23:41:04.572258"], ["updated_at", "2018-12-06 23:41:04.572258"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:41:04.584009"], ["last_sign_in_at", "2018-12-06 23:41:04.584009"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:41:04.584424"], ["id", 9712]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9712], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:41:04.591612"], ["updated_at", "2018-12-06 23:41:04.591612"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:41:04.592850"], ["updated_at", "2018-12-06 23:41:04.592850"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9712], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7238” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7238"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7238], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7238')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9712], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7238” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9712], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:41:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9712], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9IT.Smathf3MwjRR/ooWPOLW/Z4vNZ.DOrIE5KoWzje.1N53jVyJO"], ["created_at", "2018-12-06 23:41:46.335385"], ["updated_at", "2018-12-06 23:41:46.335385"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (118.7ms)

Completed 200 OK in 132ms (Views: 123.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:41:46.494212"], ["last_sign_in_at", "2018-12-06 23:41:46.494212"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:41:46.494710"], ["id", 9713]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9713], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:41:46.518138"], ["updated_at", "2018-12-06 23:41:46.518138"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:41:46.519769"], ["updated_at", "2018-12-06 23:41:46.519769"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9713], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/7240” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7240"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7240], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7240')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9713], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.7240” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9713], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7240], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9713], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9713], ["room_id", 7240], ["created_at", "2018-12-06 23:41:46.577883"], ["updated_at", "2018-12-06 23:41:46.577883"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9713], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3MW8lfkeYfJoursaHHM0hu5HiJinl8TIQU7Gv6GoGZlLc3RbsV41O"], ["created_at", "2018-12-06 23:41:46.602943"], ["updated_at", "2018-12-06 23:41:46.602943"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:41:46.615039"], ["last_sign_in_at", "2018-12-06 23:41:46.615039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:41:46.615466"], ["id", 9714]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9714], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:41:46.622677"], ["updated_at", "2018-12-06 23:41:46.622677"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:41:46.624070"], ["updated_at", "2018-12-06 23:41:46.624070"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9714], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7242” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7242"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7242], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7242')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9714], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms) Started POST “/appointments.7242” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9714], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:41:46 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9714], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ij1r88nLaPJqbWOgskdqk.FA3WxbrTXgWuTJufyd/ySffxwcw.2by"], ["created_at", "2018-12-06 23:42:03.265322"], ["updated_at", "2018-12-06 23:42:03.265322"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (119.3ms)

Completed 200 OK in 132ms (Views: 123.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:42:03.424808"], ["last_sign_in_at", "2018-12-06 23:42:03.424808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:42:03.425327"], ["id", 9715]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9715], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:42:03.448570"], ["updated_at", "2018-12-06 23:42:03.448570"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:42:03.450065"], ["updated_at", "2018-12-06 23:42:03.450065"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9715], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7244” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7244"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7244], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7244')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9715], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7244” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9715], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7244], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9715], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9715], ["room_id", 7244], ["created_at", "2018-12-06 23:42:03.508583"], ["updated_at", "2018-12-06 23:42:03.508583"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9715], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sD.gH6vahWrniQ7p6tQQ0e56FuCzMm7AdoC/rGahKe3o78kz5oTde"], ["created_at", "2018-12-06 23:42:03.524613"], ["updated_at", "2018-12-06 23:42:03.524613"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:42:03.537122"], ["last_sign_in_at", "2018-12-06 23:42:03.537122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:42:03.537556"], ["id", 9716]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9716], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-06 23:42:03.545033"], ["updated_at", "2018-12-06 23:42:03.545033"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:42:03.546418"], ["updated_at", "2018-12-06 23:42:03.546418"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9716], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7246” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7246"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7246], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7246')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9716], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.7246” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9716], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:42:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9716], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Iy8FZM7s8CU8.zvHH4HPrOaM.8D42sxr61YvDlXuZ77V/ROUe9SIC"], ["created_at", "2018-12-06 23:42:11.613541"], ["updated_at", "2018-12-06 23:42:11.613541"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (116.3ms)

Completed 200 OK in 129ms (Views: 120.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:42:11.769400"], ["last_sign_in_at", "2018-12-06 23:42:11.769400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:42:11.769914"], ["id", 9717]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9717], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:42:11.793502"], ["updated_at", "2018-12-06 23:42:11.793502"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9717], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7248” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7248"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7248], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7248')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9717], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.7248” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9717], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7248], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9717], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9717], ["room_id", 7248], ["created_at", "2018-12-06 23:42:11.849598"], ["updated_at", "2018-12-06 23:42:11.849598"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9717], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$fp9.4GgqQ8TJuAR7mZPzRufZRQ6cIXfIhlJV7uOgGOrtw9HzYysf."], ["created_at", "2018-12-06 23:42:11.865462"], ["updated_at", "2018-12-06 23:42:11.865462"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:42:11.877328"], ["last_sign_in_at", "2018-12-06 23:42:11.877328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:42:11.877824"], ["id", 9718]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9718], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:42:11.886203"], ["updated_at", "2018-12-06 23:42:11.886203"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7249], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9718], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9718], ["room_id", 7249], ["created_at", "2018-12-06 23:42:11.890431"], ["updated_at", "2018-12-06 23:42:11.890431"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9718], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET “/appointments/7249” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7249"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7249], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7249')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9718], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7249” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9718], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7249], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9718], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9718], ["room_id", 7249], ["created_at", "2018-12-06 23:42:11.941501"], ["updated_at", "2018-12-06 23:42:11.941501"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 2.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:42:11 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9718], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$CksHnoZkKEikKfxGfsz1eex3fDGCQ3iBHgxytX2YXEmccCmK89B5e"], ["created_at", "2018-12-06 23:45:55.027761"], ["updated_at", "2018-12-06 23:45:55.027761"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (117.7ms)

Completed 200 OK in 131ms (Views: 122.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:45:55.185906"], ["last_sign_in_at", "2018-12-06 23:45:55.185906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:45:55.186394"], ["id", 9719]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9719], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:45:55.210481"], ["updated_at", "2018-12-06 23:45:55.210481"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9719], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7250” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7250"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7250], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7250')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9719], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7250” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9719], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7250], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9719], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9719], ["room_id", 7250], ["created_at", "2018-12-06 23:45:55.266690"], ["updated_at", "2018-12-06 23:45:55.266690"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9719], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$NNAv3gzDyaQf8GVfZDNen.rWWpR63cPMuO1Uc5LqV.8Zqaapun9DW"], ["created_at", "2018-12-06 23:45:55.282735"], ["updated_at", "2018-12-06 23:45:55.282735"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:45:55.294543"], ["last_sign_in_at", "2018-12-06 23:45:55.294543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:45:55.294986"], ["id", 9720]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9720], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:45:55.303197"], ["updated_at", "2018-12-06 23:45:55.303197"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7251], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9720], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9720], ["room_id", 7251], ["created_at", "2018-12-06 23:45:55.307549"], ["updated_at", "2018-12-06 23:45:55.307549"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9720], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7251” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7251"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7251], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7251')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9720], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7251” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9720], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7251], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9720], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9720], ["room_id", 7251], ["created_at", "2018-12-06 23:45:55.336196"], ["updated_at", "2018-12-06 23:45:55.336196"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 21:45:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9720], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$71U2BbXxeDTfXMbNvzGZm..AJsP5jYhj8Cj5nfv/Ws3I5m430LDhu"], ["created_at", "2018-12-06 23:53:52.659938"], ["updated_at", "2018-12-06 23:53:52.659938"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (118.4ms)

Completed 200 OK in 131ms (Views: 123.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:53:52.818508"], ["last_sign_in_at", "2018-12-06 23:53:52.818508"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:53:52.819006"], ["id", 9721]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9721], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:53:52.842565"], ["updated_at", "2018-12-06 23:53:52.842565"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9721], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7252” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7252"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7252], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7252')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9721], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7252” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9721], ["LIMIT", 1]]

Completed 500 Internal Server Error in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sGqQa0NzoW57TAHAC6lnl.cwpx0tU0aQj.rkCWjrKwJG6zt2x7dla"], ["created_at", "2018-12-06 23:53:52.902181"], ["updated_at", "2018-12-06 23:53:52.902181"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:53:52.914115"], ["last_sign_in_at", "2018-12-06 23:53:52.914115"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:53:52.914548"], ["id", 9722]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9722], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:53:52.922755"], ["updated_at", "2018-12-06 23:53:52.922755"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7253], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9722], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9722], ["room_id", 7253], ["created_at", "2018-12-06 23:53:52.934218"], ["updated_at", "2018-12-06 23:53:52.934218"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9722], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7253” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7253"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7253], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7253')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9722], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7253” for 127.0.0.1 at 2018-12-06 21:53:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9722], ["LIMIT", 1]]

Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Lb/cyUdN.fnuKyWwpBIMreFG8GakDFznqQU1vWdJPSKj4yWukYpsa"], ["created_at", "2018-12-06 23:54:38.704634"], ["updated_at", "2018-12-06 23:54:38.704634"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (116.2ms)

Completed 200 OK in 129ms (Views: 120.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:54:38.860762"], ["last_sign_in_at", "2018-12-06 23:54:38.860762"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:54:38.861268"], ["id", 9723]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9723], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:54:38.884968"], ["updated_at", "2018-12-06 23:54:38.884968"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9723], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7254” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7254"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7254], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7254')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9723], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7254” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9723], ["LIMIT", 1]]

Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$uGSMjBkouVqVanY3aTZNTOczSkGVdYu9lhdn0Gvw56wURCYYGyqo2"], ["created_at", "2018-12-06 23:54:38.946329"], ["updated_at", "2018-12-06 23:54:38.946329"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:54:38.958082"], ["last_sign_in_at", "2018-12-06 23:54:38.958082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:54:38.958520"], ["id", 9724]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9724], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:54:38.966763"], ["updated_at", "2018-12-06 23:54:38.966763"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7255], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9724], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9724], ["room_id", 7255], ["created_at", "2018-12-06 23:54:38.978078"], ["updated_at", "2018-12-06 23:54:38.978078"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9724], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7255” for 127.0.0.1 at 2018-12-06 21:54:38 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7255"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7255], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7255')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9724], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7255” for 127.0.0.1 at 2018-12-06 21:54:39 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9724], ["LIMIT", 1]]

Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$6cmvgglbY0/DZIisrV/QSOpysatF7XXWaxmLB1EYiPtgq7UMbFVJm"], ["created_at", "2018-12-06 23:55:00.805554"], ["updated_at", "2018-12-06 23:55:00.805554"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:55:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (112.6ms)

Completed 200 OK in 126ms (Views: 117.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:55:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:55:00.957822"], ["last_sign_in_at", "2018-12-06 23:55:00.957822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:55:00.958319"], ["id", 9725]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:55:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9725], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:55:00.982243"], ["updated_at", "2018-12-06 23:55:00.982243"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:55:00 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9725], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.6ms) Started GET “/appointments/7256” for 127.0.0.1 at 2018-12-06 21:55:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7256"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7256], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7256')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9725], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.1ms) Started POST “/appointments.7256” for 127.0.0.1 at 2018-12-06 21:55:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9725], ["LIMIT", 1]]

Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Hsq3R30tRyRZV8k3360u1etGmT6swgnb2jULNxzh1SORBjb.PjUKS"], ["created_at", "2018-12-06 23:55:01.044326"], ["updated_at", "2018-12-06 23:55:01.044326"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:55:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:55:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:55:01.056250"], ["last_sign_in_at", "2018-12-06 23:55:01.056250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:55:01.056683"], ["id", 9726]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:55:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9726], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:55:01.065022"], ["updated_at", "2018-12-06 23:55:01.065022"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7257], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9726], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9726], ["room_id", 7257], ["created_at", "2018-12-06 23:55:01.076446"], ["updated_at", "2018-12-06 23:55:01.076446"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:55:01 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9726], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET “/appointments/7257” for 127.0.0.1 at 2018-12-06 21:55:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7257"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7257], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7257')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9726], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.6ms) Started POST “/appointments.7257” for 127.0.0.1 at 2018-12-06 21:55:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9726], ["LIMIT", 1]]

Completed 500 Internal Server Error in 26ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$scWhuUCBhIQCwerPYU/1WuKHw9yX45qo65b6ztiXs2rRQoz/ISHQS"], ["created_at", "2018-12-06 23:55:25.974402"], ["updated_at", "2018-12-06 23:55:25.974402"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:55:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (118.0ms)

Completed 200 OK in 131ms (Views: 122.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:55:26.132937"], ["last_sign_in_at", "2018-12-06 23:55:26.132937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:55:26.133447"], ["id", 9727]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9727], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:55:26.157831"], ["updated_at", "2018-12-06 23:55:26.157831"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9727], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7258” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7258"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7258], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7258')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9727], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7258” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9727], ["LIMIT", 1]]

Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$VcABqdB9Bpb.fQbmVXnhIu5S7jbTwWjkenc.dj0pFpzktbKMi3tqi"], ["created_at", "2018-12-06 23:55:26.218054"], ["updated_at", "2018-12-06 23:55:26.218054"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:55:26.230194"], ["last_sign_in_at", "2018-12-06 23:55:26.230194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:55:26.230618"], ["id", 9728]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9728], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:55:26.238882"], ["updated_at", "2018-12-06 23:55:26.238882"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7259], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9728], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9728], ["room_id", 7259], ["created_at", "2018-12-06 23:55:26.250714"], ["updated_at", "2018-12-06 23:55:26.250714"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9728], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7259” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7259"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7259], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7259')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9728], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.7ms) Started POST “/appointments.7259” for 127.0.0.1 at 2018-12-06 21:55:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9728], ["LIMIT", 1]]

Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$C1XslnppvT0RX15vXsKeQOIPiXK0G9N9QCkJqbYKlNOGNX999/GX6"], ["created_at", "2018-12-06 23:58:45.839707"], ["updated_at", "2018-12-06 23:58:45.839707"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:58:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (124.4ms)

Completed 200 OK in 137ms (Views: 129.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:58:46.004735"], ["last_sign_in_at", "2018-12-06 23:58:46.004735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:58:46.005255"], ["id", 9729]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9729], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:58:46.029727"], ["updated_at", "2018-12-06 23:58:46.029727"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9729], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7260” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7260"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7260], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7260')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9729], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.1ms) Started POST “/appointments.7260” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9729], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Completed 500 Internal Server Error in 334ms (ActiveRecord: 1.4ms)

 (0.6ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.3ms)  COMMIT
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.9ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$xphrwXbv3EcR1RJ7Q.k7Z.6YHV.oirzmAkN9RHxzV9ciLQhV/Wm06"], ["created_at", "2018-12-06 23:58:46.429421"], ["updated_at", "2018-12-06 23:58:46.429421"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-06 23:58:46.450455"], ["last_sign_in_at", "2018-12-06 23:58:46.450455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-06 23:58:46.451040"], ["id", 9730]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9730], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-06 23:58:46.460928"], ["updated_at", "2018-12-06 23:58:46.460928"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7261], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9730], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9730], ["room_id", 7261], ["created_at", "2018-12-06 23:58:46.472089"], ["updated_at", "2018-12-06 23:58:46.472089"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9730], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7261” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7261"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7261], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7261')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9730], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.7261” for 127.0.0.1 at 2018-12-06 21:58:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9730], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$f04yFhUKXUtniOrSEeveXOI6Wg8g8/dtdrFLcNMzUcyUc4vOTl2MW"], ["created_at", "2018-12-07 00:01:05.723277"], ["updated_at", "2018-12-07 00:01:05.723277"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (119.1ms)

Completed 200 OK in 132ms (Views: 123.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:01:05.882163"], ["last_sign_in_at", "2018-12-07 00:01:05.882163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:01:05.882637"], ["id", 9731]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9731], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:01:05.906190"], ["updated_at", "2018-12-07 00:01:05.906190"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9731], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7262” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7262"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7262], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7262')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9731], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7262” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9731], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00' AND id = 7262)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7262], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9731], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9731], ["room_id", 7262], ["created_at", "2018-12-07 00:01:05.962538"], ["updated_at", "2018-12-07 00:01:05.962538"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9731], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$/aesgH6RlVdG7eK4Ivxm.u0uIdU3P0DyJURALn.hP7qFp1aunbqpW"], ["created_at", "2018-12-07 00:01:05.977967"], ["updated_at", "2018-12-07 00:01:05.977967"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:01:05.989458"], ["last_sign_in_at", "2018-12-07 00:01:05.989458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:01:05.989924"], ["id", 9732]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:01:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9732], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:01:05.998136"], ["updated_at", "2018-12-07 00:01:05.998136"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7263], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9732], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9732], ["room_id", 7263], ["created_at", "2018-12-07 00:01:06.002562"], ["updated_at", "2018-12-07 00:01:06.002562"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:01:06 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9732], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms) Started GET “/appointments/7263” for 127.0.0.1 at 2018-12-06 22:01:06 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7263"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7263], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7263')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9732], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms) Started POST “/appointments.7263” for 127.0.0.1 at 2018-12-06 22:01:06 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9732], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00' AND id = 7263)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7263], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9732], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9732], ["room_id", 7263], ["created_at", "2018-12-07 00:01:06.031441"], ["updated_at", "2018-12-07 00:01:06.031441"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:01:06 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9732], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sz6RT6eOYhAvYA6iCh/vNe.PBe1IAQPGb493cZ3dWwdM8LPKEzNii"], ["created_at", "2018-12-07 00:01:45.726666"], ["updated_at", "2018-12-07 00:01:45.726666"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (119.1ms)

Completed 200 OK in 132ms (Views: 123.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:01:45.886022"], ["last_sign_in_at", "2018-12-07 00:01:45.886022"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:01:45.886551"], ["id", 9733]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9733], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:01:45.910569"], ["updated_at", "2018-12-07 00:01:45.910569"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9733], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7264” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7264"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7264], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7264')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9733], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7264” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9733], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00' AND id = 7264)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7264], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9733], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9733], ["room_id", 7264], ["created_at", "2018-12-07 00:01:45.967875"], ["updated_at", "2018-12-07 00:01:45.967875"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9733], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$PIO3ZEh88UDLuaBgqnY1..WI2csYuNBPmA8ZgB0.s06sovxjRHMyG"], ["created_at", "2018-12-07 00:01:45.983984"], ["updated_at", "2018-12-07 00:01:45.983984"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:01:45.995778"], ["last_sign_in_at", "2018-12-07 00:01:45.995778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:01:45.996261"], ["id", 9734]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:01:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9734], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:01:46.004734"], ["updated_at", "2018-12-07 00:01:46.004734"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7265], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9734], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9734], ["room_id", 7265], ["created_at", "2018-12-07 00:01:46.009069"], ["updated_at", "2018-12-07 00:01:46.009069"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:01:46 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9734], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7265” for 127.0.0.1 at 2018-12-06 22:01:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7265"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7265], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7265')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9734], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7265” for 127.0.0.1 at 2018-12-06 22:01:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9734], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00' AND id = 7265)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7265], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9734], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9734], ["room_id", 7265], ["created_at", "2018-12-07 00:01:46.038205"], ["updated_at", "2018-12-07 00:01:46.038205"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:01:46 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9734], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$eIqGeabFJ4BhOuPho76nOup1MRdTP82H3TQrLXF4EXj9MJaQ/Kr9K"], ["created_at", "2018-12-07 00:03:57.082934"], ["updated_at", "2018-12-07 00:03:57.082934"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (125.2ms)

Completed 200 OK in 138ms (Views: 129.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:03:57.248188"], ["last_sign_in_at", "2018-12-07 00:03:57.248188"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:03:57.248695"], ["id", 9735]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9735], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:03:57.272645"], ["updated_at", "2018-12-07 00:03:57.272645"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9735], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7266” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7266"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7266], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7266')
Rendered appointments/show.html.erb within layouts/application (5.5ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9735], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7266” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9735], ["LIMIT", 1]]

Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$KVfiHco8MKWLrXuI5AqI7uWqVh8p2KzfzeB/ULt4KQ4q.3ttyw/4."], ["created_at", "2018-12-07 00:03:57.337601"], ["updated_at", "2018-12-07 00:03:57.337601"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:03:57.349552"], ["last_sign_in_at", "2018-12-07 00:03:57.349552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:03:57.349968"], ["id", 9736]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9736], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:03:57.358104"], ["updated_at", "2018-12-07 00:03:57.358104"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7267], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9736], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9736], ["room_id", 7267], ["created_at", "2018-12-07 00:03:57.369955"], ["updated_at", "2018-12-07 00:03:57.369955"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9736], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7267” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7267"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7267], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7267')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9736], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7267” for 127.0.0.1 at 2018-12-06 22:03:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9736], ["LIMIT", 1]]

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$qJ7v.dbv7j/pVadxafaZkec1AwgLeHr5HiTLJYG1kIJzfhdgz7etC"], ["created_at", "2018-12-07 00:04:24.463228"], ["updated_at", "2018-12-07 00:04:24.463228"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.2ms)
Rendered users/sessions/new.html.erb within layouts/application (117.0ms)

Completed 200 OK in 130ms (Views: 121.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:04:24.619924"], ["last_sign_in_at", "2018-12-07 00:04:24.619924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:04:24.620430"], ["id", 9737]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9737], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:04:24.644346"], ["updated_at", "2018-12-07 00:04:24.644346"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9737], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.7ms) Started GET “/appointments/7268” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7268"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7268], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7268')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9737], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.1ms) Started POST “/appointments.7268” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9737], ["LIMIT", 1]]

Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Vm6bsNYJQXI3RpBgqsG6Duj4N.Oir9N/UY/3Wl1ZeMmpKTCSh8Nnm"], ["created_at", "2018-12-07 00:04:24.709579"], ["updated_at", "2018-12-07 00:04:24.709579"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:04:24.721356"], ["last_sign_in_at", "2018-12-07 00:04:24.721356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:04:24.721760"], ["id", 9738]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9738], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:04:24.730001"], ["updated_at", "2018-12-07 00:04:24.730001"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7269], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9738], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9738], ["room_id", 7269], ["created_at", "2018-12-07 00:04:24.741362"], ["updated_at", "2018-12-07 00:04:24.741362"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9738], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7269” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7269"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7269], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7269')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9738], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7269” for 127.0.0.1 at 2018-12-06 22:04:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9738], ["LIMIT", 1]]

Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ivwYDUWGpnynmiUu71cka.oNIxvO6gV9xLMhd.vDqBrb227f.n9Ra"], ["created_at", "2018-12-07 00:06:28.140301"], ["updated_at", "2018-12-07 00:06:28.140301"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (116.9ms)

Completed 200 OK in 130ms (Views: 121.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:06:28.296732"], ["last_sign_in_at", "2018-12-07 00:06:28.296732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:06:28.297250"], ["id", 9739]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9739], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:06:28.320921"], ["updated_at", "2018-12-07 00:06:28.320921"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9739], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7270” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7270"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7270], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7270')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9739], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.1ms) Started POST “/appointments.7270” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9739], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7270], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9739], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9739], ["room_id", 7270], ["created_at", "2018-12-07 00:06:28.377316"], ["updated_at", "2018-12-07 00:06:28.377316"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9739], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HTTjs1qfQMvStBGmtuY2u.04OVJ41KblbXgiGFKXT/.VWl6JIU9IW"], ["created_at", "2018-12-07 00:06:28.393044"], ["updated_at", "2018-12-07 00:06:28.393044"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:06:28.404979"], ["last_sign_in_at", "2018-12-07 00:06:28.404979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:06:28.405412"], ["id", 9740]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9740], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:06:28.413438"], ["updated_at", "2018-12-07 00:06:28.413438"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7271], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9740], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9740], ["room_id", 7271], ["created_at", "2018-12-07 00:06:28.417371"], ["updated_at", "2018-12-07 00:06:28.417371"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9740], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7271” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7271"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7271], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7271')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9740], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7271” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9740], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7271], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9740], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9740], ["room_id", 7271], ["created_at", "2018-12-07 00:06:28.464441"], ["updated_at", "2018-12-07 00:06:28.464441"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:06:28 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9740], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$jAvKaogzgJTT/Quts1HRnu5kHbd53dp.2w/5a2eJm4RImf1MPATW."], ["created_at", "2018-12-07 00:10:57.484912"], ["updated_at", "2018-12-07 00:10:57.484912"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (116.6ms)

Completed 200 OK in 129ms (Views: 121.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:10:57.641368"], ["last_sign_in_at", "2018-12-07 00:10:57.641368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:10:57.641871"], ["id", 9741]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9741], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:10:57.665667"], ["updated_at", "2018-12-07 00:10:57.665667"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9741], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7272” for 127.0.0.1 at 2018-12-06 22:10:57 -0200

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$09HZ0mmrZgkCVrtE1yHdAOgjvDD/Hd/SAOTygmLgMFYxZcvSIT8Fm"], ["created_at", "2018-12-07 00:10:57.689711"], ["updated_at", "2018-12-07 00:10:57.689711"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:10:57.701477"], ["last_sign_in_at", "2018-12-07 00:10:57.701477"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:10:57.701956"], ["id", 9742]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9742], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:10:57.710128"], ["updated_at", "2018-12-07 00:10:57.710128"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7273], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9742], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9742], ["room_id", 7273], ["created_at", "2018-12-07 00:10:57.732261"], ["updated_at", "2018-12-07 00:10:57.732261"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:10:57 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9742], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET “/appointments/7273” for 127.0.0.1 at 2018-12-06 22:10:57 -0200

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sFrS/K2MYEtGk6FmSU.okudHYEAfhaeVfO3JPE5E41e.RkLSyq.ji"], ["created_at", "2018-12-07 00:11:43.386280"], ["updated_at", "2018-12-07 00:11:43.386280"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (117.1ms)

Completed 200 OK in 130ms (Views: 121.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:11:43.543136"], ["last_sign_in_at", "2018-12-07 00:11:43.543136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:11:43.543644"], ["id", 9743]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9743], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:11:43.567503"], ["updated_at", "2018-12-07 00:11:43.567503"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9743], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7274” for 127.0.0.1 at 2018-12-06 22:11:43 -0200

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UAOyjgpxb2W9xPaGXq0WEOmH4H3/Rw9WjgWWSz8Yhf7D/cjQb2rtm"], ["created_at", "2018-12-07 00:11:43.591301"], ["updated_at", "2018-12-07 00:11:43.591301"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:11:43.602965"], ["last_sign_in_at", "2018-12-07 00:11:43.602965"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:11:43.603431"], ["id", 9744]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9744], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:11:43.611547"], ["updated_at", "2018-12-07 00:11:43.611547"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7275], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9744], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9744], ["room_id", 7275], ["created_at", "2018-12-07 00:11:43.634228"], ["updated_at", "2018-12-07 00:11:43.634228"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:11:43 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9744], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7275” for 127.0.0.1 at 2018-12-06 22:11:43 -0200

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$LVuVn/gfANSdiyYJNRkUR.v1qTN9yc4RTZyd4Vp7qiY0j3tiu39xC"], ["created_at", "2018-12-07 00:12:43.382865"], ["updated_at", "2018-12-07 00:12:43.382865"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (112.4ms)

Completed 200 OK in 125ms (Views: 117.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:12:43.534715"], ["last_sign_in_at", "2018-12-07 00:12:43.534715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:12:43.535216"], ["id", 9745]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9745], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:12:43.558782"], ["updated_at", "2018-12-07 00:12:43.558782"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9745], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/7276” for 127.0.0.1 at 2018-12-06 22:12:43 -0200

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$35mzsOhaUoeLwHNNS1JYEu0nPe5XEvoCNkpfi1Z6yEayKdif2Qz8C"], ["created_at", "2018-12-07 00:12:43.583056"], ["updated_at", "2018-12-07 00:12:43.583056"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:12:43.594586"], ["last_sign_in_at", "2018-12-07 00:12:43.594586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:12:43.595047"], ["id", 9746]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9746], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:12:43.603552"], ["updated_at", "2018-12-07 00:12:43.603552"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7277], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9746], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9746], ["room_id", 7277], ["created_at", "2018-12-07 00:12:43.626111"], ["updated_at", "2018-12-07 00:12:43.626111"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:12:43 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9746], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7277” for 127.0.0.1 at 2018-12-06 22:12:43 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$mG20B5cZSdQNUPyuGKO.5.7GJBErMR85UuPlQhSNhhaGeWFPAa3hW"], ["created_at", "2018-12-07 00:13:17.010060"], ["updated_at", "2018-12-07 00:13:17.010060"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.0ms)
Rendered users/sessions/new.html.erb within layouts/application (112.9ms)

Completed 200 OK in 126ms (Views: 117.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:13:17.162808"], ["last_sign_in_at", "2018-12-07 00:13:17.162808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:13:17.163323"], ["id", 9747]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9747], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:13:17.186988"], ["updated_at", "2018-12-07 00:13:17.186988"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9747], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7278” for 127.0.0.1 at 2018-12-06 22:13:17 -0200

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$o8zkhr0nzHCw4o.30yvxu.C2m5s3LrYt8/aDHUOu80mwuqR4fF21q"], ["created_at", "2018-12-07 00:13:17.210350"], ["updated_at", "2018-12-07 00:13:17.210350"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:13:17.221920"], ["last_sign_in_at", "2018-12-07 00:13:17.221920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:13:17.222327"], ["id", 9748]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9748], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:13:17.230354"], ["updated_at", "2018-12-07 00:13:17.230354"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7279], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9748], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9748], ["room_id", 7279], ["created_at", "2018-12-07 00:13:17.252898"], ["updated_at", "2018-12-07 00:13:17.252898"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:13:17 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9748], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7279” for 127.0.0.1 at 2018-12-06 22:13:17 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$gDmFQoBPgaweuC0tHxqf0OOTvx.K81HeT8eG6bXm5D6T4dvXmdaAi"], ["created_at", "2018-12-07 00:13:35.122903"], ["updated_at", "2018-12-07 00:13:35.122903"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (117.0ms)

Completed 200 OK in 130ms (Views: 121.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:13:35.280103"], ["last_sign_in_at", "2018-12-07 00:13:35.280103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:13:35.280615"], ["id", 9749]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9749], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:13:35.304820"], ["updated_at", "2018-12-07 00:13:35.304820"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9749], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7280” for 127.0.0.1 at 2018-12-06 22:13:35 -0200

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$a0ng/SGdEGTS6fHIU1bcne5LCa8UUOh8Z17UVSw4y4W0sZmrRA9LO"], ["created_at", "2018-12-07 00:13:35.328164"], ["updated_at", "2018-12-07 00:13:35.328164"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:13:35.339705"], ["last_sign_in_at", "2018-12-07 00:13:35.339705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:13:35.340138"], ["id", 9750]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9750], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:13:35.348158"], ["updated_at", "2018-12-07 00:13:35.348158"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7281], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9750], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9750], ["room_id", 7281], ["created_at", "2018-12-07 00:13:35.370489"], ["updated_at", "2018-12-07 00:13:35.370489"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:13:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9750], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/7281” for 127.0.0.1 at 2018-12-06 22:13:35 -0200

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$mDW2ll/kOZMWUziuRpKtAOZcLuLR2GrZmPQwx4rXa3dDYJCNsKW2m"], ["created_at", "2018-12-07 00:13:51.120268"], ["updated_at", "2018-12-07 00:13:51.120268"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (124.0ms)

Completed 200 OK in 137ms (Views: 128.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:13:51.284711"], ["last_sign_in_at", "2018-12-07 00:13:51.284711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:13:51.285226"], ["id", 9751]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9751], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:13:51.309526"], ["updated_at", "2018-12-07 00:13:51.309526"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9751], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7282” for 127.0.0.1 at 2018-12-06 22:13:51 -0200

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$tNLewsGViiba8O0TApaZH.s9lNErmlOnIIvJXn95a30MihWtLf31a"], ["created_at", "2018-12-07 00:13:51.333774"], ["updated_at", "2018-12-07 00:13:51.333774"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:13:51.345295"], ["last_sign_in_at", "2018-12-07 00:13:51.345295"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:13:51.345760"], ["id", 9752]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9752], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:13:51.353902"], ["updated_at", "2018-12-07 00:13:51.353902"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7283], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9752], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9752], ["room_id", 7283], ["created_at", "2018-12-07 00:13:51.376012"], ["updated_at", "2018-12-07 00:13:51.376012"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:13:51 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9752], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7283” for 127.0.0.1 at 2018-12-06 22:13:51 -0200

 (0.2ms)  ROLLBACK
 (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$mK93drpDtovszT59EMvxwe20lz8MRpJI304gCk8i2ZulLTqEmeeZm"], ["created_at", "2018-12-07 00:14:15.870773"], ["updated_at", "2018-12-07 00:14:15.870773"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:14:15 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.8ms)
Rendered users/sessions/new.html.erb within layouts/application (112.1ms)

Completed 200 OK in 125ms (Views: 116.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:14:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:14:16.021913"], ["last_sign_in_at", "2018-12-07 00:14:16.021913"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:14:16.022427"], ["id", 9753]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:14:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9753], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:14:16.046155"], ["updated_at", "2018-12-07 00:14:16.046155"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:14:16 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9753], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/7284” for 127.0.0.1 at 2018-12-06 22:14:16 -0200

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$4rlW59cWBzYtiL7KCqkZO.j8W6W0lGThDT6QP.3FlpwfFAy8bRDZu"], ["created_at", "2018-12-07 00:14:16.070128"], ["updated_at", "2018-12-07 00:14:16.070128"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:14:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:14:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:14:16.081825"], ["last_sign_in_at", "2018-12-07 00:14:16.081825"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:14:16.082281"], ["id", 9754]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:14:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9754], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:14:16.090530"], ["updated_at", "2018-12-07 00:14:16.090530"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7285], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9754], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9754], ["room_id", 7285], ["created_at", "2018-12-07 00:14:16.112955"], ["updated_at", "2018-12-07 00:14:16.112955"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:14:16 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9754], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7285” for 127.0.0.1 at 2018-12-06 22:14:16 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$AQavOu6B81SVbsDSQ3C1/OEpaNzW.fXgynCi751lQLM5eve0nDtK."], ["created_at", "2018-12-07 00:14:27.654494"], ["updated_at", "2018-12-07 00:14:27.654494"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (117.3ms)

Completed 200 OK in 130ms (Views: 122.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:14:27.812297"], ["last_sign_in_at", "2018-12-07 00:14:27.812297"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:14:27.812808"], ["id", 9755]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9755], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:14:27.837269"], ["updated_at", "2018-12-07 00:14:27.837269"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9755], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7286” for 127.0.0.1 at 2018-12-06 22:14:27 -0200

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$qgNZwbfbduPpahYVHDp0Y.qxR.7fEU9RjrAP/pp3509fzlH4M1apq"], ["created_at", "2018-12-07 00:14:27.860269"], ["updated_at", "2018-12-07 00:14:27.860269"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:14:27.871684"], ["last_sign_in_at", "2018-12-07 00:14:27.871684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:14:27.872090"], ["id", 9756]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9756], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:14:27.879963"], ["updated_at", "2018-12-07 00:14:27.879963"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7287], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9756], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9756], ["room_id", 7287], ["created_at", "2018-12-07 00:14:27.902073"], ["updated_at", "2018-12-07 00:14:27.902073"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:14:27 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9756], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7287” for 127.0.0.1 at 2018-12-06 22:14:27 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Ou/6DN7249wWjknXCbz6xO8a2qjLHt0F9wWtByfdN9cdv6Xa76Jnu"], ["created_at", "2018-12-07 00:14:50.321181"], ["updated_at", "2018-12-07 00:14:50.321181"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.0ms)
Rendered users/sessions/new.html.erb within layouts/application (113.3ms)

Completed 200 OK in 126ms (Views: 117.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:14:50.474069"], ["last_sign_in_at", "2018-12-07 00:14:50.474069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:14:50.474618"], ["id", 9757]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9757], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:14:50.498130"], ["updated_at", "2018-12-07 00:14:50.498130"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9757], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7288” for 127.0.0.1 at 2018-12-06 22:14:50 -0200

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$wy447xYYAI9PQzipB3whVuEgG8ovcCuQ1Hej7N1wL0CIw4MPTi47W"], ["created_at", "2018-12-07 00:14:50.521270"], ["updated_at", "2018-12-07 00:14:50.521270"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:14:50.532715"], ["last_sign_in_at", "2018-12-07 00:14:50.532715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:14:50.533136"], ["id", 9758]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9758], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:14:50.541026"], ["updated_at", "2018-12-07 00:14:50.541026"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7289], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9758], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9758], ["room_id", 7289], ["created_at", "2018-12-07 00:14:50.563168"], ["updated_at", "2018-12-07 00:14:50.563168"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:14:50 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9758], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/7289” for 127.0.0.1 at 2018-12-06 22:14:50 -0200

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$nkuw2AmAoDje7hGoI.b0Z.i3jH7Zcm27CoSvykYrsfQk3VvptNI7q"], ["created_at", "2018-12-07 00:16:07.980919"], ["updated_at", "2018-12-07 00:16:07.980919"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:16:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (115.3ms)

Completed 200 OK in 128ms (Views: 119.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:16:08.136187"], ["last_sign_in_at", "2018-12-07 00:16:08.136187"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:16:08.136693"], ["id", 9759]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9759], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:16:08.160412"], ["updated_at", "2018-12-07 00:16:08.160412"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9759], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7290” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7290"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7290], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7290')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9759], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7290” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9759], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7290], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9759], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9759], ["room_id", 7290], ["created_at", "2018-12-07 00:16:08.216641"], ["updated_at", "2018-12-07 00:16:08.216641"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9759], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$wMqoZ0iI73ZSpNLXgZs1ruQqbutDdrqkPUpaFDBB2pv.VEY7xG8Y6"], ["created_at", "2018-12-07 00:16:08.232191"], ["updated_at", "2018-12-07 00:16:08.232191"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:16:08.243979"], ["last_sign_in_at", "2018-12-07 00:16:08.243979"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:16:08.244485"], ["id", 9760]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9760], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:16:08.252831"], ["updated_at", "2018-12-07 00:16:08.252831"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7291], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9760], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9760], ["room_id", 7291], ["created_at", "2018-12-07 00:16:08.257338"], ["updated_at", "2018-12-07 00:16:08.257338"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9760], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7291” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7291"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7291], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7291')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9760], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7291” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9760], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7291], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9760], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9760], ["room_id", 7291], ["created_at", "2018-12-07 00:16:08.286101"], ["updated_at", "2018-12-07 00:16:08.286101"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:16:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9760], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$JfNzyENoBFDHcfXW1SCvJuoDnywWHysbmzqGAM9.EZUdZczj4/28i"], ["created_at", "2018-12-07 00:17:45.405173"], ["updated_at", "2018-12-07 00:17:45.405173"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (118.2ms)

Completed 200 OK in 131ms (Views: 122.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:17:45.563185"], ["last_sign_in_at", "2018-12-07 00:17:45.563185"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:17:45.563691"], ["id", 9761]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9761], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:17:45.586628"], ["updated_at", "2018-12-07 00:17:45.586628"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:17:45.588155"], ["updated_at", "2018-12-07 00:17:45.588155"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9761], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7292” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7292"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7292], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7292')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9761], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7292” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9761], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7292], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9761], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9761], ["room_id", 7292], ["created_at", "2018-12-07 00:17:45.645396"], ["updated_at", "2018-12-07 00:17:45.645396"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9761], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$micPxWPhS9pfotqnzTAFguJPWPV7UVuxkoFQV4oQDa5CADvv8.1zm"], ["created_at", "2018-12-07 00:17:45.661625"], ["updated_at", "2018-12-07 00:17:45.661625"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:17:45.673757"], ["last_sign_in_at", "2018-12-07 00:17:45.673757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:17:45.674305"], ["id", 9762]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9762], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:17:45.682124"], ["updated_at", "2018-12-07 00:17:45.682124"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:17:45.683539"], ["updated_at", "2018-12-07 00:17:45.683539"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9762], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7294” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7294"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7294], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7294')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9762], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.7294” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9762], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:17:45 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9762], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$I.o4QOSfllTXi31NTnzHJuZndqbwQltnrAcR39iDXJxAWHsNhbJb."], ["created_at", "2018-12-07 00:17:57.125627"], ["updated_at", "2018-12-07 00:17:57.125627"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (117.2ms)

Completed 200 OK in 130ms (Views: 121.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:17:57.283170"], ["last_sign_in_at", "2018-12-07 00:17:57.283170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:17:57.283671"], ["id", 9763]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9763], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:17:57.307427"], ["updated_at", "2018-12-07 00:17:57.307427"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9763], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/7296” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7296"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7296], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7296')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9763], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7296” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9763], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7296], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9763], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9763], ["room_id", 7296], ["created_at", "2018-12-07 00:17:57.363562"], ["updated_at", "2018-12-07 00:17:57.363562"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9763], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$injTRI.gldah.KPhOfmMzu9qvBKBEdo.1lzsJQMvjpyeyOUw5P02q"], ["created_at", "2018-12-07 00:17:57.379106"], ["updated_at", "2018-12-07 00:17:57.379106"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:17:57.390775"], ["last_sign_in_at", "2018-12-07 00:17:57.390775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:17:57.391265"], ["id", 9764]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9764], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:17:57.399595"], ["updated_at", "2018-12-07 00:17:57.399595"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7297], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9764], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9764], ["room_id", 7297], ["created_at", "2018-12-07 00:17:57.404279"], ["updated_at", "2018-12-07 00:17:57.404279"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9764], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7297” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7297"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7297], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7297')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9764], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7297” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9764], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7297], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9764], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9764], ["room_id", 7297], ["created_at", "2018-12-07 00:17:57.432637"], ["updated_at", "2018-12-07 00:17:57.432637"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:17:57 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9764], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$J.LK8k8HsRxX6LrMtH.Nle3hoR1VPAYXAEIZ4YNwKl47Wog1zR9q2"], ["created_at", "2018-12-07 00:18:30.267394"], ["updated_at", "2018-12-07 00:18:30.267394"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (118.0ms)

Completed 200 OK in 131ms (Views: 122.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:18:30.425837"], ["last_sign_in_at", "2018-12-07 00:18:30.425837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:18:30.426350"], ["id", 9765]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9765], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:18:30.450619"], ["updated_at", "2018-12-07 00:18:30.450619"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9765], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7298” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7298"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7298], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7298')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9765], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.8ms) Started POST “/appointments.7298” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9765], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7298], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9765], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9765], ["room_id", 7298], ["created_at", "2018-12-07 00:18:30.507815"], ["updated_at", "2018-12-07 00:18:30.507815"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9765], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$zS2oaKIcpJgCnxDQYiQAluDFzUJCa10CmKsiQ7V9AE9DY1n27x7RK"], ["created_at", "2018-12-07 00:18:30.524192"], ["updated_at", "2018-12-07 00:18:30.524192"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:18:30.536276"], ["last_sign_in_at", "2018-12-07 00:18:30.536276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:18:30.536754"], ["id", 9766]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9766], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:18:30.545062"], ["updated_at", "2018-12-07 00:18:30.545062"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7299], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9766], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9766], ["room_id", 7299], ["created_at", "2018-12-07 00:18:30.549376"], ["updated_at", "2018-12-07 00:18:30.549376"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9766], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7299” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7299"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7299], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7299')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9766], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.6ms) Started POST “/appointments.7299” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9766], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7299], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9766], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9766], ["room_id", 7299], ["created_at", "2018-12-07 00:18:30.576777"], ["updated_at", "2018-12-07 00:18:30.576777"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:18:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9766], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$4rvIws2djseCiF2UhFxRt.iTWcpVbHuhi6EiJepby4J0IhUoQVmFS"], ["created_at", "2018-12-07 00:19:30.211058"], ["updated_at", "2018-12-07 00:19:30.211058"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (117.0ms)

Completed 200 OK in 130ms (Views: 121.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:19:30.367909"], ["last_sign_in_at", "2018-12-07 00:19:30.367909"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:19:30.368416"], ["id", 9767]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9767], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:19:30.392178"], ["updated_at", "2018-12-07 00:19:30.392178"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9767], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7300” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7300"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7300], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7300')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9767], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.1ms) Started POST “/appointments.7300” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9767], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7300], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9767], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9767], ["room_id", 7300], ["created_at", "2018-12-07 00:19:30.448068"], ["updated_at", "2018-12-07 00:19:30.448068"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9767], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$JdOqVvS6BlBkYTdpZ8Pfn.i6Xov.mT5UcRnEg0McK/st.6oDMfpaW"], ["created_at", "2018-12-07 00:19:30.463741"], ["updated_at", "2018-12-07 00:19:30.463741"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:19:30.475360"], ["last_sign_in_at", "2018-12-07 00:19:30.475360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:19:30.475877"], ["id", 9768]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9768], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:19:30.484316"], ["updated_at", "2018-12-07 00:19:30.484316"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7301], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9768], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9768], ["room_id", 7301], ["created_at", "2018-12-07 00:19:30.488569"], ["updated_at", "2018-12-07 00:19:30.488569"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9768], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7301” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7301"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7301], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7301')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9768], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7301” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9768], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7301], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9768], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9768], ["room_id", 7301], ["created_at", "2018-12-07 00:19:30.517030"], ["updated_at", "2018-12-07 00:19:30.517030"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:19:30 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9768], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$lP2CqqDkoDEbX2j.L4iw8OxSNFZ.8ZijP9LUJFjV3cBYgo2LOdO9."], ["created_at", "2018-12-07 00:19:58.853712"], ["updated_at", "2018-12-07 00:19:58.853712"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:19:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (124.5ms)

Completed 200 OK in 137ms (Views: 129.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:19:59.018568"], ["last_sign_in_at", "2018-12-07 00:19:59.018568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:19:59.019093"], ["id", 9769]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9769], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:19:59.043355"], ["updated_at", "2018-12-07 00:19:59.043355"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9769], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/7302” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7302"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7302], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7302')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9769], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7302” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9769], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7302], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9769], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9769], ["room_id", 7302], ["created_at", "2018-12-07 00:19:59.099146"], ["updated_at", "2018-12-07 00:19:59.099146"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9769], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$yc1wjcHaMv9jbDrbN13CUOshnrhEw09cpknNSqP57k7cWdE5rYeRi"], ["created_at", "2018-12-07 00:19:59.123636"], ["updated_at", "2018-12-07 00:19:59.123636"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:19:59.135417"], ["last_sign_in_at", "2018-12-07 00:19:59.135417"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:19:59.135905"], ["id", 9770]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9770], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:19:59.144347"], ["updated_at", "2018-12-07 00:19:59.144347"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7303], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9770], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9770], ["room_id", 7303], ["created_at", "2018-12-07 00:19:59.148866"], ["updated_at", "2018-12-07 00:19:59.148866"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9770], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7303” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7303"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7303], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7303')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9770], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7303” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9770], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7303], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9770], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9770], ["room_id", 7303], ["created_at", "2018-12-07 00:19:59.177308"], ["updated_at", "2018-12-07 00:19:59.177308"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:19:59 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9770], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$RDi0gIC895Yt.UjGN3qgl.MAQbcX9BH6.SK8JKVY.70kBM56Fr4Bm"], ["created_at", "2018-12-07 00:21:20.239849"], ["updated_at", "2018-12-07 00:21:20.239849"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (116.0ms)

Completed 200 OK in 129ms (Views: 120.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:21:20.395759"], ["last_sign_in_at", "2018-12-07 00:21:20.395759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:21:20.396253"], ["id", 9771]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9771], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:21:20.419878"], ["updated_at", "2018-12-07 00:21:20.419878"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9771], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7304” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7304"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7304], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7304')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9771], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7304” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9771], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7304], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9771], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9771], ["room_id", 7304], ["created_at", "2018-12-07 00:21:20.476448"], ["updated_at", "2018-12-07 00:21:20.476448"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9771], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$NHygKPfP2kuCFb24skGYi.XsvyWH5GworL1SheiG75h4Ub2c9H/0m"], ["created_at", "2018-12-07 00:21:20.501337"], ["updated_at", "2018-12-07 00:21:20.501337"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:21:20.513258"], ["last_sign_in_at", "2018-12-07 00:21:20.513258"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:21:20.513738"], ["id", 9772]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9772], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:21:20.521811"], ["updated_at", "2018-12-07 00:21:20.521811"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7305], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9772], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9772], ["room_id", 7305], ["created_at", "2018-12-07 00:21:20.525613"], ["updated_at", "2018-12-07 00:21:20.525613"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9772], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7305” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7305"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7305], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7305')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9772], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7305” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9772], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7305], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9772], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9772], ["room_id", 7305], ["created_at", "2018-12-07 00:21:20.553445"], ["updated_at", "2018-12-07 00:21:20.553445"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:21:20 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9772], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kmZgANEfq.K3Nw8wrJYqnOxFCyOqo.XdGWgVAfNT.U/0SUxUX3Bke"], ["created_at", "2018-12-07 00:22:25.614929"], ["updated_at", "2018-12-07 00:22:25.614929"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (117.0ms)

Completed 200 OK in 130ms (Views: 121.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:22:25.771711"], ["last_sign_in_at", "2018-12-07 00:22:25.771711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:22:25.772227"], ["id", 9773]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9773], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:22:25.795963"], ["updated_at", "2018-12-07 00:22:25.795963"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9773], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7306” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7306"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7306], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7306')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9773], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7306” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9773], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7306], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9773], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9773], ["room_id", 7306], ["created_at", "2018-12-07 00:22:25.852331"], ["updated_at", "2018-12-07 00:22:25.852331"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9773], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$6IMOXGaoxGt2DEV404.sTOp8KQjykXVfDm5RPlQz4ErK/WBFAQGoS"], ["created_at", "2018-12-07 00:22:25.877013"], ["updated_at", "2018-12-07 00:22:25.877013"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:22:25.888860"], ["last_sign_in_at", "2018-12-07 00:22:25.888860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:22:25.889330"], ["id", 9774]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9774], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:22:25.897580"], ["updated_at", "2018-12-07 00:22:25.897580"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7307], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9774], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9774], ["room_id", 7307], ["created_at", "2018-12-07 00:22:25.902312"], ["updated_at", "2018-12-07 00:22:25.902312"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9774], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/7307” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7307"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7307], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7307')
Rendered appointments/show.html.erb within layouts/application (3.2ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9774], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 27ms (Views: 25.2ms | ActiveRecord: 0.9ms) Started POST “/appointments.7307” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9774], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7307], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9774], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9774], ["room_id", 7307], ["created_at", "2018-12-07 00:22:25.956163"], ["updated_at", "2018-12-07 00:22:25.956163"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:22:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9774], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$63ugd3oWmQb8cYJPrbxUWet0A33h9KRYL/YsAdiWdA5ixw4vMyXJS"], ["created_at", "2018-12-07 00:23:23.673292"], ["updated_at", "2018-12-07 00:23:23.673292"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.8ms)
Rendered users/sessions/new.html.erb within layouts/application (104.9ms)

Completed 200 OK in 118ms (Views: 109.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:23:23.818658"], ["last_sign_in_at", "2018-12-07 00:23:23.818658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:23:23.819199"], ["id", 9775]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9775], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:23:23.843752"], ["updated_at", "2018-12-07 00:23:23.843752"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9775], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7308” for 127.0.0.1 at 2018-12-06 22:23:23 -0200

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$NmP1dTLju3EvwRuyFTzeTuJ.ocoImDHvoZ4eRfDjjZLHScADn1RJC"], ["created_at", "2018-12-07 00:23:23.867611"], ["updated_at", "2018-12-07 00:23:23.867611"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:23:23.879272"], ["last_sign_in_at", "2018-12-07 00:23:23.879272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:23:23.879732"], ["id", 9776]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9776], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:23:23.887867"], ["updated_at", "2018-12-07 00:23:23.887867"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7309], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9776], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9776], ["room_id", 7309], ["created_at", "2018-12-07 00:23:23.910130"], ["updated_at", "2018-12-07 00:23:23.910130"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:23:23 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9776], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7309” for 127.0.0.1 at 2018-12-06 22:23:23 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$zGS1imYkoFEEASl6IOKcUegGB5vnaP.QqF5UrPI75dYePJA1a8umq"], ["created_at", "2018-12-07 00:23:45.958559"], ["updated_at", "2018-12-07 00:23:45.958559"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:23:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (118.0ms)

Completed 200 OK in 131ms (Views: 122.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:23:46.116571"], ["last_sign_in_at", "2018-12-07 00:23:46.116571"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:23:46.117082"], ["id", 9777]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9777], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:23:46.141144"], ["updated_at", "2018-12-07 00:23:46.141144"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9777], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7310” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7310"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7310], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7310')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9777], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7310” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9777], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7310], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9777], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9777], ["room_id", 7310], ["created_at", "2018-12-07 00:23:46.196652"], ["updated_at", "2018-12-07 00:23:46.196652"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 2.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9777], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$E2Osqu/NUUURG.pQwQaeFurezPc8FC9WCIZHNJQwzJMYg3lSkJ3Vq"], ["created_at", "2018-12-07 00:23:46.221001"], ["updated_at", "2018-12-07 00:23:46.221001"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:23:46.232855"], ["last_sign_in_at", "2018-12-07 00:23:46.232855"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:23:46.233284"], ["id", 9778]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9778], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:23:46.241688"], ["updated_at", "2018-12-07 00:23:46.241688"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7311], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9778], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9778], ["room_id", 7311], ["created_at", "2018-12-07 00:23:46.245958"], ["updated_at", "2018-12-07 00:23:46.245958"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9778], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7311” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7311"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7311], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7311')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9778], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7311” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9778], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7311], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9778], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9778], ["room_id", 7311], ["created_at", "2018-12-07 00:23:46.274291"], ["updated_at", "2018-12-07 00:23:46.274291"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:23:46 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9778], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$p/B3HYcOwg6t8XuYMCKYkOJfd9bXBZoGY/Pj/6e1UVbwQL.tB9zd."], ["created_at", "2018-12-07 00:24:43.805877"], ["updated_at", "2018-12-07 00:24:43.805877"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:24:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (116.6ms)

Completed 200 OK in 129ms (Views: 121.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:24:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:24:43.962491"], ["last_sign_in_at", "2018-12-07 00:24:43.962491"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:24:43.962996"], ["id", 9779]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:24:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9779], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:24:43.986631"], ["updated_at", "2018-12-07 00:24:43.986631"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:24:43 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9779], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7312” for 127.0.0.1 at 2018-12-06 22:24:44 -0200

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$n5cqA/gBpEqJqwVM0rvMMOTib7Urux0rjAJnqqKrsbmzpe5xcxpjq"], ["created_at", "2018-12-07 00:24:44.010153"], ["updated_at", "2018-12-07 00:24:44.010153"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:24:44 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:24:44 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:24:44.021626"], ["last_sign_in_at", "2018-12-07 00:24:44.021626"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:24:44.022082"], ["id", 9780]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:24:44 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9780], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:24:44.030173"], ["updated_at", "2018-12-07 00:24:44.030173"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7313], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9780], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9780], ["room_id", 7313], ["created_at", "2018-12-07 00:24:44.051961"], ["updated_at", "2018-12-07 00:24:44.051961"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:24:44 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9780], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7313” for 127.0.0.1 at 2018-12-06 22:24:44 -0200

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sd35pD807b8NWzG5aoYmUuu00feqr/cC.Yslb9x0uc0wqJNGFVaPW"], ["created_at", "2018-12-07 00:25:16.213038"], ["updated_at", "2018-12-07 00:25:16.213038"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (123.5ms)

Completed 200 OK in 136ms (Views: 128.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:25:16.376520"], ["last_sign_in_at", "2018-12-07 00:25:16.376520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:25:16.377013"], ["id", 9781]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9781], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:25:16.400995"], ["updated_at", "2018-12-07 00:25:16.400995"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9781], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7314” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7314"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7314], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7314')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9781], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7314” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9781], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Rvzp8fCubJqGqmVThEkzfe1rVTqhr.1444Ll6SIIIO/.qQR6PX3Ja"], ["created_at", "2018-12-07 00:25:16.457686"], ["updated_at", "2018-12-07 00:25:16.457686"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:25:16.469641"], ["last_sign_in_at", "2018-12-07 00:25:16.469641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:25:16.470057"], ["id", 9782]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9782], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:25:16.478301"], ["updated_at", "2018-12-07 00:25:16.478301"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7315], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9782], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9782], ["room_id", 7315], ["created_at", "2018-12-07 00:25:16.489942"], ["updated_at", "2018-12-07 00:25:16.489942"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9782], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7315” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7315"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7315], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7315')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9782], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7315” for 127.0.0.1 at 2018-12-06 22:25:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9782], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$gxYbQNtfKTaW4DQAKvOdF.UCKDTyC0iKXE/DjHG/1x8r8t6nZ8qkS"], ["created_at", "2018-12-07 00:25:35.878435"], ["updated_at", "2018-12-07 00:25:35.878435"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:25:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.1ms)
Rendered users/sessions/new.html.erb within layouts/application (125.4ms)

Completed 200 OK in 138ms (Views: 130.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:25:36.044391"], ["last_sign_in_at", "2018-12-07 00:25:36.044391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:25:36.044907"], ["id", 9783]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9783], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:25:36.068864"], ["updated_at", "2018-12-07 00:25:36.068864"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9783], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7316” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7316"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7316], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7316')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9783], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.8ms) Started POST “/appointments.7316” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9783], ["LIMIT", 1]]
Appointment Load (0.5ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 10ms (ActiveRecord: 1.3ms)

 (0.1ms)  ROLLBACK
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$fci8/9NvFtZY1KzRwyrt3O6bAsCIbk7c8owd66LTdmsuodA4BOvM6"], ["created_at", "2018-12-07 00:25:36.125822"], ["updated_at", "2018-12-07 00:25:36.125822"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:25:36.137810"], ["last_sign_in_at", "2018-12-07 00:25:36.137810"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:25:36.138303"], ["id", 9784]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9784], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:25:36.146569"], ["updated_at", "2018-12-07 00:25:36.146569"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7317], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9784], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9784], ["room_id", 7317], ["created_at", "2018-12-07 00:25:36.157928"], ["updated_at", "2018-12-07 00:25:36.157928"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9784], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7317” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7317"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7317], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7317')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9784], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7317” for 127.0.0.1 at 2018-12-06 22:25:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9784], ["LIMIT", 1]]
Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time) LIMIT $1  [["LIMIT", 11]]
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$mglVMpl8iKoKajCQ4STOgeSBfQNRM54A3k43HmtKW6kQRwwG6MPuO"], ["created_at", "2018-12-07 00:25:57.691697"], ["updated_at", "2018-12-07 00:25:57.691697"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:25:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (117.8ms)

Completed 200 OK in 131ms (Views: 122.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:25:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:25:57.849633"], ["last_sign_in_at", "2018-12-07 00:25:57.849633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:25:57.850136"], ["id", 9785]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:25:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9785], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:25:57.874236"], ["updated_at", "2018-12-07 00:25:57.874236"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:25:57 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9785], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7318” for 127.0.0.1 at 2018-12-06 22:25:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7318"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7318], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7318')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9785], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7318” for 127.0.0.1 at 2018-12-06 22:25:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9785], ["LIMIT", 1]]
 (115.0ms)  SELECT COUNT(*) FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time)

Completed 500 Internal Server Error in 122ms (ActiveRecord: 116.3ms)

 (0.4ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$R0QUX4y2/fBYg61YL1EvLOGYZlPM75jKhhNpbV2JjVVPD4NhbZzOy"], ["created_at", "2018-12-07 00:25:58.059160"], ["updated_at", "2018-12-07 00:25:58.059160"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:25:58 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:25:58 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:25:58.083194"], ["last_sign_in_at", "2018-12-07 00:25:58.083194"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:25:58.083675"], ["id", 9786]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:25:58 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9786], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:25:58.092769"], ["updated_at", "2018-12-07 00:25:58.092769"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7319], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9786], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9786], ["room_id", 7319], ["created_at", "2018-12-07 00:25:58.103787"], ["updated_at", "2018-12-07 00:25:58.103787"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:25:58 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9786], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/7319” for 127.0.0.1 at 2018-12-06 22:25:58 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7319"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7319], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7319')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9786], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.6ms) Started POST “/appointments.7319” for 127.0.0.1 at 2018-12-06 22:25:58 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9786], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (appointment_date = @appointment_date AND appointment_start_time = @appointment.start_time)

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$z3Xet0OTwf9jL4lv0ky6oeQ9WD2e6CymKqsgC0EFAq/p4wm6vjz2y"], ["created_at", "2018-12-07 00:26:33.056067"], ["updated_at", "2018-12-07 00:26:33.056067"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.0ms)
Rendered users/sessions/new.html.erb within layouts/application (111.8ms)

Completed 200 OK in 124ms (Views: 116.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:26:33.207021"], ["last_sign_in_at", "2018-12-07 00:26:33.207021"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:26:33.207532"], ["id", 9787]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9787], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:26:33.231166"], ["updated_at", "2018-12-07 00:26:33.231166"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9787], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7320” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7320"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7320], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7320')
Rendered appointments/show.html.erb within layouts/application (5.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9787], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.6ms) Started POST “/appointments.7320” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9787], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (appointment_date = @appointment.appointment_date AND appointment_start_time = @appointment.start_time)

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$C/nUz.DHTGDImHEzRKvMTuP5tIJgZF8lLHet7LZ6dGyReTtWAJtCe"], ["created_at", "2018-12-07 00:26:33.284867"], ["updated_at", "2018-12-07 00:26:33.284867"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:26:33.296653"], ["last_sign_in_at", "2018-12-07 00:26:33.296653"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:26:33.297133"], ["id", 9788]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9788], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:26:33.305432"], ["updated_at", "2018-12-07 00:26:33.305432"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7321], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9788], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9788], ["room_id", 7321], ["created_at", "2018-12-07 00:26:33.316979"], ["updated_at", "2018-12-07 00:26:33.316979"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9788], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7321” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7321"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7321], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7321')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9788], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7321” for 127.0.0.1 at 2018-12-06 22:26:33 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9788], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (appointment_date = @appointment.appointment_date AND appointment_start_time = @appointment.start_time)

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ztaVamQBw9tzgTiJrUjoje.ib87Zgz/kfjffPTXN7IlSGH3/RNM0C"], ["created_at", "2018-12-07 00:26:51.474682"], ["updated_at", "2018-12-07 00:26:51.474682"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (123.7ms)

Completed 200 OK in 137ms (Views: 128.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:26:51.638878"], ["last_sign_in_at", "2018-12-07 00:26:51.638878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:26:51.639401"], ["id", 9789]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9789], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:26:51.663530"], ["updated_at", "2018-12-07 00:26:51.663530"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9789], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7322” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7322"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7322], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7322')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9789], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7322” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9789], ["LIMIT", 1]]

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iW.y6rLMJLXu9ef9Xy31qeSWcBekJLVU.FiBn/6Ucip7vflW2xF6C"], ["created_at", "2018-12-07 00:26:51.717214"], ["updated_at", "2018-12-07 00:26:51.717214"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:26:51.729022"], ["last_sign_in_at", "2018-12-07 00:26:51.729022"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:26:51.729443"], ["id", 9790]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9790], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:26:51.737740"], ["updated_at", "2018-12-07 00:26:51.737740"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7323], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9790], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9790], ["room_id", 7323], ["created_at", "2018-12-07 00:26:51.749443"], ["updated_at", "2018-12-07 00:26:51.749443"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9790], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7323” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7323"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7323], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7323')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9790], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 0.8ms) Started POST “/appointments.7323” for 127.0.0.1 at 2018-12-06 22:26:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9790], ["LIMIT", 1]]

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8IzinxWIshzefblqaK6p9.SLJ8goo184Rxg0xqxUd4.YJqswVAKP6"], ["created_at", "2018-12-07 00:27:21.087568"], ["updated_at", "2018-12-07 00:27:21.087568"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.0ms)
Rendered users/sessions/new.html.erb within layouts/application (127.3ms)

Completed 200 OK in 140ms (Views: 132.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:27:21.255704"], ["last_sign_in_at", "2018-12-07 00:27:21.255704"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:27:21.256220"], ["id", 9791]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9791], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:27:21.280529"], ["updated_at", "2018-12-07 00:27:21.280529"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9791], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7324” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7324"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7324], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7324')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9791], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7324” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9791], ["LIMIT", 1]]

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kseDs.Zzmv8SeYjbApNTyO4sAHJ6.cEYcr4mjM/6lbrAHVoJjD8VG"], ["created_at", "2018-12-07 00:27:21.334598"], ["updated_at", "2018-12-07 00:27:21.334598"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:27:21.346600"], ["last_sign_in_at", "2018-12-07 00:27:21.346600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:27:21.346987"], ["id", 9792]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9792], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:27:21.355339"], ["updated_at", "2018-12-07 00:27:21.355339"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7325], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9792], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9792], ["room_id", 7325], ["created_at", "2018-12-07 00:27:21.367475"], ["updated_at", "2018-12-07 00:27:21.367475"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9792], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7325” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7325"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7325], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7325')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9792], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7325” for 127.0.0.1 at 2018-12-06 22:27:21 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9792], ["LIMIT", 1]]

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$M1ec0IFMVXnnBBR0CfURmOBETZBYRXeGTFL/qGMIdyI6V9VqVgJD6"], ["created_at", "2018-12-07 00:27:42.538684"], ["updated_at", "2018-12-07 00:27:42.538684"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.2ms)
Rendered users/sessions/new.html.erb within layouts/application (117.0ms)

Completed 200 OK in 130ms (Views: 121.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:27:42.695537"], ["last_sign_in_at", "2018-12-07 00:27:42.695537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:27:42.696052"], ["id", 9793]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9793], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:27:42.720031"], ["updated_at", "2018-12-07 00:27:42.720031"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9793], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.6ms) Started GET “/appointments/7326” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7326"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7326], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7326')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9793], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7326” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9793], ["LIMIT", 1]]
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = @appointment.room_id)

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$86T/K3SkXnjux2PveVv2hOL3J1GET4onKXZlUBAKXlpKua.fz8Djm"], ["created_at", "2018-12-07 00:27:42.776642"], ["updated_at", "2018-12-07 00:27:42.776642"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:27:42.789043"], ["last_sign_in_at", "2018-12-07 00:27:42.789043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:27:42.789526"], ["id", 9794]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9794], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:27:42.797920"], ["updated_at", "2018-12-07 00:27:42.797920"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7327], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9794], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9794], ["room_id", 7327], ["created_at", "2018-12-07 00:27:42.810163"], ["updated_at", "2018-12-07 00:27:42.810163"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9794], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7327” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7327"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7327], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7327')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9794], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7327” for 127.0.0.1 at 2018-12-06 22:27:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9794], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = @appointment.room_id)

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$dSjGfXQXHMTGI2ppviqakeWtF.vqlyqAsePyW5dYLKhl9URWJN58m"], ["created_at", "2018-12-07 00:28:47.602143"], ["updated_at", "2018-12-07 00:28:47.602143"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (116.2ms)

Completed 200 OK in 129ms (Views: 120.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:28:47.758095"], ["last_sign_in_at", "2018-12-07 00:28:47.758095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:28:47.758521"], ["id", 9795]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9795], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:28:47.781699"], ["updated_at", "2018-12-07 00:28:47.781699"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9795], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7328” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7328"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7328], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7328')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9795], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.6ms) Started POST “/appointments.7328” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9795], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7328)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7328], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9795], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9795], ["room_id", 7328], ["created_at", "2018-12-07 00:28:47.836027"], ["updated_at", "2018-12-07 00:28:47.836027"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9795], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$b/iPrfE7MKw3rkuGH5Lv2u34O6hZh3mqt/9APgasBR60HqSAPen.W"], ["created_at", "2018-12-07 00:28:47.850999"], ["updated_at", "2018-12-07 00:28:47.850999"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:28:47.862430"], ["last_sign_in_at", "2018-12-07 00:28:47.862430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:28:47.862876"], ["id", 9796]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9796], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:28:47.870916"], ["updated_at", "2018-12-07 00:28:47.870916"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7329], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9796], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9796], ["room_id", 7329], ["created_at", "2018-12-07 00:28:47.874914"], ["updated_at", "2018-12-07 00:28:47.874914"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9796], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7329” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7329"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7329], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7329')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9796], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.6ms) Started POST “/appointments.7329” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9796], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7329)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7329], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9796], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9796], ["room_id", 7329], ["created_at", "2018-12-07 00:28:47.902862"], ["updated_at", "2018-12-07 00:28:47.902862"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:28:47 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9796], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$QUXkwqhNHyxQy4V7Hn14p.lGQl0VAcbEqT5.IO0BMpzlQ7iYF9Ahu"], ["created_at", "2018-12-07 00:29:19.114302"], ["updated_at", "2018-12-07 00:29:19.114302"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (118.1ms)

Completed 200 OK in 131ms (Views: 122.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:29:19.272481"], ["last_sign_in_at", "2018-12-07 00:29:19.272481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:29:19.272980"], ["id", 9797]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9797], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:29:19.297145"], ["updated_at", "2018-12-07 00:29:19.297145"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9797], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7330” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7330"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7330], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7330')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9797], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.1ms) Started POST “/appointments.7330” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9797], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 7330) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 7330) LIMIT $1  [["LIMIT", 11]]
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$V3r9iqv7jaebg26ReTnj2.fmjFKIdzTDyUVUpTLvY8c6xdcy2Ddi2"], ["created_at", "2018-12-07 00:29:19.354189"], ["updated_at", "2018-12-07 00:29:19.354189"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:29:19.366379"], ["last_sign_in_at", "2018-12-07 00:29:19.366379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:29:19.366887"], ["id", 9798]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9798], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:29:19.375528"], ["updated_at", "2018-12-07 00:29:19.375528"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7331], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9798], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9798], ["room_id", 7331], ["created_at", "2018-12-07 00:29:19.387291"], ["updated_at", "2018-12-07 00:29:19.387291"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9798], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7331” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7331"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7331], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7331')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9798], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7331” for 127.0.0.1 at 2018-12-06 22:29:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9798], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 7331) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 7331) LIMIT $1  [["LIMIT", 11]]
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$W3oIW9uXITXYUgP2Re7B3.g.3hZY/K3IDZwsYWEpModPBxTSrN5W."], ["created_at", "2018-12-07 00:29:35.323047"], ["updated_at", "2018-12-07 00:29:35.323047"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (117.6ms)

Completed 200 OK in 131ms (Views: 122.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:29:35.481126"], ["last_sign_in_at", "2018-12-07 00:29:35.481126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:29:35.481638"], ["id", 9799]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9799], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:29:35.506014"], ["updated_at", "2018-12-07 00:29:35.506014"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9799], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/7332” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7332"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7332], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7332')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9799], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7332” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9799], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7332)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7332], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9799], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9799], ["room_id", 7332], ["created_at", "2018-12-07 00:29:35.562632"], ["updated_at", "2018-12-07 00:29:35.562632"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9799], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$pE64zHTN6tFMi6cnEhrPueSG7dKS/ENPzwYW1Z6rgWquC4R.Arpie"], ["created_at", "2018-12-07 00:29:35.578276"], ["updated_at", "2018-12-07 00:29:35.578276"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:29:35.590019"], ["last_sign_in_at", "2018-12-07 00:29:35.590019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:29:35.590518"], ["id", 9800]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9800], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:29:35.598914"], ["updated_at", "2018-12-07 00:29:35.598914"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7333], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9800], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9800], ["room_id", 7333], ["created_at", "2018-12-07 00:29:35.603320"], ["updated_at", "2018-12-07 00:29:35.603320"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9800], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/7333” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7333"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7333], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7333')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9800], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7333” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9800], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7333)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7333], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9800], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9800], ["room_id", 7333], ["created_at", "2018-12-07 00:29:35.631446"], ["updated_at", "2018-12-07 00:29:35.631446"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:29:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9800], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$GMWPKPeJqsTMAUsS2WkxdunovmL/d5Z7G6ajLza3USe61luabe97u"], ["created_at", "2018-12-07 00:30:42.794467"], ["updated_at", "2018-12-07 00:30:42.794467"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:30:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (118.0ms)

Completed 200 OK in 131ms (Views: 122.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:30:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:30:42.952515"], ["last_sign_in_at", "2018-12-07 00:30:42.952515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:30:42.953013"], ["id", 9801]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:30:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9801], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:30:42.977354"], ["updated_at", "2018-12-07 00:30:42.977354"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:30:42 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9801], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7334” for 127.0.0.1 at 2018-12-06 22:30:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7334"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7334], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7334')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9801], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7334” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9801], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7334], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9801], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9801], ["room_id", 7334], ["created_at", "2018-12-07 00:30:43.033778"], ["updated_at", "2018-12-07 00:30:43.033778"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9801], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$GXVkuokNNdautJ0kjEgyheWVMA5R1aM/JzgaQf025tjyoKb/XR7AW"], ["created_at", "2018-12-07 00:30:43.049550"], ["updated_at", "2018-12-07 00:30:43.049550"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:30:43.061476"], ["last_sign_in_at", "2018-12-07 00:30:43.061476"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:30:43.061992"], ["id", 9802]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9802], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:30:43.070420"], ["updated_at", "2018-12-07 00:30:43.070420"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7335], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9802], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9802], ["room_id", 7335], ["created_at", "2018-12-07 00:30:43.074719"], ["updated_at", "2018-12-07 00:30:43.074719"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9802], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/7335” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7335"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7335], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7335')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9802], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7335” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9802], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7335], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9802], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9802], ["room_id", 7335], ["created_at", "2018-12-07 00:30:43.102961"], ["updated_at", "2018-12-07 00:30:43.102961"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:30:43 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9802], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$a7VXAVJ7Vf7/KiW35JkR1.NSW79MzvtVjdQPVs6zZ.PeI8Jl84RPe"], ["created_at", "2018-12-07 00:31:37.858618"], ["updated_at", "2018-12-07 00:31:37.858618"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:31:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (117.8ms)

Completed 200 OK in 131ms (Views: 122.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:31:38.016926"], ["last_sign_in_at", "2018-12-07 00:31:38.016926"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:31:38.017440"], ["id", 9803]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9803], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:31:38.041634"], ["updated_at", "2018-12-07 00:31:38.041634"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9803], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7336” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7336"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7336], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7336')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9803], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.1ms) Started POST “/appointments.7336” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9803], ["LIMIT", 1]]
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = @appointment.room_id)

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$pooZlYktxyb7gCkNbZHUtuSNhGtkJksPulbRC0KjnEmkHu/XMf5TS"], ["created_at", "2018-12-07 00:31:38.096436"], ["updated_at", "2018-12-07 00:31:38.096436"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:31:38.108378"], ["last_sign_in_at", "2018-12-07 00:31:38.108378"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:31:38.108807"], ["id", 9804]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9804], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:31:38.117034"], ["updated_at", "2018-12-07 00:31:38.117034"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7337], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9804], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9804], ["room_id", 7337], ["created_at", "2018-12-07 00:31:38.128929"], ["updated_at", "2018-12-07 00:31:38.128929"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9804], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7337” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7337"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7337], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7337')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9804], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7337” for 127.0.0.1 at 2018-12-06 22:31:38 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9804], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = @appointment.room_id)

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZNxza6ORmuIMeT0b3I.0j.1HkTkkZU7n1shYTsIr2WZxNXcKSuCGm"], ["created_at", "2018-12-07 00:31:48.481882"], ["updated_at", "2018-12-07 00:31:48.481882"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (115.6ms)

Completed 200 OK in 128ms (Views: 120.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:31:48.637475"], ["last_sign_in_at", "2018-12-07 00:31:48.637475"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:31:48.637979"], ["id", 9805]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9805], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:31:48.661617"], ["updated_at", "2018-12-07 00:31:48.661617"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9805], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/7338” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7338"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7338], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7338')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9805], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7338” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9805], ["LIMIT", 1]]
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = @appointment.room_id)

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3aNJTVZWaAaJF/OoQXJW/efPlq1J0YljYee0D69OohlVVPZ1r86WG"], ["created_at", "2018-12-07 00:31:48.715760"], ["updated_at", "2018-12-07 00:31:48.715760"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:31:48.727543"], ["last_sign_in_at", "2018-12-07 00:31:48.727543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:31:48.727974"], ["id", 9806]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9806], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:31:48.736267"], ["updated_at", "2018-12-07 00:31:48.736267"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7339], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9806], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9806], ["room_id", 7339], ["created_at", "2018-12-07 00:31:48.748027"], ["updated_at", "2018-12-07 00:31:48.748027"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9806], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7339” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7339"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7339], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7339')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9806], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7339” for 127.0.0.1 at 2018-12-06 22:31:48 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9806], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = @appointment.room_id)

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.3ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8qxu/0CkSqpSMtJDex9A9eZ2fRiL6I3TXybTbvtN2nCUm1YX5JDiG"], ["created_at", "2018-12-07 00:32:02.827243"], ["updated_at", "2018-12-07 00:32:02.827243"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:32:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (119.0ms)

Completed 200 OK in 132ms (Views: 123.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:32:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:32:02.986416"], ["last_sign_in_at", "2018-12-07 00:32:02.986416"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:32:02.986899"], ["id", 9807]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:32:02 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9807], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:32:03.010614"], ["updated_at", "2018-12-07 00:32:03.010614"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9807], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7340” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7340"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7340], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7340')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9807], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7340” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9807], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7340)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7340], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9807], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9807], ["room_id", 7340], ["created_at", "2018-12-07 00:32:03.067139"], ["updated_at", "2018-12-07 00:32:03.067139"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9807], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$On.Pombe5GWh7beWSXmeZ.g6gDQ09ngYlxwsAJ40a4AVCMIUklaOa"], ["created_at", "2018-12-07 00:32:03.082677"], ["updated_at", "2018-12-07 00:32:03.082677"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:32:03.094770"], ["last_sign_in_at", "2018-12-07 00:32:03.094770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:32:03.095259"], ["id", 9808]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9808], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:32:03.103509"], ["updated_at", "2018-12-07 00:32:03.103509"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7341], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9808], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9808], ["room_id", 7341], ["created_at", "2018-12-07 00:32:03.107944"], ["updated_at", "2018-12-07 00:32:03.107944"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9808], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7341” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7341"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7341], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7341')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9808], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7341” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9808], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7341)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7341], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9808], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9808], ["room_id", 7341], ["created_at", "2018-12-07 00:32:03.136647"], ["updated_at", "2018-12-07 00:32:03.136647"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:32:03 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9808], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sNBX22IVWkg0bWrizq8Vv.QUvCT35dKKds16/0DZZhxWliDH8CxVW"], ["created_at", "2018-12-07 00:32:08.923003"], ["updated_at", "2018-12-07 00:32:08.923003"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (116.9ms)

Completed 200 OK in 130ms (Views: 121.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:32:09.079656"], ["last_sign_in_at", "2018-12-07 00:32:09.079656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:32:09.080162"], ["id", 9809]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9809], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:32:09.104120"], ["updated_at", "2018-12-07 00:32:09.104120"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9809], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7342” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7342"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7342], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7342')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9809], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.2ms) Started POST “/appointments.7342” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9809], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7342)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7342], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9809], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9809], ["room_id", 7342], ["created_at", "2018-12-07 00:32:09.160978"], ["updated_at", "2018-12-07 00:32:09.160978"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9809], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8WuaX5nanHf8AeFbRiWmV.tOA.1eJPTCAv9Np.xCQD/RwPUj3ZL9e"], ["created_at", "2018-12-07 00:32:09.176957"], ["updated_at", "2018-12-07 00:32:09.176957"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:32:09.188947"], ["last_sign_in_at", "2018-12-07 00:32:09.188947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:32:09.189432"], ["id", 9810]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9810], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:32:09.197813"], ["updated_at", "2018-12-07 00:32:09.197813"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7343], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9810], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9810], ["room_id", 7343], ["created_at", "2018-12-07 00:32:09.202378"], ["updated_at", "2018-12-07 00:32:09.202378"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9810], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/7343” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7343"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7343], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7343')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9810], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7343” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9810], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7343)
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7343], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9810], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9810], ["room_id", 7343], ["created_at", "2018-12-07 00:32:09.231393"], ["updated_at", "2018-12-07 00:32:09.231393"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:32:09 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9810], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$DzU2f01hI0emK2lmPmb9K.JUvGL.lvjPM1P1opsSoJ8T.9v55tuTG"], ["created_at", "2018-12-07 00:33:40.002224"], ["updated_at", "2018-12-07 00:33:40.002224"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (118.0ms)

Completed 200 OK in 131ms (Views: 122.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:33:40.160665"], ["last_sign_in_at", "2018-12-07 00:33:40.160665"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:33:40.161178"], ["id", 9811]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9811], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:33:40.185223"], ["updated_at", "2018-12-07 00:33:40.185223"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9811], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7344” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7344"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7344], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7344')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9811], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7344” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9811], ["LIMIT", 1]]

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$XhfaB3kCfRl1C6IyuNMZZ.sRW7THgmMYG8xkWHeRh8wAgAmBhpmMK"], ["created_at", "2018-12-07 00:33:40.239082"], ["updated_at", "2018-12-07 00:33:40.239082"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:33:40.251249"], ["last_sign_in_at", "2018-12-07 00:33:40.251249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:33:40.251712"], ["id", 9812]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9812], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:33:40.259930"], ["updated_at", "2018-12-07 00:33:40.259930"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7345], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9812], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9812], ["room_id", 7345], ["created_at", "2018-12-07 00:33:40.271425"], ["updated_at", "2018-12-07 00:33:40.271425"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9812], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7345” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7345"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7345], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7345')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9812], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7345” for 127.0.0.1 at 2018-12-06 22:33:40 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9812], ["LIMIT", 1]]

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$dU5wbXYfIIVcm2KSnYhYW.TMTPVUhDBNDYSr2jfD2PJDxiM5woZBq"], ["created_at", "2018-12-07 00:33:52.131075"], ["updated_at", "2018-12-07 00:33:52.131075"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (115.9ms)

Completed 200 OK in 129ms (Views: 120.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:33:52.287029"], ["last_sign_in_at", "2018-12-07 00:33:52.287029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:33:52.287531"], ["id", 9813]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9813], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:33:52.311126"], ["updated_at", "2018-12-07 00:33:52.311126"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9813], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7346” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7346"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7346], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7346')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9813], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7346” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9813], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7346 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7346], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9813], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9813], ["room_id", 7346], ["created_at", "2018-12-07 00:33:52.367070"], ["updated_at", "2018-12-07 00:33:52.367070"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9813], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$XqTHo2OqDqk8dozHwxLMcOKo.csgv4EwOzYECingoUhurDawJAilS"], ["created_at", "2018-12-07 00:33:52.382710"], ["updated_at", "2018-12-07 00:33:52.382710"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:33:52.394400"], ["last_sign_in_at", "2018-12-07 00:33:52.394400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:33:52.394916"], ["id", 9814]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9814], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:33:52.403263"], ["updated_at", "2018-12-07 00:33:52.403263"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7347], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9814], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9814], ["room_id", 7347], ["created_at", "2018-12-07 00:33:52.407946"], ["updated_at", "2018-12-07 00:33:52.407946"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9814], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7347” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7347"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7347], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7347')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9814], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7347” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9814], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7347 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7347], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9814], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9814], ["room_id", 7347], ["created_at", "2018-12-07 00:33:52.436911"], ["updated_at", "2018-12-07 00:33:52.436911"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:33:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9814], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$e9iDqJ8S7xUSHPgG/elTseWvOZCsGOJV32Dh7YNuawO6Bk.ErQGjC"], ["created_at", "2018-12-07 00:34:25.916259"], ["updated_at", "2018-12-07 00:34:25.916259"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:34:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (116.8ms)

Completed 200 OK in 130ms (Views: 121.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:34:26.072932"], ["last_sign_in_at", "2018-12-07 00:34:26.072932"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:34:26.073435"], ["id", 9815]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9815], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:34:26.096935"], ["updated_at", "2018-12-07 00:34:26.096935"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9815], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7348” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7348"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7348], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7348')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9815], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.7348” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9815], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7348 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7348], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9815], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9815], ["room_id", 7348], ["created_at", "2018-12-07 00:34:26.152030"], ["updated_at", "2018-12-07 00:34:26.152030"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9815], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$KIkbdGsLpWXMmf9jIkihj.dAk7dXee6u6bH3etyKkJ1WMPZdL2uEi"], ["created_at", "2018-12-07 00:34:26.167148"], ["updated_at", "2018-12-07 00:34:26.167148"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:34:26.178667"], ["last_sign_in_at", "2018-12-07 00:34:26.178667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:34:26.179168"], ["id", 9816]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9816], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:34:26.187482"], ["updated_at", "2018-12-07 00:34:26.187482"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7349], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9816], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9816], ["room_id", 7349], ["created_at", "2018-12-07 00:34:26.191195"], ["updated_at", "2018-12-07 00:34:26.191195"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9816], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7349” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7349"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7349], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7349')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9816], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.6ms) Started POST “/appointments.7349” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9816], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7349 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7349], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9816], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9816], ["room_id", 7349], ["created_at", "2018-12-07 00:34:26.219728"], ["updated_at", "2018-12-07 00:34:26.219728"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:34:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9816], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$htxPii/xltJs/Yu3EMBAUuoNLd65F3CZn7mak2lcu00RBhUuP4WZy"], ["created_at", "2018-12-07 00:34:32.808585"], ["updated_at", "2018-12-07 00:34:32.808585"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:34:32 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (116.0ms)

Completed 200 OK in 129ms (Views: 120.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:34:32 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:34:32.964254"], ["last_sign_in_at", "2018-12-07 00:34:32.964254"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:34:32.964768"], ["id", 9817]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:34:32 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9817], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:34:32.987829"], ["updated_at", "2018-12-07 00:34:32.987829"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:34:32.989357"], ["updated_at", "2018-12-07 00:34:32.989357"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:32 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9817], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7350” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7350"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7350], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7350')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9817], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7350” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9817], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7350 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7350], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9817], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9817], ["room_id", 7350], ["created_at", "2018-12-07 00:34:33.048024"], ["updated_at", "2018-12-07 00:34:33.048024"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9817], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$KapURMoccv2XRiXMDLx/0.H3sfGDTn.Kb2azNeA03y4vzJdIuRNRK"], ["created_at", "2018-12-07 00:34:33.063876"], ["updated_at", "2018-12-07 00:34:33.063876"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:34:33.076218"], ["last_sign_in_at", "2018-12-07 00:34:33.076218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:34:33.076670"], ["id", 9818]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9818], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:34:33.084021"], ["updated_at", "2018-12-07 00:34:33.084021"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:34:33.085390"], ["updated_at", "2018-12-07 00:34:33.085390"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9818], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7352” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7352"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7352], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7352')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9818], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.7ms) Started POST “/appointments.7352” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9818], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7352 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:34:33 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9818], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.5ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bPWtyNMrVUifij52JcYwH.yappWuW20Z7keteBMhtOiRMnl8KrQnW"], ["created_at", "2018-12-07 00:34:39.998958"], ["updated_at", "2018-12-07 00:34:39.998958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$m/zrTgBuwxjgK3jlmMkGduE0FFpt5Gqw2eug4q4yeYcll7AsG2yye"], ["created_at", "2018-12-07 00:34:40.002916"], ["updated_at", "2018-12-07 00:34:40.002916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.010194"], ["updated_at", "2018-12-07 00:34:40.010194"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7354], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9820], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9820], ["room_id", 7354], ["created_at", "2018-12-07 00:34:40.028887"], ["updated_at", "2018-12-07 00:34:40.028887"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3789"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3789], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7354], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9820], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 254.1ms Sent mail to 123@123.com (21.3ms) Date: Thu, 06 Dec 2018 22:34:40 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09c0204be5d_21a62b1e908c65fc415e2@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c020475a1_21a62b1e908c65fc41475";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c020475a1_21a62b1e908c65fc41475 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09c020475a1_21a62b1e908c65fc41475 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09c020475a1_21a62b1e908c65fc41475–

Completed 302 Found in 280ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QQX66iybrbdPjUu2Z2RzBOYpAfm2H.iKDoYWtHhhik6U3Hhr.B4xS"], ["created_at", "2018-12-07 00:34:40.319318"], ["updated_at", "2018-12-07 00:34:40.319318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yuVzZTNFM.gnXaTVnWQFTuJ3E8WUwwWHu5l2IhOqEQ3d2WUQnWzMC"], ["created_at", "2018-12-07 00:34:40.322820"], ["updated_at", "2018-12-07 00:34:40.322820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.324383"], ["updated_at", "2018-12-07 00:34:40.324383"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7355], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9822], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9822], ["room_id", 7355], ["created_at", "2018-12-07 00:34:40.327428"], ["updated_at", "2018-12-07 00:34:40.327428"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3790"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3790], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7355], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9822], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 00:34:40.331440"], ["id", 3790]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 22:34:40 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09c02051dd2_21a62b1e908c65fc417e1@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c02051805_21a62b1e908c65fc416a1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c02051805_21a62b1e908c65fc416a1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09c02051805_21a62b1e908c65fc416a1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09c02051805_21a62b1e908c65fc416a1–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1r5tSGrPqr6ukCaxaQlE9O0zYMa5GL7eM1u3LlX1lYUFbHT0qVZRW"], ["created_at", "2018-12-07 00:34:40.341276"], ["updated_at", "2018-12-07 00:34:40.341276"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/sciu1K9lPK3K6VhzGWZfeoz2K17sZfqRuyQmrGjhT2vHHJBZpnuW"], ["created_at", "2018-12-07 00:34:40.344640"], ["updated_at", "2018-12-07 00:34:40.344640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.346055"], ["updated_at", "2018-12-07 00:34:40.346055"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7356], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9824], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9824], ["room_id", 7356], ["created_at", "2018-12-07 00:34:40.348995"], ["updated_at", "2018-12-07 00:34:40.348995"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u0z0sYlVCTjkgiVM.k2t6OQRPa3Aa7TjEUdhBKncoMmrYWLA7lyXO"], ["created_at", "2018-12-07 00:34:40.355508"], ["updated_at", "2018-12-07 00:34:40.355508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nzcFFSeas9tGJdEhH13cwudsfkM9J01Fc9fToww781U90IeSGIYLS"], ["created_at", "2018-12-07 00:34:40.358669"], ["updated_at", "2018-12-07 00:34:40.358669"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.360073"], ["updated_at", "2018-12-07 00:34:40.360073"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7357], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9826], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9826], ["room_id", 7357], ["created_at", "2018-12-07 00:34:40.363041"], ["updated_at", "2018-12-07 00:34:40.363041"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3792], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$S2mTxhiXYW/HcLEvKI/bxeVLb8oyXmAv9.rJziIkG.jmCI5Dfdlxu"], ["created_at", "2018-12-07 00:34:40.368346"], ["updated_at", "2018-12-07 00:34:40.368346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9827"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "8FLwpfp_zy6bHanvfdPYkw"], ["updated_at", "2018-12-07 00:34:40.372507"], ["id", 9827]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 00:34:40.374108"], ["reset_sent_at", "2018-12-07 00:34:40.373785"], ["id", 9827]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 22:34:40 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09c0205d106_21a62b1e908c65fc4200@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c0205cb19_21a62b1e908c65fc4192f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c0205cb19_21a62b1e908c65fc4192f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/8FLwpfp_zy6bHanvfdPYkw/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c09c0205cb19_21a62b1e908c65fc4192f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/8FLwpfp_zy6bHanvfdPYkw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c09c0205cb19_21a62b1e908c65fc4192f–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$u0UZ8kq02FetYQiL64Nt4OH8lVHotV5cRa5eGr00CzbzWe8SZdtZC"], ["created_at", "2018-12-07 00:34:40.386784"], ["updated_at", "2018-12-07 00:34:40.386784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$gR0rDimlR8ZFj0CQwVO5beZnCxZx/xzArBgpbmzlyp8OfFKYHsmhK"], ["created_at", "2018-12-07 00:34:40.407530"], ["updated_at", "2018-12-07 00:34:40.407530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9829"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$B6pZRvL2.mPh/X4DU8pvne9foBuA3RX/WNyCr22.tJOy8qf84Semy"], ["updated_at", "2018-12-07 00:34:40.411742"], ["id", 9829]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$2CFrtzM5IiPn9lEKGjgRD.ydIfTg88CrktY.gyXWmuH4AUNbLzziG"], ["created_at", "2018-12-07 00:34:40.416657"], ["updated_at", "2018-12-07 00:34:40.416657"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9830"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$uL3mCxYmAYi0VmuXvWk6wOFLT651yUiuu6IDcetlVRqu95RdG5hgK"], ["created_at", "2018-12-07 00:34:40.425159"], ["updated_at", "2018-12-07 00:34:40.425159"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9831"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)

Completed 200 OK in 9ms (Views: 1.2ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$L4laUHWh0WjP47ZN3zdtnOycv/XLmE9Zc35vDp7uwoyqf5fLW8U2i"], ["created_at", "2018-12-07 00:34:40.439604"], ["updated_at", "2018-12-07 00:34:40.439604"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9832"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.4ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$LBUYMjkCD/K8fXuNCcwOuO/.31C3oktImIVKHkFCyps4IbU.d8PYm"], ["created_at", "2018-12-07 00:34:40.447971"], ["updated_at", "2018-12-07 00:34:40.447971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9833"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.0ms)

Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MI6yUzUW8qoUPR7NEVryf.h5oocr3aeev.nRfvDhiEsQPi/3QufX6"], ["created_at", "2018-12-07 00:34:40.487163"], ["updated_at", "2018-12-07 00:34:40.487163"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.1ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$We1hOfvzMhvTbRCYsj4Po.YAX20FT6f4is0Uw2UGU8XmdUN2AOFOK"], ["created_at", "2018-12-07 00:34:40.495222"], ["updated_at", "2018-12-07 00:34:40.495222"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.4ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0jgUjeghDil16lgZWhEQBuTluxYIRkbMACnLqkqWg/oAnziX9vhCa"], ["created_at", "2018-12-07 00:34:40.504226"], ["updated_at", "2018-12-07 00:34:40.504226"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.506066"], ["updated_at", "2018-12-07 00:34:40.506066"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7358], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9836], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9836], ["room_id", 7358], ["created_at", "2018-12-07 00:34:40.509556"], ["updated_at", "2018-12-07 00:34:40.509556"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$exp1x64qbANk66ATtwishutSCOuBF0TKLNT.//wCMQYcdXA8vVF/m"], ["created_at", "2018-12-07 00:34:40.516141"], ["updated_at", "2018-12-07 00:34:40.516141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.517637"], ["updated_at", "2018-12-07 00:34:40.517637"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7359], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9837], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9837], ["room_id", 7359], ["created_at", "2018-12-07 00:34:40.520596"], ["updated_at", "2018-12-07 00:34:40.520596"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UhyhGr9L2hRypMDrq25Ra.B/1KScR7/vTnb6Aupdtctt8M.0DjH0K"], ["created_at", "2018-12-07 00:34:40.544445"], ["updated_at", "2018-12-07 00:34:40.544445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.546034"], ["updated_at", "2018-12-07 00:34:40.546034"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.553196"], ["last_sign_in_at", "2018-12-07 00:34:40.553196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.553646"], ["id", 9838]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7360"}
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7360 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7360], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9838], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9838], ["room_id", 7360], ["created_at", "2018-12-07 00:34:40.562614"], ["updated_at", "2018-12-07 00:34:40.562614"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7360], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ck1Zl//Px7WfVF9T3oYuB.eu0Cy0bTlBGPlxf4bRu1Iy.h/S1Jn4."], ["created_at", "2018-12-07 00:34:40.569423"], ["updated_at", "2018-12-07 00:34:40.569423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.570985"], ["updated_at", "2018-12-07 00:34:40.570985"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.572925"], ["last_sign_in_at", "2018-12-07 00:34:40.572925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.573354"], ["id", 9839]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7361"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7361 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7361], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9839], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9839], ["room_id", 7361], ["created_at", "2018-12-07 00:34:40.578180"], ["updated_at", "2018-12-07 00:34:40.578180"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ECuM3P0Hemk1WQhRJxNe2e/ASqfsGyaWyFIoJNWvDcWQ6IhT96rXG"], ["created_at", "2018-12-07 00:34:40.583469"], ["updated_at", "2018-12-07 00:34:40.583469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.584958"], ["updated_at", "2018-12-07 00:34:40.584958"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.587100"], ["last_sign_in_at", "2018-12-07 00:34:40.587100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.587533"], ["id", 9840]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7362", "user_id"=>"9840"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7362 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7362], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9840], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9840], ["room_id", 7362], ["created_at", "2018-12-07 00:34:40.593232"], ["updated_at", "2018-12-07 00:34:40.593232"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7362", "user_id"=>"9840"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9840], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7362 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7362], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9840], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9840], ["room_id", 7362], ["created_at", "2018-12-07 00:34:40.600493"], ["updated_at", "2018-12-07 00:34:40.600493"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AowVt3s1cD2yT.uuDY8Gj.8a4NLueHAAYjRg9uSp/0DnM9DG9E8jC"], ["created_at", "2018-12-07 00:34:40.605895"], ["updated_at", "2018-12-07 00:34:40.605895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.607458"], ["updated_at", "2018-12-07 00:34:40.607458"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.609812"], ["last_sign_in_at", "2018-12-07 00:34:40.609812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.610229"], ["id", 9841]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7363", "user_id"=>"9841"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7363 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7363], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9841], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9841], ["room_id", 7363], ["created_at", "2018-12-07 00:34:40.614948"], ["updated_at", "2018-12-07 00:34:40.614948"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7363", "user_id"=>"9841"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9841], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7363 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7363], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9841], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9841], ["room_id", 7363], ["created_at", "2018-12-07 00:34:40.621340"], ["updated_at", "2018-12-07 00:34:40.621340"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7363], ["user_id", 9841], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6YEIWmDTXXCUCIqBxL2K3.l1o4sHPLISIyWWUWemmA4RDr7KMPa4W"], ["created_at", "2018-12-07 00:34:40.628419"], ["updated_at", "2018-12-07 00:34:40.628419"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.630131"], ["updated_at", "2018-12-07 00:34:40.630131"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.632337"], ["last_sign_in_at", "2018-12-07 00:34:40.632337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.632752"], ["id", 9842]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7364", "user_id"=>"9842"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7364 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7364], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9842], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9842], ["room_id", 7364], ["created_at", "2018-12-07 00:34:40.637550"], ["updated_at", "2018-12-07 00:34:40.637550"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7364", "user_id"=>"9842"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9842], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7364 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7364], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9842], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9842], ["room_id", 7364], ["created_at", "2018-12-07 00:34:40.643890"], ["updated_at", "2018-12-07 00:34:40.643890"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7364], ["user_id", 9842], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P0sxiLtUypTktkStRwwcwum.Sudj89WrDy1Rf77R1q93aD0KcxZ4e"], ["created_at", "2018-12-07 00:34:40.649649"], ["updated_at", "2018-12-07 00:34:40.649649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.651193"], ["updated_at", "2018-12-07 00:34:40.651193"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.653186"], ["last_sign_in_at", "2018-12-07 00:34:40.653186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.653616"], ["id", 9843]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7365"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7365], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F0gPRJdSFPQb1o7T7c.3IOAWRxzYs.QamL6RHFMlth8whYdzHrSv."], ["created_at", "2018-12-07 00:34:40.661716"], ["updated_at", "2018-12-07 00:34:40.661716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.663326"], ["updated_at", "2018-12-07 00:34:40.663326"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.665215"], ["last_sign_in_at", "2018-12-07 00:34:40.665215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.665594"], ["id", 9844]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7366"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YBt0tM/2qjFk9q5bFBhidefNUgC86No1J6Y5q8xNjdCMIoTkopiEi"], ["created_at", "2018-12-07 00:34:40.677028"], ["updated_at", "2018-12-07 00:34:40.677028"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.678904"], ["updated_at", "2018-12-07 00:34:40.678904"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7367], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9845], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9845], ["room_id", 7367], ["created_at", "2018-12-07 00:34:40.682136"], ["updated_at", "2018-12-07 00:34:40.682136"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7367” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.683778"], ["last_sign_in_at", "2018-12-07 00:34:40.683778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.684181"], ["id", 9845]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7367"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7367], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7367')
Rendered appointments/show.html.erb within layouts/application (6.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 204ms (Views: 201.3ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VvYrWkJLeEySXheCsLF3GeFN54TBw3U/OhMzIRpCnG2Tauu76WhkW"], ["created_at", "2018-12-07 00:34:40.894792"], ["updated_at", "2018-12-07 00:34:40.894792"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.896573"], ["updated_at", "2018-12-07 00:34:40.896573"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7368], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9846], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9846], ["room_id", 7368], ["created_at", "2018-12-07 00:34:40.899623"], ["updated_at", "2018-12-07 00:34:40.899623"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3804/edit” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.901289"], ["last_sign_in_at", "2018-12-07 00:34:40.901289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.901661"], ["id", 9846]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3804"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3804], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$avF5zePX04D6Iy3w355pjObmYIiwHo5plYjLn607SfDF5hHYkMBAS"], ["created_at", "2018-12-07 00:34:40.913784"], ["updated_at", "2018-12-07 00:34:40.913784"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.915581"], ["last_sign_in_at", "2018-12-07 00:34:40.915581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.915972"], ["id", 9847]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fAm9i3a9rvUJujw7.DOLseAr1EGBKg440UEOO975xvWxQV7u7NpQK"], ["created_at", "2018-12-07 00:34:40.927166"], ["updated_at", "2018-12-07 00:34:40.927166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.928890"], ["updated_at", "2018-12-07 00:34:40.928890"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7369], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9848], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9848], ["room_id", 7369], ["created_at", "2018-12-07 00:34:40.932027"], ["updated_at", "2018-12-07 00:34:40.932027"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7369], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9848], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9848], ["room_id", 7369], ["created_at", "2018-12-07 00:34:40.934899"], ["updated_at", "2018-12-07 00:34:40.934899"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.936408"], ["last_sign_in_at", "2018-12-07 00:34:40.936408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.936775"], ["id", 9848]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9848]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lff9oLBs10UXqDNx8UtjyOgnlRDnV3QtPf1rLp1db3es3A4a0gPke"], ["created_at", "2018-12-07 00:34:40.953169"], ["updated_at", "2018-12-07 00:34:40.953169"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.954936"], ["updated_at", "2018-12-07 00:34:40.954936"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7370], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9849], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9849], ["room_id", 7370], ["created_at", "2018-12-07 00:34:40.957887"], ["updated_at", "2018-12-07 00:34:40.957887"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7370], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9849], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9849], ["room_id", 7370], ["created_at", "2018-12-07 00:34:40.960737"], ["updated_at", "2018-12-07 00:34:40.960737"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.962341"], ["last_sign_in_at", "2018-12-07 00:34:40.962341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.962839"], ["id", 9849]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9849]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Xl0XpBEAuu7DTta6fyggzud0QWp35fPysu5MQILNUTzpKDZ0QPsha"], ["created_at", "2018-12-07 00:34:40.972258"], ["updated_at", "2018-12-07 00:34:40.972258"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.973881"], ["updated_at", "2018-12-07 00:34:40.973881"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7371], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9850], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9850], ["room_id", 7371], ["created_at", "2018-12-07 00:34:40.976866"], ["updated_at", "2018-12-07 00:34:40.976866"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3809” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.978400"], ["last_sign_in_at", "2018-12-07 00:34:40.978400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.978770"], ["id", 9850]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3809"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3809], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3809]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IhKrNj4nSMUFl4Q6axG7Zeez0ftgUKhzPI/Hy4kgtkwgI6PzCHKh2"], ["created_at", "2018-12-07 00:34:40.988848"], ["updated_at", "2018-12-07 00:34:40.988848"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:40.990447"], ["updated_at", "2018-12-07 00:34:40.990447"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8KQNmz12CCdNC8m2Hui8M.p40WkXFzZ7.3mUiaA1rPeE1.Xj5ynH6"], ["created_at", "2018-12-07 00:34:40.993666"], ["updated_at", "2018-12-07 00:34:40.993666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7372], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9852], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9852], ["room_id", 7372], ["created_at", "2018-12-07 00:34:40.996724"], ["updated_at", "2018-12-07 00:34:40.996724"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3810” for 127.0.0.1 at 2018-12-06 22:34:40 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:40.998642"], ["last_sign_in_at", "2018-12-07 00:34:40.998642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:40.999008"], ["id", 9851]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3810"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3810], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7372], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9852], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$74NSHZbvVpRy4X5KfW0cWe4Ed/FTK6cilRqDHECAsBumzBHQLRZ7G"], ["created_at", "2018-12-07 00:34:41.008845"], ["updated_at", "2018-12-07 00:34:41.008845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.010564"], ["updated_at", "2018-12-07 00:34:41.010564"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bIE980NuLjEuZaW66rs8luh.TBO7T2rFxp4AMut.xltnFTotzzN.G"], ["created_at", "2018-12-07 00:34:41.014146"], ["updated_at", "2018-12-07 00:34:41.014146"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7373], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9854], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9854], ["room_id", 7373], ["created_at", "2018-12-07 00:34:41.017892"], ["updated_at", "2018-12-07 00:34:41.017892"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3811” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.019934"], ["last_sign_in_at", "2018-12-07 00:34:41.019934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.020379"], ["id", 9853]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3811"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3811], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7373], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9854], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mmtTK.u6zT8kodXr0PQYMelm2DXHJPBo0QvQsppzDJvS/4LH5Xtlu"], ["created_at", "2018-12-07 00:34:41.029117"], ["updated_at", "2018-12-07 00:34:41.029117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.030692"], ["updated_at", "2018-12-07 00:34:41.030692"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sKkJfTWgR4w8C6i6AxUr4ODJ7V90UQNhbcdupD/hbCYXl4ATrUc8m"], ["created_at", "2018-12-07 00:34:41.033942"], ["updated_at", "2018-12-07 00:34:41.033942"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7374], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9856], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9856], ["room_id", 7374], ["created_at", "2018-12-07 00:34:41.037006"], ["updated_at", "2018-12-07 00:34:41.037006"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3812” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.038914"], ["last_sign_in_at", "2018-12-07 00:34:41.038914"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.039293"], ["id", 9855]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3812"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3812], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7374], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9856], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 00:34:41.043495"], ["id", 3812]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.0ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 22:34:41 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09c021bb34_21a62b1e908c65fc42754@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c021b54c_21a62b1e908c65fc4267e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c021b54c_21a62b1e908c65fc4267e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09c021b54c_21a62b1e908c65fc4267e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09c021b54c_21a62b1e908c65fc4267e–

Completed 302 Found in 9ms (ActiveRecord: 0.9ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6PlbAet82W3vaM8xqBr2Ou.miSyvAqr1Swb7ptmIkHFxroMgBHmr6"], ["created_at", "2018-12-07 00:34:41.054854"], ["updated_at", "2018-12-07 00:34:41.054854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.056623"], ["updated_at", "2018-12-07 00:34:41.056623"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xEncSH4LwYy8rr959GrGduzw5BmvYzQBnWk4tGgUhrZA.nufmRLG."], ["created_at", "2018-12-07 00:34:41.059753"], ["updated_at", "2018-12-07 00:34:41.059753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7375], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9858], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9858], ["room_id", 7375], ["created_at", "2018-12-07 00:34:41.062924"], ["updated_at", "2018-12-07 00:34:41.062924"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 00:34:41.064330"], ["id", 3813]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7375], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9858], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9858], ["room_id", 7375], ["created_at", "2018-12-07 00:34:41.067031"], ["updated_at", "2018-12-07 00:34:41.067031"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 00:34:41.068393"], ["id", 3814]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.069844"], ["last_sign_in_at", "2018-12-07 00:34:41.069844"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.070232"], ["id", 9857]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9858], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7375], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9858], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7375], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Tpj/nQ7rW6Y04QMU91Kx9uOnOIzmwDpTn5YsBCJL7t4U.EmUEvCN6"], ["created_at", "2018-12-07 00:34:41.084372"], ["updated_at", "2018-12-07 00:34:41.084372"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.085987"], ["updated_at", "2018-12-07 00:34:41.085987"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TID1ydI7G3Tftt2Iq2UEse5h1EKNOCAp2KGcV4wHtHBHN/0oIuMim"], ["created_at", "2018-12-07 00:34:41.089273"], ["updated_at", "2018-12-07 00:34:41.089273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7376], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9860], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9860], ["room_id", 7376], ["created_at", "2018-12-07 00:34:41.092357"], ["updated_at", "2018-12-07 00:34:41.092357"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 00:34:41.093754"], ["id", 3815]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7376], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9860], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9860], ["room_id", 7376], ["created_at", "2018-12-07 00:34:41.096406"], ["updated_at", "2018-12-07 00:34:41.096406"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 00:34:41.097717"], ["id", 3816]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.099112"], ["last_sign_in_at", "2018-12-07 00:34:41.099112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.099461"], ["id", 9859]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9860], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7376], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9860], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7376], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6gOI/27yb29V2Gk7ZR/gf.Qej2YHr/4fUPLOsV088L2Qw1AfjDPiq"], ["created_at", "2018-12-07 00:34:41.112876"], ["updated_at", "2018-12-07 00:34:41.112876"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.114675"], ["last_sign_in_at", "2018-12-07 00:34:41.114675"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.115080"], ["id", 9861]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (35.8ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 39ms (Views: 38.6ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Wwv6XAGN9OMnrZRLVV1rVOKTw4FmHIfnHn62wUCfg2NdA2Z/W7XF2"], ["created_at", "2018-12-07 00:34:41.162415"], ["updated_at", "2018-12-07 00:34:41.162415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.164626"], ["last_sign_in_at", "2018-12-07 00:34:41.164626"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.165078"], ["id", 9862]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vGNtB2iLKmcA1WeOMvPlOOY1/45xkfBhZR./ERYvb6En7JvUfZy06"], ["created_at", "2018-12-07 00:34:41.173430"], ["updated_at", "2018-12-07 00:34:41.173430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.175848"], ["last_sign_in_at", "2018-12-07 00:34:41.175848"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.176316"], ["id", 9863]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WDMNEXtUe2iB/RoEeGExxeZGjJyLvthmb3uEotTA6MKeSARVd7qm6"], ["created_at", "2018-12-07 00:34:41.189141"], ["updated_at", "2018-12-07 00:34:41.189141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.191003"], ["last_sign_in_at", "2018-12-07 00:34:41.191003"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.191379"], ["id", 9864]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kIFOuO3fOy5d9eztD4o1E.9I2KvtkyE8FWXBp1uPMyZmhLvPv46qW"], ["created_at", "2018-12-07 00:34:41.205765"], ["updated_at", "2018-12-07 00:34:41.205765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.207445"], ["updated_at", "2018-12-07 00:34:41.207445"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7377” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.208911"], ["last_sign_in_at", "2018-12-07 00:34:41.208911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.209273"], ["id", 9865]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7377"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7377], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YGTsE5TpBP3I3bxiZ5Jezu7dYfsg47O6xDndrPggo8gRX6nLbvERW"], ["created_at", "2018-12-07 00:34:41.218108"], ["updated_at", "2018-12-07 00:34:41.218108"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.219615"], ["updated_at", "2018-12-07 00:34:41.219615"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7378” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.221010"], ["last_sign_in_at", "2018-12-07 00:34:41.221010"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.221339"], ["id", 9866]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7378"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7378], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.227467"], ["updated_at", "2018-12-07 00:34:41.227467"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7379” for 127.0.0.1 at 2018-12-06 22:34:41 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7379"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BQ.hvR2xiCz1g2Qswlqf7e.BC49Rhx0I79OBtFAuctBO7LL3hNx2W"], ["created_at", "2018-12-07 00:34:41.233428"], ["updated_at", "2018-12-07 00:34:41.233428"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.235105"], ["updated_at", "2018-12-07 00:34:41.235105"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7380” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.236925"], ["last_sign_in_at", "2018-12-07 00:34:41.236925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.237309"], ["id", 9867]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7380"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.245465"], ["updated_at", "2018-12-07 00:34:41.245465"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7381” for 127.0.0.1 at 2018-12-06 22:34:41 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7381"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3R4YMVz8lAtpNOZXK.5ssudyh7p2LbMkmC27eGECIr3ma.RmYK6tu"], ["created_at", "2018-12-07 00:34:41.251663"], ["updated_at", "2018-12-07 00:34:41.251663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.253151"], ["updated_at", "2018-12-07 00:34:41.253151"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7382/edit” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.254497"], ["last_sign_in_at", "2018-12-07 00:34:41.254497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.254828"], ["id", 9868]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7382"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7382], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KhUDFNTIUo5RGr6z5SiK0uIh6oW1Kb60b9jCaHR09BIDJXbf0SuGq"], ["created_at", "2018-12-07 00:34:41.265041"], ["updated_at", "2018-12-07 00:34:41.265041"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.266729"], ["updated_at", "2018-12-07 00:34:41.266729"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7383/edit” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.268537"], ["last_sign_in_at", "2018-12-07 00:34:41.268537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.268926"], ["id", 9869]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7383"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7383], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.276871"], ["updated_at", "2018-12-07 00:34:41.276871"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7384” for 127.0.0.1 at 2018-12-06 22:34:41 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7384"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WxKNTV21ogclqKtTcfxvzexZ.PEic.yMl6IL0v/TZO2nRn3nH7R6S"], ["created_at", "2018-12-07 00:34:41.283138"], ["updated_at", "2018-12-07 00:34:41.283138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.285102"], ["last_sign_in_at", "2018-12-07 00:34:41.285102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.285439"], ["id", 9870]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.287720"], ["updated_at", "2018-12-07 00:34:41.287720"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n.Tm55iWa.fvhWDUIiO25ubEFAlWgTAPawdsdLTxnCjsXT3U6rIaC"], ["created_at", "2018-12-07 00:34:41.293548"], ["updated_at", "2018-12-07 00:34:41.293548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.295703"], ["last_sign_in_at", "2018-12-07 00:34:41.295703"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.296135"], ["id", 9871]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.298767"], ["updated_at", "2018-12-07 00:34:41.298767"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1m/gCJ4iIsTAKraevg2Ri.rjCFlIFi9m5XAmZCrJOOaxPcDoDmIX6"], ["created_at", "2018-12-07 00:34:41.304764"], ["updated_at", "2018-12-07 00:34:41.304764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.306991"], ["last_sign_in_at", "2018-12-07 00:34:41.306991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.307370"], ["id", 9872]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kbZnkx0FQz.cltiUf3nhROWufgxZHTdp7o4kzkdE6xapL0th6zlfe"], ["created_at", "2018-12-07 00:34:41.315167"], ["updated_at", "2018-12-07 00:34:41.315167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.317223"], ["last_sign_in_at", "2018-12-07 00:34:41.317223"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.317581"], ["id", 9873]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lb71wuzepQI8hhUwdM3XHeYQwQ/3s3kyWdBEOPbK25aEBpMmkpcU."], ["created_at", "2018-12-07 00:34:41.324936"], ["updated_at", "2018-12-07 00:34:41.324936"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.326964"], ["last_sign_in_at", "2018-12-07 00:34:41.326964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.327334"], ["id", 9874]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LE57b2HenO1tLMdI0q0UMuOH.VwbZQ1jGqEkpGh16h5d4YbAkwiGq"], ["created_at", "2018-12-07 00:34:41.334061"], ["updated_at", "2018-12-07 00:34:41.334061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.335697"], ["updated_at", "2018-12-07 00:34:41.335697"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7387” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.337497"], ["last_sign_in_at", "2018-12-07 00:34:41.337497"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.337875"], ["id", 9875]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7387"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7387], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 00:34:41.340763"], ["id", 7387]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7387 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Zaoq6EdSH7qnQyAy0hQby.re6bQkWVz.VK0sItwPHdScjlmKQjcyC"], ["created_at", "2018-12-07 00:34:41.346427"], ["updated_at", "2018-12-07 00:34:41.346427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.348016"], ["updated_at", "2018-12-07 00:34:41.348016"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7388” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.349742"], ["last_sign_in_at", "2018-12-07 00:34:41.349742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.350101"], ["id", 9876]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7388"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7388], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 00:34:41.353010"], ["id", 7388]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7388 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Gwk6Gz6MXog8lbv..lrjcuc0mRh4FAZ3K4AUQjCZ7HttJPSvMdahC"], ["created_at", "2018-12-07 00:34:41.357992"], ["updated_at", "2018-12-07 00:34:41.357992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.359434"], ["updated_at", "2018-12-07 00:34:41.359434"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7389” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.361222"], ["last_sign_in_at", "2018-12-07 00:34:41.361222"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.361582"], ["id", 9877]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7389"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7389], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F0/sePyA3RnSzDLmcEIZs.AmXrB9kZqxNQ8SuKcUAaSg54EdioFkK"], ["created_at", "2018-12-07 00:34:41.373438"], ["updated_at", "2018-12-07 00:34:41.373438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.375072"], ["updated_at", "2018-12-07 00:34:41.375072"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7390” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.376840"], ["last_sign_in_at", "2018-12-07 00:34:41.376840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.377221"], ["id", 9878]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7390"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7390], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$etZ8IfljDYqZVDmL5b3sguvzoZFuS6KDz78I/GhXG2ZfPLO7dpBBW"], ["created_at", "2018-12-07 00:34:41.388078"], ["updated_at", "2018-12-07 00:34:41.388078"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.390156"], ["last_sign_in_at", "2018-12-07 00:34:41.390156"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.390516"], ["id", 9879]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ymfa25Zj.IWPoMgi.964redwlg1hSKWVGpoGECpo.5UOxdhW9rcKa"], ["created_at", "2018-12-07 00:34:41.397205"], ["updated_at", "2018-12-07 00:34:41.397205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.398941"], ["updated_at", "2018-12-07 00:34:41.398941"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7391” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.400449"], ["last_sign_in_at", "2018-12-07 00:34:41.400449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.400839"], ["id", 9880]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7391"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7391], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7391]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MSHa5LNS5fVv6UOFZBtrzOnrXOcJzbsexpO0XqDIN2YUmsHbrP1Im"], ["created_at", "2018-12-07 00:34:41.408590"], ["updated_at", "2018-12-07 00:34:41.408590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.410145"], ["updated_at", "2018-12-07 00:34:41.410145"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7392” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.411547"], ["last_sign_in_at", "2018-12-07 00:34:41.411547"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.411963"], ["id", 9881]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7392"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7392], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7392]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SA2YDUGbR7FuYBm2eGf8yuo.z8EchMZAYBaI5m.OrEvdFXwUEmv.K"], ["created_at", "2018-12-07 00:34:41.419122"], ["updated_at", "2018-12-07 00:34:41.419122"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.420660"], ["updated_at", "2018-12-07 00:34:41.420660"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7393” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.422022"], ["last_sign_in_at", "2018-12-07 00:34:41.422022"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.422399"], ["id", 9882]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7393"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ikDOtE1utVMYG7Ia3snPF.VIl3JbpbM5n3BWZpW8dc0Eglfs7tTRK"], ["created_at", "2018-12-07 00:34:41.429429"], ["updated_at", "2018-12-07 00:34:41.429429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.431054"], ["updated_at", "2018-12-07 00:34:41.431054"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7394” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.432479"], ["last_sign_in_at", "2018-12-07 00:34:41.432479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.432854"], ["id", 9883]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7394"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PjI/l.TolsIBuDqzoOhG7.DUPcAPZ1jEf5sYuh99vu/4lx.l3XCuW"], ["created_at", "2018-12-07 00:34:41.438732"], ["updated_at", "2018-12-07 00:34:41.438732"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.440319"], ["last_sign_in_at", "2018-12-07 00:34:41.440319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.440660"], ["id", 9884]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hn.2MC/5iRK9Fo6MyfnrXu2HKcE5OFA2yaaFc9lELUvcWHGRBpRFK"], ["created_at", "2018-12-07 00:34:41.452300"], ["updated_at", "2018-12-07 00:34:41.452300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.453851"], ["updated_at", "2018-12-07 00:34:41.453851"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.455378"], ["updated_at", "2018-12-07 00:34:41.455378"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.457474"], ["updated_at", "2018-12-07 00:34:41.457474"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7395], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9885], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9885], ["room_id", 7395], ["created_at", "2018-12-07 00:34:41.460664"], ["updated_at", "2018-12-07 00:34:41.460664"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.462338"], ["last_sign_in_at", "2018-12-07 00:34:41.462338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.462737"], ["id", 9885]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jFqzgyD.b2/1BZHC5cFtU.rlAAeAkcwMhlSCZxUdLtcUwgJrSp79G"], ["created_at", "2018-12-07 00:34:41.479946"], ["updated_at", "2018-12-07 00:34:41.479946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.481585"], ["updated_at", "2018-12-07 00:34:41.481585"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.482920"], ["updated_at", "2018-12-07 00:34:41.482920"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:34:41.484218"], ["updated_at", "2018-12-07 00:34:41.484218"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7398], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9886], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9886], ["room_id", 7398], ["created_at", "2018-12-07 00:34:41.487110"], ["updated_at", "2018-12-07 00:34:41.487110"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 22:34:41 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:34:41.489256"], ["last_sign_in_at", "2018-12-07 00:34:41.489256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:34:41.489639"], ["id", 9886]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9XQ6LtHqchGh2MbnO31VfObOmdLxPsi21o0gFf0adwbQMNUdBAnTW"], ["created_at", "2018-12-07 00:34:49.064595"], ["updated_at", "2018-12-07 00:34:49.064595"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (117.5ms)

Completed 200 OK in 130ms (Views: 122.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:34:49.222426"], ["last_sign_in_at", "2018-12-07 00:34:49.222426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:34:49.222933"], ["id", 9887]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9887], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:34:49.247242"], ["updated_at", "2018-12-07 00:34:49.247242"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9887], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7401” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7401"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7401], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7401')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9887], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7401” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9887], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7401 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7401], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9887], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9887], ["room_id", 7401], ["created_at", "2018-12-07 00:34:49.304208"], ["updated_at", "2018-12-07 00:34:49.304208"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9887], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$TzrMlGva9tws8uz5Pd7HXefOzfoBTA2TVFPc3qD98wgY7uRsTvXna"], ["created_at", "2018-12-07 00:34:49.320222"], ["updated_at", "2018-12-07 00:34:49.320222"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:34:49.332039"], ["last_sign_in_at", "2018-12-07 00:34:49.332039"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:34:49.332512"], ["id", 9888]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9888], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:34:49.340841"], ["updated_at", "2018-12-07 00:34:49.340841"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7402], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9888], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9888], ["room_id", 7402], ["created_at", "2018-12-07 00:34:49.345287"], ["updated_at", "2018-12-07 00:34:49.345287"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9888], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7402” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7402"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7402], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7402')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9888], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7402” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9888], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7402 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7402], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9888], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9888], ["room_id", 7402], ["created_at", "2018-12-07 00:34:49.373932"], ["updated_at", "2018-12-07 00:34:49.373932"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:34:49 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9888], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kO0/MYqRXSg5wIUdzCw3ZeE6bewklkqWCnF8i283EL.BpIaJYhRzq"], ["created_at", "2018-12-07 00:36:01.441450"], ["updated_at", "2018-12-07 00:36:01.441450"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.2ms)
Rendered users/sessions/new.html.erb within layouts/application (115.7ms)

Completed 200 OK in 129ms (Views: 120.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:36:01.597066"], ["last_sign_in_at", "2018-12-07 00:36:01.597066"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:36:01.597575"], ["id", 9889]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9889], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:36:01.621283"], ["updated_at", "2018-12-07 00:36:01.621283"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9889], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7403” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7403"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7403], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7403')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9889], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7403” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9889], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7403 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7403], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9889], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9889], ["room_id", 7403], ["created_at", "2018-12-07 00:36:01.678255"], ["updated_at", "2018-12-07 00:36:01.678255"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9889], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hASjXQXwr9w.nYLm27l55eGrpciPWcYR9cO619B99CsGOtxYDI6kC"], ["created_at", "2018-12-07 00:36:01.693808"], ["updated_at", "2018-12-07 00:36:01.693808"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:36:01.705984"], ["last_sign_in_at", "2018-12-07 00:36:01.705984"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:36:01.706410"], ["id", 9890]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9890], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:36:01.715054"], ["updated_at", "2018-12-07 00:36:01.715054"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7404], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9890], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9890], ["room_id", 7404], ["created_at", "2018-12-07 00:36:01.719806"], ["updated_at", "2018-12-07 00:36:01.719806"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9890], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7404” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7404"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7404], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7404')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9890], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.7ms) Started POST “/appointments.7404” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9890], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7404 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7404], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9890], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9890], ["room_id", 7404], ["created_at", "2018-12-07 00:36:01.748389"], ["updated_at", "2018-12-07 00:36:01.748389"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:36:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9890], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Uzx/lgqUqCSLOlJHvzDauutHg/LAvV8V.txCMA4dZhrcnvvgvv9Qu"], ["created_at", "2018-12-07 00:36:08.637322"], ["updated_at", "2018-12-07 00:36:08.637322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bA.crZeGiKWcp94X5qkRUu288yMoU7EqLBNu8R48HyVDFZuM9Dtfq"], ["created_at", "2018-12-07 00:36:08.641652"], ["updated_at", "2018-12-07 00:36:08.641652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:08.649115"], ["updated_at", "2018-12-07 00:36:08.649115"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7405], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9892], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9892], ["room_id", 7405], ["created_at", "2018-12-07 00:36:08.667714"], ["updated_at", "2018-12-07 00:36:08.667714"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3825"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3825], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7405], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9892], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 121.3ms Sent mail to 123@123.com (5.2ms) Date: Thu, 06 Dec 2018 22:36:08 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09c078c3c30_225a2b10e409e5f0789d2@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c078c2ea5_225a2b10e409e5f07881c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c078c2ea5_225a2b10e409e5f07881c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09c078c2ea5_225a2b10e409e5f07881c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09c078c2ea5_225a2b10e409e5f07881c–

Completed 302 Found in 131ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fxWHCRImc/OF4zoeRZx.1..le9mE0q6S1nDyTXaINM49aK9vB5GPq"], ["created_at", "2018-12-07 00:36:08.808468"], ["updated_at", "2018-12-07 00:36:08.808468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pDanAQm/EE3TNDorscVuKewzOm.0NRkyyNKF67EKnfTbAiWMIz/MC"], ["created_at", "2018-12-07 00:36:08.811404"], ["updated_at", "2018-12-07 00:36:08.811404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:08.812667"], ["updated_at", "2018-12-07 00:36:08.812667"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7406], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9894], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9894], ["room_id", 7406], ["created_at", "2018-12-07 00:36:08.815354"], ["updated_at", "2018-12-07 00:36:08.815354"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3826"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3826], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7406], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9894], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 00:36:08.819710"], ["id", 3826]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms Sent mail to 123@123.com (2.1ms) Date: Thu, 06 Dec 2018 22:36:08 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09c078c90bf_225a2b10e409e5f0791c5@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c078c8bb4_225a2b10e409e5f079039";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c078c8bb4_225a2b10e409e5f079039 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09c078c8bb4_225a2b10e409e5f079039 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09c078c8bb4_225a2b10e409e5f079039–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TwccSaDFY8t4LJE8EiIKTO/jvtpGqRi7MAT7dJkJVPdMaSciDUbNq"], ["created_at", "2018-12-07 00:36:08.828989"], ["updated_at", "2018-12-07 00:36:08.828989"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nWN55VQ5B.uAFyaiE6L0peZ1GUx5Pjg08d8T79odFDgFQC1ZL7FO."], ["created_at", "2018-12-07 00:36:08.832287"], ["updated_at", "2018-12-07 00:36:08.832287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:08.833852"], ["updated_at", "2018-12-07 00:36:08.833852"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7407], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9896], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9896], ["room_id", 7407], ["created_at", "2018-12-07 00:36:08.837726"], ["updated_at", "2018-12-07 00:36:08.837726"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9WbqiqSuKUQ1VX8jAeUxAunqGNQIge2nPWn9yK3ha0N0reJdxG.3m"], ["created_at", "2018-12-07 00:36:08.844517"], ["updated_at", "2018-12-07 00:36:08.844517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UoKieZi9K16MgTC3Xp6cTuxMGl59dzSEUwCMdE7N1kC0101bKQ3De"], ["created_at", "2018-12-07 00:36:08.847734"], ["updated_at", "2018-12-07 00:36:08.847734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:08.849256"], ["updated_at", "2018-12-07 00:36:08.849256"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7408], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9898], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9898], ["room_id", 7408], ["created_at", "2018-12-07 00:36:08.852207"], ["updated_at", "2018-12-07 00:36:08.852207"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3828], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$wh2Sctb2M7jh1ru0SiOmSe82MD7xL9PIqi1A5v3YQNoeDr3Yxh.4C"], ["created_at", "2018-12-07 00:36:08.857398"], ["updated_at", "2018-12-07 00:36:08.857398"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9899"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "9NimAP9zrSZ__Ir5XfQItg"], ["updated_at", "2018-12-07 00:36:08.860669"], ["id", 9899]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 00:36:08.862152"], ["reset_sent_at", "2018-12-07 00:36:08.861849"], ["id", 9899]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.6ms Sent mail to teste@unb.com.br (2.3ms) Date: Thu, 06 Dec 2018 22:36:08 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09c078d4538_225a2b10e409e5f0794ba@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c078d3f53_225a2b10e409e5f0793ac";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c078d3f53_225a2b10e409e5f0793ac Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:

localhost:3000/password_resets/9NimAP9zrSZ__Ir5XfQItg/edit?email=3D= teste%40unb.com.br

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.

—-==_mimepart_5c09c078d3f53_225a2b10e409e5f0793ac Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Recadastramento de Senha</h1>

<p>Para recadastrar sua senha clique no link abaixo:</p>

<a href=3D“localhost:3000/password_resets/9NimAP9zrSZ__Ir5XfQItg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>

<p> Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email. </p>

</body>

</html>

—-==_mimepart_5c09c078d3f53_225a2b10e409e5f0793ac–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$uoIT2ezp4mwo0NnJdhv9Ru7PI2IDcjuTbb3zAjEX1Q3hENIjtmaUO"], ["created_at", "2018-12-07 00:36:08.875498"], ["updated_at", "2018-12-07 00:36:08.875498"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$e0Faptpi6Isp2Tz09BHAYu6Tf7JyAnq.jnXJf2/FaS5K/Hnrquuea"], ["created_at", "2018-12-07 00:36:08.882732"], ["updated_at", "2018-12-07 00:36:08.882732"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9901"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$obYIacnd.SFjWNGmujs.re09Uzf7amK5Mn0yF7o3Yc4eVUCOwtInm"], ["updated_at", "2018-12-07 00:36:08.886651"], ["id", 9901]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$gbewn7qy7BVLdSoSwNK2huleVW16yobLENFASamXrzTkreddpsm4."], ["created_at", "2018-12-07 00:36:08.891467"], ["updated_at", "2018-12-07 00:36:08.891467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"9902"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$qN3F38FJAq7OJ5aDxngYo.hTCKQO4yWyg4PmIbCUtNRYDCfHRvbi."], ["created_at", "2018-12-07 00:36:08.900117"], ["updated_at", "2018-12-07 00:36:08.900117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9903"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)

Completed 200 OK in 8ms (Views: 1.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$YHbDjo6G/499XN91aa.TRuXKvEIgT1g5tYI6Tn/iJG.CBBUB2yK.."], ["created_at", "2018-12-07 00:36:08.913284"], ["updated_at", "2018-12-07 00:36:08.913284"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9904"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.0ms)

Completed 200 OK in 3ms (Views: 0.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$/mrCOFSGeIeHZQjd9kHep.s5hkcoHBbooSMmrE4AwVP7QXN5/VWPW"], ["created_at", "2018-12-07 00:36:08.920960"], ["updated_at", "2018-12-07 00:36:08.920960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"9905"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Rendered password_resets/edit.html.erb within layouts/application (0.0ms)

Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kH6WhwzMdnRPyjOJTta0yeZMlZEIuD3MzoN8IaTLcO1pRwoqYeWbi"], ["created_at", "2018-12-07 00:36:08.927743"], ["updated_at", "2018-12-07 00:36:08.927743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.2ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/X7z0eq.uBB4RcSnUEXn6Osd.PDzche5S1CGhbeBcGF6d/GtAJk9q"], ["created_at", "2018-12-07 00:36:08.934802"], ["updated_at", "2018-12-07 00:36:08.934802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QOA.KSlkV..vuUtjoCrvC.PZsjgzvlA6VtfiAlyJxHcQ.OczRQD.C"], ["created_at", "2018-12-07 00:36:08.941673"], ["updated_at", "2018-12-07 00:36:08.941673"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:08.943218"], ["updated_at", "2018-12-07 00:36:08.943218"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7409], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9908], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9908], ["room_id", 7409], ["created_at", "2018-12-07 00:36:08.946104"], ["updated_at", "2018-12-07 00:36:08.946104"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.5ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$31JOLJVZaHBeUIaKpvM85.Y4.QjhG0XRE9CuOzqVffiz8.8M90H8W"], ["created_at", "2018-12-07 00:36:08.952304"], ["updated_at", "2018-12-07 00:36:08.952304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:08.953762"], ["updated_at", "2018-12-07 00:36:08.953762"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7410], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9909], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9909], ["room_id", 7410], ["created_at", "2018-12-07 00:36:08.956471"], ["updated_at", "2018-12-07 00:36:08.956471"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$N7i22B30K0IpBXUsvzVWyuQWFytsVqA17PXpUOcmgSfiFhgB46Tnq"], ["created_at", "2018-12-07 00:36:08.979208"], ["updated_at", "2018-12-07 00:36:08.979208"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:08.980758"], ["updated_at", "2018-12-07 00:36:08.980758"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:08.987602"], ["last_sign_in_at", "2018-12-07 00:36:08.987602"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:08.988004"], ["id", 9910]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7411"}
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7411 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7411], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9910], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9910], ["room_id", 7411], ["created_at", "2018-12-07 00:36:08.996563"], ["updated_at", "2018-12-07 00:36:08.996563"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7411], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SPOFX2Xc6ZUDymgKZ7z5FOT3Ek0.ZpaXjCSbWO5fPvpLFivIY6B8."], ["created_at", "2018-12-07 00:36:09.002931"], ["updated_at", "2018-12-07 00:36:09.002931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.004458"], ["updated_at", "2018-12-07 00:36:09.004458"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.006337"], ["last_sign_in_at", "2018-12-07 00:36:09.006337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.006751"], ["id", 9911]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7412"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7412 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7412], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9911], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9911], ["room_id", 7412], ["created_at", "2018-12-07 00:36:09.011291"], ["updated_at", "2018-12-07 00:36:09.011291"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vuydJFz6K0VxIzKA0IQINuj9l4F62Ju4/VOqsFkfALo4qyvsgHsKq"], ["created_at", "2018-12-07 00:36:09.016583"], ["updated_at", "2018-12-07 00:36:09.016583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.018072"], ["updated_at", "2018-12-07 00:36:09.018072"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.020221"], ["last_sign_in_at", "2018-12-07 00:36:09.020221"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.020621"], ["id", 9912]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7413", "user_id"=>"9912"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7413 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7413], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9912], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9912], ["room_id", 7413], ["created_at", "2018-12-07 00:36:09.026083"], ["updated_at", "2018-12-07 00:36:09.026083"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7413", "user_id"=>"9912"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9912], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7413 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7413], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9912], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9912], ["room_id", 7413], ["created_at", "2018-12-07 00:36:09.033109"], ["updated_at", "2018-12-07 00:36:09.033109"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2IsC4zuq9eBsE0iJmrn7.eXpyY6.A0LQ7aexi/Wuk1xZKBjVU/slq"], ["created_at", "2018-12-07 00:36:09.038339"], ["updated_at", "2018-12-07 00:36:09.038339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.039861"], ["updated_at", "2018-12-07 00:36:09.039861"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.042225"], ["last_sign_in_at", "2018-12-07 00:36:09.042225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.042622"], ["id", 9913]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7414", "user_id"=>"9913"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7414 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7414], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9913], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9913], ["room_id", 7414], ["created_at", "2018-12-07 00:36:09.046975"], ["updated_at", "2018-12-07 00:36:09.046975"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7414", "user_id"=>"9913"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9913], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7414 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7414], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9913], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9913], ["room_id", 7414], ["created_at", "2018-12-07 00:36:09.052725"], ["updated_at", "2018-12-07 00:36:09.052725"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7414], ["user_id", 9913], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2fX41eqg6zcgNJ91WwKA9uHa9UWny0bxl7GAI5.TvF2B.8vNMAip6"], ["created_at", "2018-12-07 00:36:09.059148"], ["updated_at", "2018-12-07 00:36:09.059148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.060753"], ["updated_at", "2018-12-07 00:36:09.060753"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.062853"], ["last_sign_in_at", "2018-12-07 00:36:09.062853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.063206"], ["id", 9914]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7415", "user_id"=>"9914"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7415 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7415], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9914], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9914], ["room_id", 7415], ["created_at", "2018-12-07 00:36:09.067498"], ["updated_at", "2018-12-07 00:36:09.067498"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7415", "user_id"=>"9914"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9914], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7415 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7415], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9914], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 9914], ["room_id", 7415], ["created_at", "2018-12-07 00:36:09.073290"], ["updated_at", "2018-12-07 00:36:09.073290"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7415], ["user_id", 9914], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0pmX6CEOQCbC8Z32matuauPdVRY8wDolibPgdkkInRCGAp42TbMAe"], ["created_at", "2018-12-07 00:36:09.078700"], ["updated_at", "2018-12-07 00:36:09.078700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.080184"], ["updated_at", "2018-12-07 00:36:09.080184"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.081956"], ["last_sign_in_at", "2018-12-07 00:36:09.081956"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.082308"], ["id", 9915]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7416"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7416], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pU8AXaFEp2i5aAQwCInwBuWdmjFt5e8ZrYvmfzcec2EDF7jt0em9y"], ["created_at", "2018-12-07 00:36:09.089724"], ["updated_at", "2018-12-07 00:36:09.089724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.091377"], ["updated_at", "2018-12-07 00:36:09.091377"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.093236"], ["last_sign_in_at", "2018-12-07 00:36:09.093236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.093645"], ["id", 9916]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7417"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$me5jYSiiI9iIXyH.AQ32L.gPnCsOrf.U740er7mCRlhQIo3MLl31."], ["created_at", "2018-12-07 00:36:09.104935"], ["updated_at", "2018-12-07 00:36:09.104935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.106575"], ["updated_at", "2018-12-07 00:36:09.106575"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7418], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9917], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9917], ["room_id", 7418], ["created_at", "2018-12-07 00:36:09.109702"], ["updated_at", "2018-12-07 00:36:09.109702"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7418” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.111286"], ["last_sign_in_at", "2018-12-07 00:36:09.111286"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.111658"], ["id", 9917]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7418"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7418], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7418')
Rendered appointments/show.html.erb within layouts/application (7.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 198ms (Views: 196.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nnGOU98dVBycfUYSv0bOM.2MbgJrREuMrmOMkiFeCjV.t4AD6zc9S"], ["created_at", "2018-12-07 00:36:09.316272"], ["updated_at", "2018-12-07 00:36:09.316272"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.318006"], ["updated_at", "2018-12-07 00:36:09.318006"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7419], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9918], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9918], ["room_id", 7419], ["created_at", "2018-12-07 00:36:09.320975"], ["updated_at", "2018-12-07 00:36:09.320975"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3840/edit” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.322530"], ["last_sign_in_at", "2018-12-07 00:36:09.322530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.322910"], ["id", 9918]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3840"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3840], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qzbp7Ka.Et2RlmR7jWVbnuSrP7f608WDTjhbgZqh53mK2IzfNncLi"], ["created_at", "2018-12-07 00:36:09.334472"], ["updated_at", "2018-12-07 00:36:09.334472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.336248"], ["last_sign_in_at", "2018-12-07 00:36:09.336248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.336581"], ["id", 9919]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DfzqtSvMIMm.9mQfZzJV9ODGNJqg7kDvXWCfsKHSAr9BY9SCSqFpq"], ["created_at", "2018-12-07 00:36:09.347690"], ["updated_at", "2018-12-07 00:36:09.347690"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.349250"], ["updated_at", "2018-12-07 00:36:09.349250"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7420], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9920], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9920], ["room_id", 7420], ["created_at", "2018-12-07 00:36:09.352208"], ["updated_at", "2018-12-07 00:36:09.352208"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7420], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9920], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9920], ["room_id", 7420], ["created_at", "2018-12-07 00:36:09.354951"], ["updated_at", "2018-12-07 00:36:09.354951"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.356450"], ["last_sign_in_at", "2018-12-07 00:36:09.356450"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.356825"], ["id", 9920]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9920]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ylu65ETeNJRsZQa.UlAFdeDAmn4V8MLGINkno3gZ3WbwUThrH1LAW"], ["created_at", "2018-12-07 00:36:09.371257"], ["updated_at", "2018-12-07 00:36:09.371257"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.373139"], ["updated_at", "2018-12-07 00:36:09.373139"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7421], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9921], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9921], ["room_id", 7421], ["created_at", "2018-12-07 00:36:09.376735"], ["updated_at", "2018-12-07 00:36:09.376735"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7421], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9921], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9921], ["room_id", 7421], ["created_at", "2018-12-07 00:36:09.379663"], ["updated_at", "2018-12-07 00:36:09.379663"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.381191"], ["last_sign_in_at", "2018-12-07 00:36:09.381191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.381567"], ["id", 9921]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 9921]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xg1z8pLFBeC.Cmyd992un.8n.zAk4via9f2GzX0yIaLc1YrAIpSIi"], ["created_at", "2018-12-07 00:36:09.390723"], ["updated_at", "2018-12-07 00:36:09.390723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.392290"], ["updated_at", "2018-12-07 00:36:09.392290"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7422], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9922], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9922], ["room_id", 7422], ["created_at", "2018-12-07 00:36:09.395144"], ["updated_at", "2018-12-07 00:36:09.395144"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3845” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.396641"], ["last_sign_in_at", "2018-12-07 00:36:09.396641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.397005"], ["id", 9922]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3845"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3845], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3845]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VUFdVMHgrAa5b.L9LYkWOO.LAIIAWL3T8Hl4yLjuLxOC2nAVLk4qK"], ["created_at", "2018-12-07 00:36:09.406176"], ["updated_at", "2018-12-07 00:36:09.406176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.407934"], ["updated_at", "2018-12-07 00:36:09.407934"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dRab8Y4.3E1/.VBiTGOsZeHrtYKI6ZdCSr1yqzhcATJkmfVt86g7."], ["created_at", "2018-12-07 00:36:09.411146"], ["updated_at", "2018-12-07 00:36:09.411146"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7423], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9924], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9924], ["room_id", 7423], ["created_at", "2018-12-07 00:36:09.414243"], ["updated_at", "2018-12-07 00:36:09.414243"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3846” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.416112"], ["last_sign_in_at", "2018-12-07 00:36:09.416112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.416462"], ["id", 9923]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3846"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3846], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7423], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9924], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PbOM/L/mC/eLY7Zd7JqBQeAr2PNt2EtQ9KJtnUSUUbN.cDEnb6QKO"], ["created_at", "2018-12-07 00:36:09.425965"], ["updated_at", "2018-12-07 00:36:09.425965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.427507"], ["updated_at", "2018-12-07 00:36:09.427507"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yu88W6KDlS/ad0V/YgUuAufdZ.zDrjWNgLUJBnKzjf/V97bu.gGii"], ["created_at", "2018-12-07 00:36:09.430446"], ["updated_at", "2018-12-07 00:36:09.430446"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7424], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9926], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9926], ["room_id", 7424], ["created_at", "2018-12-07 00:36:09.433284"], ["updated_at", "2018-12-07 00:36:09.433284"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3847” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.435238"], ["last_sign_in_at", "2018-12-07 00:36:09.435238"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.435742"], ["id", 9925]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3847"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3847], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7424], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9926], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nQi6Q.BcKQvR2nz0HdWPruYO93t1T/7RZL7d.9LOxAq7MSt2fhivq"], ["created_at", "2018-12-07 00:36:09.445338"], ["updated_at", "2018-12-07 00:36:09.445338"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.446957"], ["updated_at", "2018-12-07 00:36:09.446957"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SsEXrLRfHVQlGVEIwsEon..zFPM9kxPe/vt9yrX3XR0v5t8ZM8xEm"], ["created_at", "2018-12-07 00:36:09.449997"], ["updated_at", "2018-12-07 00:36:09.449997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7425], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9928], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9928], ["room_id", 7425], ["created_at", "2018-12-07 00:36:09.452893"], ["updated_at", "2018-12-07 00:36:09.452893"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3848” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.454749"], ["last_sign_in_at", "2018-12-07 00:36:09.454749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.455128"], ["id", 9927]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3848"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3848], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7425], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9928], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 00:36:09.459100"], ["id", 3848]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 22:36:09 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09c07970fe5_225a2b10e409e5f0801fe@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09c07970a75_225a2b10e409e5f08007d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09c07970a75_225a2b10e409e5f08007d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva

Usu=C3=A1rio testesilva

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.

Atenciosamente, =

Equipe do Reserva-de-Salas UnB.

—-==_mimepart_5c09c07970a75_225a2b10e409e5f08007d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html> <html>

<head>
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />

  <style>
    /* Email styles need to be inline */
  </style>
</head>

<body>
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>

<p>Usu=C3=A1rio testesilva</p>

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>

<p>Atenciosamente, =

Equipe do Reserva-de-Salas UnB.</p>

</body>

</html>

—-==_mimepart_5c09c07970a75_225a2b10e409e5f08007d–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F/Radf8Fd4QMjvjcz2.9..xS9wCDLb05TVTFIZRtI925/YQDgSKkC"], ["created_at", "2018-12-07 00:36:09.469565"], ["updated_at", "2018-12-07 00:36:09.469565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.471239"], ["updated_at", "2018-12-07 00:36:09.471239"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jVNs0KSh5ehHRmocdxW6IeuFclzuC1xe7ncIPBtx9G91pMjlYwAMS"], ["created_at", "2018-12-07 00:36:09.474241"], ["updated_at", "2018-12-07 00:36:09.474241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7426], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9930], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9930], ["room_id", 7426], ["created_at", "2018-12-07 00:36:09.477151"], ["updated_at", "2018-12-07 00:36:09.477151"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 00:36:09.478496"], ["id", 3849]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7426], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9930], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9930], ["room_id", 7426], ["created_at", "2018-12-07 00:36:09.481068"], ["updated_at", "2018-12-07 00:36:09.481068"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 00:36:09.482355"], ["id", 3850]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.483759"], ["last_sign_in_at", "2018-12-07 00:36:09.483759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.484125"], ["id", 9929]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9930], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7426], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9930], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7426], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YyM4dy6T8KeWbQCmEajPuO4r0PA8ReEcXgXaWcfYOEfSPSLT8sHxC"], ["created_at", "2018-12-07 00:36:09.496723"], ["updated_at", "2018-12-07 00:36:09.496723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.498676"], ["updated_at", "2018-12-07 00:36:09.498676"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MsPKe5QxHAELlslSKFcHxeJeniPrO5wavUhFbtC1IndEAKqLg3GD6"], ["created_at", "2018-12-07 00:36:09.502625"], ["updated_at", "2018-12-07 00:36:09.502625"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7427], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9932], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9932], ["room_id", 7427], ["created_at", "2018-12-07 00:36:09.505694"], ["updated_at", "2018-12-07 00:36:09.505694"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 00:36:09.507111"], ["id", 3851]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7427], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9932], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9932], ["room_id", 7427], ["created_at", "2018-12-07 00:36:09.509703"], ["updated_at", "2018-12-07 00:36:09.509703"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 00:36:09.511009"], ["id", 3852]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.512435"], ["last_sign_in_at", "2018-12-07 00:36:09.512435"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.512784"], ["id", 9931]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9932], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7427], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9932], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7427], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$he5rYx0AoEzQmJiSC2X8jubgKdZ.C1V1T4zSb5ihHVsy/i0Xofr.y"], ["created_at", "2018-12-07 00:36:09.524847"], ["updated_at", "2018-12-07 00:36:09.524847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.526523"], ["last_sign_in_at", "2018-12-07 00:36:09.526523"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.526852"], ["id", 9933]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y4WXZ1meuRhL0ilh9QfKzeMyrCmfekM32UhIWDMC9lZNe0XlnCq3C"], ["created_at", "2018-12-07 00:36:09.540762"], ["updated_at", "2018-12-07 00:36:09.540762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.542467"], ["last_sign_in_at", "2018-12-07 00:36:09.542467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.542819"], ["id", 9934]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JPPoUUAeGq8clSMiIVdXBeB6jF0QZGrHPwGja.GmfmNBp2OdrwwRe"], ["created_at", "2018-12-07 00:36:09.548622"], ["updated_at", "2018-12-07 00:36:09.548622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.550193"], ["last_sign_in_at", "2018-12-07 00:36:09.550193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.550525"], ["id", 9935]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QpAQ5wGVTtvjeBo.GVpmtu7AS1VjeA9UFZpT5WOJ7S5t3Axwcvs1i"], ["created_at", "2018-12-07 00:36:09.560065"], ["updated_at", "2018-12-07 00:36:09.560065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.562472"], ["last_sign_in_at", "2018-12-07 00:36:09.562472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.562924"], ["id", 9936]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WbIyjC.uwV83hCXoTL8CJu3tne1.5tP419MUIfnqPK20KFPJ1.q5S"], ["created_at", "2018-12-07 00:36:09.577051"], ["updated_at", "2018-12-07 00:36:09.577051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.578621"], ["updated_at", "2018-12-07 00:36:09.578621"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7428” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.579980"], ["last_sign_in_at", "2018-12-07 00:36:09.579980"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.580362"], ["id", 9937]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7428"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7428], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RwUZerX3sW1JeUiVssIMNevX0CBPhlPpR6kLSA0KnPRJQvW9HTzPW"], ["created_at", "2018-12-07 00:36:09.588798"], ["updated_at", "2018-12-07 00:36:09.588798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.590302"], ["updated_at", "2018-12-07 00:36:09.590302"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7429” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.591794"], ["last_sign_in_at", "2018-12-07 00:36:09.591794"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.592256"], ["id", 9938]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7429"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7429], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.599604"], ["updated_at", "2018-12-07 00:36:09.599604"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7430” for 127.0.0.1 at 2018-12-06 22:36:09 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7430"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fvP5K4Q1WhOdbUYdTQgtbesyrtzKZMACRBhtnhPCUw6Ww6aI9T.oy"], ["created_at", "2018-12-07 00:36:09.605816"], ["updated_at", "2018-12-07 00:36:09.605816"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.607434"], ["updated_at", "2018-12-07 00:36:09.607434"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7431” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.608925"], ["last_sign_in_at", "2018-12-07 00:36:09.608925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.609316"], ["id", 9939]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7431"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.617068"], ["updated_at", "2018-12-07 00:36:09.617068"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7432” for 127.0.0.1 at 2018-12-06 22:36:09 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7432"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vFByZ5AFkbv4yvYpG4XnKOzPwBgHzjwEtXpa8FpEe2FveMLUjEOsO"], ["created_at", "2018-12-07 00:36:09.623172"], ["updated_at", "2018-12-07 00:36:09.623172"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.625544"], ["updated_at", "2018-12-07 00:36:09.625544"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7433/edit” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.627199"], ["last_sign_in_at", "2018-12-07 00:36:09.627199"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.627583"], ["id", 9940]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7433"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7433], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ho2veIdhE3o7tusX/vqWHOibRo6rYUoPkzFfYlzTRXSheK0REjGSa"], ["created_at", "2018-12-07 00:36:09.638154"], ["updated_at", "2018-12-07 00:36:09.638154"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.639760"], ["updated_at", "2018-12-07 00:36:09.639760"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7434/edit” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.641177"], ["last_sign_in_at", "2018-12-07 00:36:09.641177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.641544"], ["id", 9941]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7434"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7434], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.649233"], ["updated_at", "2018-12-07 00:36:09.649233"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7435” for 127.0.0.1 at 2018-12-06 22:36:09 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7435"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6mdHSJlkh37L9dLG07t2GOtieXleR2vgaHqRPPlAJGBXkzufKV2sa"], ["created_at", "2018-12-07 00:36:09.656266"], ["updated_at", "2018-12-07 00:36:09.656266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.658634"], ["last_sign_in_at", "2018-12-07 00:36:09.658634"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.659012"], ["id", 9942]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.661518"], ["updated_at", "2018-12-07 00:36:09.661518"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/OKrUqniQgjLZnKnp/U11eArDfNW8kPjnwnr/BMPs39H0EuE1bUOW"], ["created_at", "2018-12-07 00:36:09.667317"], ["updated_at", "2018-12-07 00:36:09.667317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.669301"], ["last_sign_in_at", "2018-12-07 00:36:09.669301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.669646"], ["id", 9943]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.671914"], ["updated_at", "2018-12-07 00:36:09.671914"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YA1vhe8XMSX9tBqULb5lYurCsonP2jFm35baMcjePmOUNHsyBW.mm"], ["created_at", "2018-12-07 00:36:09.676908"], ["updated_at", "2018-12-07 00:36:09.676908"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.678895"], ["last_sign_in_at", "2018-12-07 00:36:09.678895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.679237"], ["id", 9944]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/5Z.Ot.yJ0jd569Qw.ZdrOGX4iODtmkTND0pboAZoFqFE7PGQ1vye"], ["created_at", "2018-12-07 00:36:09.686992"], ["updated_at", "2018-12-07 00:36:09.686992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.689589"], ["last_sign_in_at", "2018-12-07 00:36:09.689589"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.689949"], ["id", 9945]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KBs5CazyEqtbRF9K33fqmuVDexteiP41FTeaEWgYQB6tSFVmXyhTa"], ["created_at", "2018-12-07 00:36:09.697321"], ["updated_at", "2018-12-07 00:36:09.697321"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.699275"], ["last_sign_in_at", "2018-12-07 00:36:09.699275"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.699634"], ["id", 9946]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dloCZVyKHMrORIXVv3l0ceM9YLTyPk8jalaRBt7rFhQDOMa8X6QMS"], ["created_at", "2018-12-07 00:36:09.705451"], ["updated_at", "2018-12-07 00:36:09.705451"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.706985"], ["updated_at", "2018-12-07 00:36:09.706985"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7438” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.708707"], ["last_sign_in_at", "2018-12-07 00:36:09.708707"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.709134"], ["id", 9947]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7438"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7438], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 00:36:09.712141"], ["id", 7438]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7438 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.tBLDiy7cWDWSh8CuMMi4u3pdAqwS9kVqhuVPxMlHl8VBqwBVWfQG"], ["created_at", "2018-12-07 00:36:09.718089"], ["updated_at", "2018-12-07 00:36:09.718089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.720292"], ["updated_at", "2018-12-07 00:36:09.720292"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7439” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.722197"], ["last_sign_in_at", "2018-12-07 00:36:09.722197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.722603"], ["id", 9948]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7439"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7439], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 00:36:09.725580"], ["id", 7439]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7439 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6QNB6UvtL.W7UMIyB8kZQ.v0bvPisrganTu0KFMDZXhJA5RSbrjD6"], ["created_at", "2018-12-07 00:36:09.730888"], ["updated_at", "2018-12-07 00:36:09.730888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.732470"], ["updated_at", "2018-12-07 00:36:09.732470"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7440” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.734210"], ["last_sign_in_at", "2018-12-07 00:36:09.734210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.734633"], ["id", 9949]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7440"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7440], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QtsFCqo2szkVKMIcO8YILuntihHdzpniVRR9bYMT83zuBrNxi5OHy"], ["created_at", "2018-12-07 00:36:09.745781"], ["updated_at", "2018-12-07 00:36:09.745781"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.747418"], ["updated_at", "2018-12-07 00:36:09.747418"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7441” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.749484"], ["last_sign_in_at", "2018-12-07 00:36:09.749484"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.750040"], ["id", 9950]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7441"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7441], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yjzkLMECuH85m42FHe4SkeggfprMyfj8FTigWC752ZV/EnTO4ZmV6"], ["created_at", "2018-12-07 00:36:09.761748"], ["updated_at", "2018-12-07 00:36:09.761748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.763854"], ["last_sign_in_at", "2018-12-07 00:36:09.763854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.764197"], ["id", 9951]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cigu6Hcu3frAGIB6LrZ2VetK8.GQHKY2cVWECO.FOrUtCucdXi0Jm"], ["created_at", "2018-12-07 00:36:09.770119"], ["updated_at", "2018-12-07 00:36:09.770119"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.771665"], ["updated_at", "2018-12-07 00:36:09.771665"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7442” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.773038"], ["last_sign_in_at", "2018-12-07 00:36:09.773038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.773391"], ["id", 9952]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7442"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7442], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7442]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t58idwCzecPPczPCPcPY8etqCkTPrYFZEQM.1bZIqDVP4NhCLpkoO"], ["created_at", "2018-12-07 00:36:09.780809"], ["updated_at", "2018-12-07 00:36:09.780809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.782987"], ["updated_at", "2018-12-07 00:36:09.782987"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7443” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.784648"], ["last_sign_in_at", "2018-12-07 00:36:09.784648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.785022"], ["id", 9953]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7443"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7443], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7443]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LUdhQC2et4wEQhE65hFb7OLJlEPcw74vjvrAbm4EqVwPCGaah385S"], ["created_at", "2018-12-07 00:36:09.792331"], ["updated_at", "2018-12-07 00:36:09.792331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.793897"], ["updated_at", "2018-12-07 00:36:09.793897"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7444” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.795281"], ["last_sign_in_at", "2018-12-07 00:36:09.795281"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.795630"], ["id", 9954]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7444"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ilBJaw95rVgjzoul/9raFex4KaUgVkN7EqaUZCn9FFoOWT59wfKZe"], ["created_at", "2018-12-07 00:36:09.801636"], ["updated_at", "2018-12-07 00:36:09.801636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.803158"], ["updated_at", "2018-12-07 00:36:09.803158"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7445” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.804494"], ["last_sign_in_at", "2018-12-07 00:36:09.804494"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.804860"], ["id", 9955]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7445"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aEoNp4Yf8usyEjTiFGNUKOoSSOxxZf0jSL6E0DuHGFT6StUcQV73W"], ["created_at", "2018-12-07 00:36:09.810584"], ["updated_at", "2018-12-07 00:36:09.810584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.812282"], ["last_sign_in_at", "2018-12-07 00:36:09.812282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.812636"], ["id", 9956]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T77XMEO4nBR0OjspXTdcYewSl1aolRthueo/IbsJ9PEntdTsodzsu"], ["created_at", "2018-12-07 00:36:09.824877"], ["updated_at", "2018-12-07 00:36:09.824877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.826481"], ["updated_at", "2018-12-07 00:36:09.826481"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.827804"], ["updated_at", "2018-12-07 00:36:09.827804"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.828973"], ["updated_at", "2018-12-07 00:36:09.828973"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7446], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9957], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9957], ["room_id", 7446], ["created_at", "2018-12-07 00:36:09.831819"], ["updated_at", "2018-12-07 00:36:09.831819"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.833395"], ["last_sign_in_at", "2018-12-07 00:36:09.833395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.833771"], ["id", 9957]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xtYAnMsv9uFc0Bfv4P2QD.AiFHKksi9Mj6e7SYLY.VGquUDVLdRCK"], ["created_at", "2018-12-07 00:36:09.850873"], ["updated_at", "2018-12-07 00:36:09.850873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.852557"], ["updated_at", "2018-12-07 00:36:09.852557"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.853785"], ["updated_at", "2018-12-07 00:36:09.853785"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 00:36:09.855001"], ["updated_at", "2018-12-07 00:36:09.855001"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7449], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9958], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 9958], ["room_id", 7449], ["created_at", "2018-12-07 00:36:09.857797"], ["updated_at", "2018-12-07 00:36:09.857797"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 22:36:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 00:36:09.859479"], ["last_sign_in_at", "2018-12-07 00:36:09.859479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 00:36:09.859841"], ["id", 9958]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iIgyTdE0d10fIaSvq48IOOwqdn38QWKoUlrRmFO125/OYNDJj3APS"], ["created_at", "2018-12-07 00:36:16.522198"], ["updated_at", "2018-12-07 00:36:16.522198"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (116.8ms)

Completed 200 OK in 130ms (Views: 121.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:36:16.678638"], ["last_sign_in_at", "2018-12-07 00:36:16.678638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:36:16.679139"], ["id", 9959]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9959], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:36:16.702710"], ["updated_at", "2018-12-07 00:36:16.702710"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9959], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.7ms) Started GET “/appointments/7452” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7452"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7452], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7452')
Rendered appointments/show.html.erb within layouts/application (5.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9959], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7452” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9959], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7452 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7452], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9959], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9959], ["room_id", 7452], ["created_at", "2018-12-07 00:36:16.759933"], ["updated_at", "2018-12-07 00:36:16.759933"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9959], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$88Gai8ktmdy3CO83RWC5euOBZnbJzgwMfR5FVrNI2LBKqdzJFKK4i"], ["created_at", "2018-12-07 00:36:16.776098"], ["updated_at", "2018-12-07 00:36:16.776098"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:36:16.787891"], ["last_sign_in_at", "2018-12-07 00:36:16.787891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:36:16.788359"], ["id", 9960]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9960], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:36:16.796656"], ["updated_at", "2018-12-07 00:36:16.796656"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7453], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9960], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9960], ["room_id", 7453], ["created_at", "2018-12-07 00:36:16.801087"], ["updated_at", "2018-12-07 00:36:16.801087"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9960], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7453” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7453"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7453], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7453')
Rendered appointments/show.html.erb within layouts/application (3.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9960], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7453” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9960], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7453 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7453], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9960], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9960], ["room_id", 7453], ["created_at", "2018-12-07 00:36:16.853215"], ["updated_at", "2018-12-07 00:36:16.853215"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:36:16 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9960], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$S78F0h9zom0Kh3RmaCpWteKXJ0vHnk9ao.h11Us6o0Iwr/48ybTbq"], ["created_at", "2018-12-07 00:36:24.607881"], ["updated_at", "2018-12-07 00:36:24.607881"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (113.9ms)

Completed 200 OK in 126ms (Views: 118.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:36:24.761237"], ["last_sign_in_at", "2018-12-07 00:36:24.761237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:36:24.761718"], ["id", 9961]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9961], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:36:24.784640"], ["updated_at", "2018-12-07 00:36:24.784640"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:36:24.786154"], ["updated_at", "2018-12-07 00:36:24.786154"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9961], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/7454” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7454"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7454], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7454')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9961], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7454” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9961], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7454 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7454], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9961], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9961], ["room_id", 7454], ["created_at", "2018-12-07 00:36:24.844341"], ["updated_at", "2018-12-07 00:36:24.844341"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9961], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$H0bCwCSj9Hd4wu8NiBeVvOFbG8Ai3ISnCAB4HmqAo1c3rF2D0LlgS"], ["created_at", "2018-12-07 00:36:24.860368"], ["updated_at", "2018-12-07 00:36:24.860368"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:36:24.872381"], ["last_sign_in_at", "2018-12-07 00:36:24.872381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:36:24.872872"], ["id", 9962]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9962], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:36:24.880339"], ["updated_at", "2018-12-07 00:36:24.880339"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:36:24.881581"], ["updated_at", "2018-12-07 00:36:24.881581"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9962], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7456” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7456"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7456], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7456')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9962], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.7456” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9962], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7456 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:36:24 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9962], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$XmNpI1LBd3s9.2F92/NZjeIfj7AUXzkamWhVRyN4qqU7zirvTRbDy"], ["created_at", "2018-12-07 00:37:00.185264"], ["updated_at", "2018-12-07 00:37:00.185264"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (113.2ms)

Completed 200 OK in 126ms (Views: 117.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:37:00.337584"], ["last_sign_in_at", "2018-12-07 00:37:00.337584"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:37:00.338084"], ["id", 9963]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9963], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:37:00.361173"], ["updated_at", "2018-12-07 00:37:00.361173"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:37:00.362724"], ["updated_at", "2018-12-07 00:37:00.362724"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9963], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7458” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7458"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7458], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7458')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9963], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7458” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9963], ["LIMIT", 1]]
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7458 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7458], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9963], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9963], ["room_id", 7458], ["created_at", "2018-12-07 00:37:00.421791"], ["updated_at", "2018-12-07 00:37:00.421791"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 19ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9963], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$G3NmZSADsaajbcb6ZCaruOF4SMOE3fEThyYhYY5IKN2U3p0yn1SOW"], ["created_at", "2018-12-07 00:37:00.437692"], ["updated_at", "2018-12-07 00:37:00.437692"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:37:00.450163"], ["last_sign_in_at", "2018-12-07 00:37:00.450163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:37:00.450639"], ["id", 9964]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9964], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 00:37:00.458105"], ["updated_at", "2018-12-07 00:37:00.458105"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:37:00.459497"], ["updated_at", "2018-12-07 00:37:00.459497"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9964], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7460” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7460"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7460], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7460')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9964], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 8ms (Views: 6.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7460” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9964], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7460 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:37:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9964], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UeRTTPB63r89Y31Bn1ceV.fdcHc06HuIsvNFLNykKc15VgRVRtCZ."], ["created_at", "2018-12-07 00:37:04.596353"], ["updated_at", "2018-12-07 00:37:04.596353"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (116.3ms)

Completed 200 OK in 129ms (Views: 120.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:37:04.752549"], ["last_sign_in_at", "2018-12-07 00:37:04.752549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:37:04.753052"], ["id", 9965]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9965], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:37:04.776819"], ["updated_at", "2018-12-07 00:37:04.776819"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9965], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7462” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7462"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7462], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7462')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9965], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7462” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9965], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7462 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7462], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9965], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9965], ["room_id", 7462], ["created_at", "2018-12-07 00:37:04.833444"], ["updated_at", "2018-12-07 00:37:04.833444"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9965], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$AvgDxt/jE3Mea/H7CfewDuGBr94a85t9eatP/1b4OOZDRCKNp1KZS"], ["created_at", "2018-12-07 00:37:04.849472"], ["updated_at", "2018-12-07 00:37:04.849472"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:37:04.861318"], ["last_sign_in_at", "2018-12-07 00:37:04.861318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:37:04.861819"], ["id", 9966]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9966], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:37:04.870221"], ["updated_at", "2018-12-07 00:37:04.870221"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7463], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9966], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9966], ["room_id", 7463], ["created_at", "2018-12-07 00:37:04.874970"], ["updated_at", "2018-12-07 00:37:04.874970"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9966], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7463” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7463"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7463], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7463')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9966], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7463” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9966], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7463 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7463], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9966], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9966], ["room_id", 7463], ["created_at", "2018-12-07 00:37:04.903650"], ["updated_at", "2018-12-07 00:37:04.903650"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:37:04 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9966], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7BOhKN9f0UTErpdmS8eIZOgskbG65D5Rq9LssXJ.umPWnYm0Gy8F."], ["created_at", "2018-12-07 00:44:20.409094"], ["updated_at", "2018-12-07 00:44:20.409094"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (115.5ms)

Completed 200 OK in 128ms (Views: 120.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:44:20.564448"], ["last_sign_in_at", "2018-12-07 00:44:20.564448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:44:20.564947"], ["id", 9967]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9967], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:44:20.588761"], ["updated_at", "2018-12-07 00:44:20.588761"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9967], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7464” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7464"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7464], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7464')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9967], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7464” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9967], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7464 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')

Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Y6L7qYIfXtWPrKd/TSokJeJNcf9eqt.ll/YixDDcOv/iv/XXNnOcq"], ["created_at", "2018-12-07 00:44:20.644682"], ["updated_at", "2018-12-07 00:44:20.644682"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:44:20.656513"], ["last_sign_in_at", "2018-12-07 00:44:20.656513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:44:20.656947"], ["id", 9968]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9968], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:44:20.665217"], ["updated_at", "2018-12-07 00:44:20.665217"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7465], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9968], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9968], ["room_id", 7465], ["created_at", "2018-12-07 00:44:20.676794"], ["updated_at", "2018-12-07 00:44:20.676794"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9968], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7465” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7465"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7465], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7465')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9968], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7465” for 127.0.0.1 at 2018-12-06 22:44:20 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9968], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7465 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')

Completed 500 Internal Server Error in 4ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$lSitKycExrMquRN69BT0mOdJyv6nl./NSDgJUVnR1Bm40dfEZtFG2"], ["created_at", "2018-12-07 00:44:41.452896"], ["updated_at", "2018-12-07 00:44:41.452896"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (116.8ms)

Completed 200 OK in 130ms (Views: 121.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:44:41.609523"], ["last_sign_in_at", "2018-12-07 00:44:41.609523"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:44:41.610023"], ["id", 9969]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9969], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:44:41.633774"], ["updated_at", "2018-12-07 00:44:41.633774"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9969], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.7ms) Started GET “/appointments/7466” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7466"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7466], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7466')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9969], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7466” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9969], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7466 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')

Completed 500 Internal Server Error in 9ms (ActiveRecord: 1.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$E/NtpEeyrbED3coYIrZ6weI0El1mCPuSsR1J9jk9tsRlX3QpITCLK"], ["created_at", "2018-12-07 00:44:41.689908"], ["updated_at", "2018-12-07 00:44:41.689908"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:44:41.701581"], ["last_sign_in_at", "2018-12-07 00:44:41.701581"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:44:41.702060"], ["id", 9970]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9970], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:44:41.710427"], ["updated_at", "2018-12-07 00:44:41.710427"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7467], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9970], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9970], ["room_id", 7467], ["created_at", "2018-12-07 00:44:41.721898"], ["updated_at", "2018-12-07 00:44:41.721898"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9970], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7467” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7467"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7467], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7467')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9970], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7467” for 127.0.0.1 at 2018-12-06 22:44:41 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9970], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7467 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$075oS8X85B3xb2S4F4vUCemjYIQyE9bKJw0UwbTfRhB7OBzn44G3u"], ["created_at", "2018-12-07 00:44:53.898065"], ["updated_at", "2018-12-07 00:44:53.898065"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:44:53 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.9ms)
Rendered users/sessions/new.html.erb within layouts/application (112.1ms)

Completed 200 OK in 125ms (Views: 116.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:44:54.049798"], ["last_sign_in_at", "2018-12-07 00:44:54.049798"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:44:54.050297"], ["id", 9971]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9971], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:44:54.073959"], ["updated_at", "2018-12-07 00:44:54.073959"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9971], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7468” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7468"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7468], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7468')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9971], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7468” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9971], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7468 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7468], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9971], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9971], ["room_id", 7468], ["created_at", "2018-12-07 00:44:54.131992"], ["updated_at", "2018-12-07 00:44:54.131992"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9971], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$q990wQKeaH2LFYFB0yeV0e0bjueQSULdzCfGw2yrCzXslQ6OV/k8i"], ["created_at", "2018-12-07 00:44:54.147766"], ["updated_at", "2018-12-07 00:44:54.147766"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:44:54.159690"], ["last_sign_in_at", "2018-12-07 00:44:54.159690"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:44:54.160151"], ["id", 9972]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9972], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:44:54.168487"], ["updated_at", "2018-12-07 00:44:54.168487"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7469], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9972], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9972], ["room_id", 7469], ["created_at", "2018-12-07 00:44:54.172853"], ["updated_at", "2018-12-07 00:44:54.172853"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9972], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7469” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7469"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7469], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7469')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9972], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7469” for 127.0.0.1 at 2018-12-06 22:44:54 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9972], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7469 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kbTVBwFDetjoHkp6u290oe2tE4tjPn9fXXsmONwLu1pzCz6WMcl0K"], ["created_at", "2018-12-07 00:45:04.962848"], ["updated_at", "2018-12-07 00:45:04.962848"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:45:04 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (123.3ms)

Completed 200 OK in 136ms (Views: 127.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:45:05.126384"], ["last_sign_in_at", "2018-12-07 00:45:05.126384"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:45:05.126925"], ["id", 9973]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9973], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:45:05.151002"], ["updated_at", "2018-12-07 00:45:05.151002"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9973], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7470” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7470"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7470], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7470')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9973], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7470” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9973], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7470 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7470], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9973], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9973], ["room_id", 7470], ["created_at", "2018-12-07 00:45:05.207430"], ["updated_at", "2018-12-07 00:45:05.207430"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9973], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hVeq6QmFfnKD6MoVPYMVC.Gn9e.BAAMPY8PMhnPFcUXyjM0vpE.jm"], ["created_at", "2018-12-07 00:45:05.223022"], ["updated_at", "2018-12-07 00:45:05.223022"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 00:45:05.234782"], ["last_sign_in_at", "2018-12-07 00:45:05.234782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 00:45:05.235293"], ["id", 9974]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9974], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 00:45:05.243561"], ["updated_at", "2018-12-07 00:45:05.243561"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7471], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9974], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 9974], ["room_id", 7471], ["created_at", "2018-12-07 00:45:05.248208"], ["updated_at", "2018-12-07 00:45:05.248208"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9974], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7471” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7471"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7471], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7471')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9974], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7471” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9974], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7471 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7471], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9974], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 9974], ["room_id", 7471], ["created_at", "2018-12-07 00:45:05.277091"], ["updated_at", "2018-12-07 00:45:05.277091"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 22:45:05 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9974], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Gf2BocfR33UGjewGv0QkM.iokt7VmWDTf89d6Io2Rz0lAg2LN.tFS"], ["created_at", "2018-12-07 01:15:07.257602"], ["updated_at", "2018-12-07 01:15:07.257602"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:15:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (68.7ms)
Rendered users/sessions/new.html.erb within layouts/application (9299.8ms)

Completed 200 OK in 9318ms (Views: 9308.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (1.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.3ms)  SAVEPOINT active_record_1
SQL (0.6ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:15:16.679078"], ["last_sign_in_at", "2018-12-07 01:15:16.679078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:15:16.680158"], ["id", 9975]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 24ms (ActiveRecord: 2.5ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9975], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:15:16.712784"], ["updated_at", "2018-12-07 01:15:16.712784"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:15:16.714551"], ["updated_at", "2018-12-07 01:15:16.714551"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9975], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.6ms) Started GET “/appointments/7472” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7472"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7472], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (1.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7472')
Rendered appointments/show.html.erb within layouts/application (20.2ms)
User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9975], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 67ms (Views: 25.9ms | ActiveRecord: 5.1ms) Started POST “/appointments.7472” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$70e87y9Ghp0YkjCHnVLq9ebTwca7VUyuYw9B9ImOAJbRhlQuI16Xy"], ["created_at", "2018-12-07 01:15:16.840269"], ["updated_at", "2018-12-07 01:15:16.840269"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:15:16.853483"], ["last_sign_in_at", "2018-12-07 01:15:16.853483"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:15:16.854001"], ["id", 9976]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9976], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:15:16.862165"], ["updated_at", "2018-12-07 01:15:16.862165"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:15:16.863691"], ["updated_at", "2018-12-07 01:15:16.863691"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9976], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started GET “/appointments/7474” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7474"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7474], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7474')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9976], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started POST “/appointments.7474” for 127.0.0.1 at 2018-12-06 23:15:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$2h3bvGfR6uM8f94T2y5JxOXvi84L/K50ns8q5KGRrGYmDUPjMjKaS"], ["created_at", "2018-12-07 01:16:13.103442"], ["updated_at", "2018-12-07 01:16:13.103442"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (116.8ms)

Completed 200 OK in 130ms (Views: 121.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:16:13.261073"], ["last_sign_in_at", "2018-12-07 01:16:13.261073"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:16:13.261583"], ["id", 9977]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9977], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:16:13.284958"], ["updated_at", "2018-12-07 01:16:13.284958"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:16:13.286501"], ["updated_at", "2018-12-07 01:16:13.286501"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9977], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7476” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7476"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7476], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7476')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9977], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7476” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$OXUOmH8YKoR43sdi/y/uuuVnD/yCpVma8ChIZmpYMC4vSYLSH/LiK"], ["created_at", "2018-12-07 01:16:13.336320"], ["updated_at", "2018-12-07 01:16:13.336320"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:16:13.348332"], ["last_sign_in_at", "2018-12-07 01:16:13.348332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:16:13.348799"], ["id", 9978]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9978], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:16:13.356191"], ["updated_at", "2018-12-07 01:16:13.356191"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:16:13.357567"], ["updated_at", "2018-12-07 01:16:13.357567"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9978], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7478” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7478"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7478], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7478')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9978], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started POST “/appointments.7478” for 127.0.0.1 at 2018-12-06 23:16:13 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3oAtd.l88ZIZw.8FWdQ5je4EECFbug6LzjbysGYblOrQ7G199OBIa"], ["created_at", "2018-12-07 01:16:35.315816"], ["updated_at", "2018-12-07 01:16:35.315816"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (116.9ms)

Completed 200 OK in 130ms (Views: 121.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:16:35.473714"], ["last_sign_in_at", "2018-12-07 01:16:35.473714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:16:35.474225"], ["id", 9979]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9979], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:16:35.497581"], ["updated_at", "2018-12-07 01:16:35.497581"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:16:35.499195"], ["updated_at", "2018-12-07 01:16:35.499195"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9979], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7480” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7480"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7480], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7480')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9979], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7480” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$EFcPi.mrVEoxM9RqJMt.HOAQAqNumcxwYtfpsgzb8Iw8zteglUdPC"], ["created_at", "2018-12-07 01:16:35.559076"], ["updated_at", "2018-12-07 01:16:35.559076"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:16:35.570709"], ["last_sign_in_at", "2018-12-07 01:16:35.570709"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:16:35.571167"], ["id", 9980]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9980], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:16:35.578445"], ["updated_at", "2018-12-07 01:16:35.578445"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:16:35.579698"], ["updated_at", "2018-12-07 01:16:35.579698"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9980], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7482” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7482"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7482], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7482')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9980], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7482” for 127.0.0.1 at 2018-12-06 23:16:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$qQmzmNJiw6J7uBPjKENyQuQe4fKUoAq5Zkmw2GNY8bAjbnPrkRKv2"], ["created_at", "2018-12-07 01:17:02.425118"], ["updated_at", "2018-12-07 01:17:02.425118"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (12.2ms)
Rendered users/sessions/new.html.erb within layouts/application (126.1ms)

Completed 200 OK in 139ms (Views: 130.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:17:02.592711"], ["last_sign_in_at", "2018-12-07 01:17:02.592711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:17:02.593235"], ["id", 9981]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9981], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:17:02.616824"], ["updated_at", "2018-12-07 01:17:02.616824"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:17:02.618304"], ["updated_at", "2018-12-07 01:17:02.618304"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9981], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7484” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7484"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7484], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7484')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9981], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7484” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$pSSU70TCv7Tzm9ph6uh7feGKOPF3r6XnxIPl62A8HMTtNG8j9wj4i"], ["created_at", "2018-12-07 01:17:02.677990"], ["updated_at", "2018-12-07 01:17:02.677990"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:17:02.689591"], ["last_sign_in_at", "2018-12-07 01:17:02.689591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:17:02.690052"], ["id", 9982]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9982], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:17:02.697294"], ["updated_at", "2018-12-07 01:17:02.697294"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:17:02.698848"], ["updated_at", "2018-12-07 01:17:02.698848"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9982], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7486” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7486"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7486], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7486')
Rendered appointments/show.html.erb within layouts/application (1.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9982], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started POST “/appointments.7486” for 127.0.0.1 at 2018-12-06 23:17:02 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$6lSAxewld6AW0QxLWhzgrucSUM1mSLn76t23F2gStVY8HFKBACmhC"], ["created_at", "2018-12-07 01:17:19.625631"], ["updated_at", "2018-12-07 01:17:19.625631"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.9ms)
Rendered users/sessions/new.html.erb within layouts/application (118.8ms)

Completed 200 OK in 132ms (Views: 123.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:17:19.785454"], ["last_sign_in_at", "2018-12-07 01:17:19.785454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:17:19.785966"], ["id", 9983]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9983], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:17:19.809332"], ["updated_at", "2018-12-07 01:17:19.809332"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:17:19.810862"], ["updated_at", "2018-12-07 01:17:19.810862"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9983], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/7488” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7488"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7488], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7488')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9983], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7488” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9983], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7488 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7488], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 9983], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 9983], ["room_id", 7488], ["created_at", "2018-12-07 01:17:19.873113"], ["updated_at", "2018-12-07 01:17:19.873113"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 23ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9983], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$zwuUjBe3FJyljxpTLxlhx.59VIYM5dLCNcbdLtZ65qbnXV6W/ljDW"], ["created_at", "2018-12-07 01:17:19.889281"], ["updated_at", "2018-12-07 01:17:19.889281"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:17:19.901796"], ["last_sign_in_at", "2018-12-07 01:17:19.901796"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:17:19.902236"], ["id", 9984]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9984], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:17:19.909597"], ["updated_at", "2018-12-07 01:17:19.909597"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:17:19.911014"], ["updated_at", "2018-12-07 01:17:19.911014"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9984], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7490” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7490"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7490], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7490')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9984], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7490” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9984], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7490 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:17:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9984], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$wwLciTYkbOsTcWQoyrVteeqMfrlZWnhF.AgbLRWkKr9n5z9ybd6dq"], ["created_at", "2018-12-07 01:18:39.677304"], ["updated_at", "2018-12-07 01:18:39.677304"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.5ms)
Rendered users/sessions/new.html.erb within layouts/application (124.1ms)

Completed 200 OK in 137ms (Views: 128.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:18:39.842508"], ["last_sign_in_at", "2018-12-07 01:18:39.842508"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:18:39.843035"], ["id", 9985]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9985], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:18:39.866345"], ["updated_at", "2018-12-07 01:18:39.866345"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:18:39.867918"], ["updated_at", "2018-12-07 01:18:39.867918"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9985], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7492” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7492"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7492], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7492')
Rendered appointments/show.html.erb within layouts/application (5.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9985], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.3ms | ActiveRecord: 1.9ms) Started POST “/appointments.7492” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ADumb6c6vgToMXi00M.z2O9rSwMPoWfk1GmXsE.ExIw1V9uRka1ty"], ["created_at", "2018-12-07 01:18:39.917865"], ["updated_at", "2018-12-07 01:18:39.917865"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:18:39.930035"], ["last_sign_in_at", "2018-12-07 01:18:39.930035"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:18:39.930461"], ["id", 9986]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9986], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:18:39.937679"], ["updated_at", "2018-12-07 01:18:39.937679"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:18:39.939038"], ["updated_at", "2018-12-07 01:18:39.939038"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9986], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7494” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7494"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7494], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7494')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9986], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.8ms) Started POST “/appointments.7494” for 127.0.0.1 at 2018-12-06 23:18:39 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$LA9/rvarusoiqI1mn4k7xurWJQ8dZ6gLZ5DD1Kin1ZvJc2YZUFzLq"], ["created_at", "2018-12-07 01:18:59.954281"], ["updated_at", "2018-12-07 01:18:59.954281"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:18:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.9ms)
Rendered users/sessions/new.html.erb within layouts/application (117.7ms)

Completed 200 OK in 131ms (Views: 122.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:00.113165"], ["last_sign_in_at", "2018-12-07 01:19:00.113165"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:00.113666"], ["id", 9987]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9987], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:00.137064"], ["updated_at", "2018-12-07 01:19:00.137064"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:00.138586"], ["updated_at", "2018-12-07 01:19:00.138586"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9987], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7496” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7496"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7496], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7496')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9987], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7496” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1A7rK40CKuOv7gWjbYWWV.A0tJaKqBa8GUB6RHnHoNj6cXoF0zxea"], ["created_at", "2018-12-07 01:19:00.199885"], ["updated_at", "2018-12-07 01:19:00.199885"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:00.211717"], ["last_sign_in_at", "2018-12-07 01:19:00.211717"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:00.212196"], ["id", 9988]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9988], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:00.220000"], ["updated_at", "2018-12-07 01:19:00.220000"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:00.221716"], ["updated_at", "2018-12-07 01:19:00.221716"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9988], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7498” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7498"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7498], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7498')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9988], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.7498” for 127.0.0.1 at 2018-12-06 23:19:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$s4kEvCI4lRa6JI2byS92VO7caF6Lp5bUm.ZHMHyinTLjnpyB09hCe"], ["created_at", "2018-12-07 01:19:21.534458"], ["updated_at", "2018-12-07 01:19:21.534458"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.2ms)
Rendered users/sessions/new.html.erb within layouts/application (109.8ms)

Completed 200 OK in 123ms (Views: 114.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:21.683944"], ["last_sign_in_at", "2018-12-07 01:19:21.683944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:21.684451"], ["id", 9989]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9989], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:21.707157"], ["updated_at", "2018-12-07 01:19:21.707157"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:21.708688"], ["updated_at", "2018-12-07 01:19:21.708688"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9989], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7500” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7500"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7500], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7500')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9989], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7500” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 14ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$cWx.3xNzSGpwAxNTYYusfuu9DzyNGdw6JR83XC6Ivursd80UZAkA2"], ["created_at", "2018-12-07 01:19:21.771249"], ["updated_at", "2018-12-07 01:19:21.771249"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:21.801617"], ["last_sign_in_at", "2018-12-07 01:19:21.801617"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:21.802157"], ["id", 9990]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9990], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:21.811724"], ["updated_at", "2018-12-07 01:19:21.811724"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:21.813371"], ["updated_at", "2018-12-07 01:19:21.813371"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9990], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started GET “/appointments/7502” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7502"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7502], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7502')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9990], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.8ms) Started POST “/appointments.7502” for 127.0.0.1 at 2018-12-06 23:19:21 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9SvJ4hbs4EIl/R.cwfvW6OJi9QRLV9y7znSaV8rjXOQyTMt971Ghe"], ["created_at", "2018-12-07 01:19:40.467717"], ["updated_at", "2018-12-07 01:19:40.467717"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (116.7ms)

Completed 200 OK in 130ms (Views: 121.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (137.0ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:40.625160"], ["last_sign_in_at", "2018-12-07 01:19:40.625160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:40.625649"], ["id", 9991]]
 (0.4ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 152ms (ActiveRecord: 138.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9991], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.6ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:40.796727"], ["updated_at", "2018-12-07 01:19:40.796727"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:40.798605"], ["updated_at", "2018-12-07 01:19:40.798605"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9991], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started GET “/appointments/7504” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7504"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7504], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7504')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9991], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.2ms | ActiveRecord: 1.8ms) Started POST “/appointments.7504” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3Yl2qXf46udkDIZO9yknAeqa3zieeOmprfwxSmbW9k0gunUyVbQ4i"], ["created_at", "2018-12-07 01:19:40.860664"], ["updated_at", "2018-12-07 01:19:40.860664"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:40.872250"], ["last_sign_in_at", "2018-12-07 01:19:40.872250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:40.872735"], ["id", 9992]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9992], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:40.880664"], ["updated_at", "2018-12-07 01:19:40.880664"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:40.882092"], ["updated_at", "2018-12-07 01:19:40.882092"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9992], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7506” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7506"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7506], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7506')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9992], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7506” for 127.0.0.1 at 2018-12-06 23:19:40 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Fb5lq5AjRt3FanVWCkTF..GP3utljt0xFXvyD5f33jC51Pvf0ic1u"], ["created_at", "2018-12-07 01:19:52.373920"], ["updated_at", "2018-12-07 01:19:52.373920"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.1ms)
Rendered users/sessions/new.html.erb within layouts/application (109.0ms)

Completed 200 OK in 122ms (Views: 113.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:52.523110"], ["last_sign_in_at", "2018-12-07 01:19:52.523110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:52.523624"], ["id", 9993]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9993], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:52.546338"], ["updated_at", "2018-12-07 01:19:52.546338"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:52.547874"], ["updated_at", "2018-12-07 01:19:52.547874"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9993], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7508” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7508"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7508], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7508')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9993], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7508” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$cC/aBMR4gnCoRmvh0UnTMO29X7eKKCKulcRwXVi94xOkG4/VroZwq"], ["created_at", "2018-12-07 01:19:52.607462"], ["updated_at", "2018-12-07 01:19:52.607462"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:19:52.621232"], ["last_sign_in_at", "2018-12-07 01:19:52.621232"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:19:52.621701"], ["id", 9994]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9994], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:19:52.629005"], ["updated_at", "2018-12-07 01:19:52.629005"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:19:52.630510"], ["updated_at", "2018-12-07 01:19:52.630510"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9994], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7510” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7510"}
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7510], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7510')
Rendered appointments/show.html.erb within layouts/application (1.8ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9994], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 1.0ms) Started POST “/appointments.7510” for 127.0.0.1 at 2018-12-06 23:19:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$w26Lm3ri.V8e0UFJr.fqreuOmVy4snTZpOF.lnBwbuoS24ic3h5Oi"], ["created_at", "2018-12-07 01:20:59.767870"], ["updated_at", "2018-12-07 01:20:59.767870"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:20:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.6ms)
Rendered users/sessions/new.html.erb within layouts/application (124.2ms)

Completed 200 OK in 137ms (Views: 128.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:20:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:20:59.933167"], ["last_sign_in_at", "2018-12-07 01:20:59.933167"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:20:59.933671"], ["id", 9995]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:20:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9995], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:20:59.957116"], ["updated_at", "2018-12-07 01:20:59.957116"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:20:59.958621"], ["updated_at", "2018-12-07 01:20:59.958621"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:20:59 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9995], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7512” for 127.0.0.1 at 2018-12-06 23:20:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7512"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7512], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7512')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9995], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 2.0ms) Started POST “/appointments.7512” for 127.0.0.1 at 2018-12-06 23:20:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1kqD47u7bSUbCjfiLP48qeWk4NxrzBmkdrxPL88PN2QZK9DBIUJIm"], ["created_at", "2018-12-07 01:21:00.017873"], ["updated_at", "2018-12-07 01:21:00.017873"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:21:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:21:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:21:00.029129"], ["last_sign_in_at", "2018-12-07 01:21:00.029129"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:21:00.029576"], ["id", 9996]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:21:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9996], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:21:00.036684"], ["updated_at", "2018-12-07 01:21:00.036684"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:21:00.038032"], ["updated_at", "2018-12-07 01:21:00.038032"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:21:00 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9996], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7514” for 127.0.0.1 at 2018-12-06 23:21:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7514"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7514], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7514')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9996], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7514” for 127.0.0.1 at 2018-12-06 23:21:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$m.6JH7FZ8Hd9ftq1o6xKVug7y/TNmvBK36wsTd3CwbKYucba0wVTq"], ["created_at", "2018-12-07 01:21:28.359683"], ["updated_at", "2018-12-07 01:21:28.359683"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.6ms)
Rendered users/sessions/new.html.erb within layouts/application (124.2ms)

Completed 200 OK in 137ms (Views: 128.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:21:28.524829"], ["last_sign_in_at", "2018-12-07 01:21:28.524829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:21:28.525354"], ["id", 9997]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9997], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:21:28.548770"], ["updated_at", "2018-12-07 01:21:28.548770"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:21:28.550304"], ["updated_at", "2018-12-07 01:21:28.550304"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9997], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/7516” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7516"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7516], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7516')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9997], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.3ms | ActiveRecord: 1.8ms) Started POST “/appointments.7516” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 15ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$sgOcjTGMgRwLnt45op.Hh.RU8LX/4nNag.GTVznW39MzDgfK6CVua"], ["created_at", "2018-12-07 01:21:28.614118"], ["updated_at", "2018-12-07 01:21:28.614118"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:21:28.625563"], ["last_sign_in_at", "2018-12-07 01:21:28.625563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:21:28.626004"], ["id", 9998]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9998], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:21:28.633243"], ["updated_at", "2018-12-07 01:21:28.633243"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:21:28.634886"], ["updated_at", "2018-12-07 01:21:28.634886"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9998], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/7518” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7518"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7518], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7518')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9998], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7518” for 127.0.0.1 at 2018-12-06 23:21:28 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5ejLISZdkHTjtIsN/O0bFOMklY6/6asBjBhqm5f56pRi/vpR.gp6e"], ["created_at", "2018-12-07 01:21:36.297334"], ["updated_at", "2018-12-07 01:21:36.297334"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.7ms)
Rendered users/sessions/new.html.erb within layouts/application (125.2ms)

Completed 200 OK in 138ms (Views: 129.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:21:36.463731"], ["last_sign_in_at", "2018-12-07 01:21:36.463731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:21:36.464250"], ["id", 9999]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9999], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:21:36.487550"], ["updated_at", "2018-12-07 01:21:36.487550"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:21:36.489102"], ["updated_at", "2018-12-07 01:21:36.489102"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9999], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/7520” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7520"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7520], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7520')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 9999], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.7520” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$bcOjyoXA4ye9WVFyjvhFFuC3c6ljvSLEJEw46xih0yTvoehiuzqKW"], ["created_at", "2018-12-07 01:21:36.548766"], ["updated_at", "2018-12-07 01:21:36.548766"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:21:36.560207"], ["last_sign_in_at", "2018-12-07 01:21:36.560207"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:21:36.560656"], ["id", 10000]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10000], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:21:36.567777"], ["updated_at", "2018-12-07 01:21:36.567777"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:21:36.569096"], ["updated_at", "2018-12-07 01:21:36.569096"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10000], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/7522” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7522"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7522], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7522')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10000], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7522” for 127.0.0.1 at 2018-12-06 23:21:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$nlDviVQxY6iaWGTQGn.F0O3vVYSxWzm9u6nwZmqN9hlnyRHXXQjKy"], ["created_at", "2018-12-07 01:21:46.420391"], ["updated_at", "2018-12-07 01:21:46.420391"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (12.3ms)
Rendered users/sessions/new.html.erb within layouts/application (127.6ms)

Completed 200 OK in 141ms (Views: 132.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:21:46.589993"], ["last_sign_in_at", "2018-12-07 01:21:46.589993"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:21:46.590512"], ["id", 10001]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 10ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10001], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:21:46.614138"], ["updated_at", "2018-12-07 01:21:46.614138"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:21:46.615705"], ["updated_at", "2018-12-07 01:21:46.615705"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10001], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.5ms) Started GET “/appointments/7524” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7524"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7524], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7524')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10001], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7524” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 15ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$TiyPkumBH5ChBoUKaS4RzOibinS7F/HTUOjfnJgVj1AFIuNHqKgfG"], ["created_at", "2018-12-07 01:21:46.681164"], ["updated_at", "2018-12-07 01:21:46.681164"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:21:46.692721"], ["last_sign_in_at", "2018-12-07 01:21:46.692721"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:21:46.693177"], ["id", 10002]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10002], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:21:46.701295"], ["updated_at", "2018-12-07 01:21:46.701295"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:21:46.702764"], ["updated_at", "2018-12-07 01:21:46.702764"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10002], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/7526” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7526"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7526], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7526')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10002], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7526” for 127.0.0.1 at 2018-12-06 23:21:46 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Mm5pvTTnB77UrZeJFqw7SupqBkJm11b961TFWPGXRrSI/4QMJdtXS"], ["created_at", "2018-12-07 01:22:15.725953"], ["updated_at", "2018-12-07 01:22:15.725953"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (116.8ms)

Completed 200 OK in 130ms (Views: 121.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:22:15.883517"], ["last_sign_in_at", "2018-12-07 01:22:15.883517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:22:15.884031"], ["id", 10003]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10003], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:22:15.907503"], ["updated_at", "2018-12-07 01:22:15.907503"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:22:15.909033"], ["updated_at", "2018-12-07 01:22:15.909033"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10003], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7528” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7528"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7528], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7528')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10003], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7528” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$bUf8VSjFdQaVrhtSR6mDp.bhUW5lZ8PV/vMrSF/R.V6iLdLr.WAVy"], ["created_at", "2018-12-07 01:22:15.958440"], ["updated_at", "2018-12-07 01:22:15.958440"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:22:15.970516"], ["last_sign_in_at", "2018-12-07 01:22:15.970516"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:22:15.970998"], ["id", 10004]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10004], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:22:15.978318"], ["updated_at", "2018-12-07 01:22:15.978318"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:22:15.979696"], ["updated_at", "2018-12-07 01:22:15.979696"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10004], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7530” for 127.0.0.1 at 2018-12-06 23:22:15 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7530"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7530], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7530')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10004], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7530” for 127.0.0.1 at 2018-12-06 23:22:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$WZ8Yt6LWshLpzsofMFUDJufEE7CENa60aa56cnIR605zk1nsrgwmO"], ["created_at", "2018-12-07 01:22:34.286635"], ["updated_at", "2018-12-07 01:22:34.286635"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.9ms)
Rendered users/sessions/new.html.erb within layouts/application (117.9ms)

Completed 200 OK in 131ms (Views: 122.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:22:34.445307"], ["last_sign_in_at", "2018-12-07 01:22:34.445307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:22:34.445839"], ["id", 10005]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10005], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:22:34.469326"], ["updated_at", "2018-12-07 01:22:34.469326"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:22:34.470939"], ["updated_at", "2018-12-07 01:22:34.470939"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10005], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7532” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7532"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7532], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7532')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10005], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.7532” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 7ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iS7xjTJDQfyqreQ76/OQZOWZcoebpUE2XdRqJKIXk9S/49q7qL9xm"], ["created_at", "2018-12-07 01:22:34.526032"], ["updated_at", "2018-12-07 01:22:34.526032"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:22:34.537729"], ["last_sign_in_at", "2018-12-07 01:22:34.537729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:22:34.538187"], ["id", 10006]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10006], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:22:34.545429"], ["updated_at", "2018-12-07 01:22:34.545429"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:22:34.546802"], ["updated_at", "2018-12-07 01:22:34.546802"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10006], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/7534” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7534"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7534], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7534')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10006], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7534” for 127.0.0.1 at 2018-12-06 23:22:34 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iYxYpAMUmo7sgbmhdUhQ/uL8gdphzw8hxnsgJtY20csTF6rP9qq2y"], ["created_at", "2018-12-07 01:22:56.107764"], ["updated_at", "2018-12-07 01:22:56.107764"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (116.8ms)

Completed 200 OK in 130ms (Views: 121.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:22:56.265326"], ["last_sign_in_at", "2018-12-07 01:22:56.265326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:22:56.265845"], ["id", 10007]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10007], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:22:56.288859"], ["updated_at", "2018-12-07 01:22:56.288859"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:22:56.290341"], ["updated_at", "2018-12-07 01:22:56.290341"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10007], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7536” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7536"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7536], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7536')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10007], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.7ms) Started POST “/appointments.7536” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$BvvlPVoxGUeMQMsVQmCd5.I/g7rm1V6UDH/GCMFMx1PuuG6KTa.kG"], ["created_at", "2018-12-07 01:22:56.355560"], ["updated_at", "2018-12-07 01:22:56.355560"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:22:56.366973"], ["last_sign_in_at", "2018-12-07 01:22:56.366973"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:22:56.367667"], ["id", 10008]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10008], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:22:56.377255"], ["updated_at", "2018-12-07 01:22:56.377255"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:22:56.378624"], ["updated_at", "2018-12-07 01:22:56.378624"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10008], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7538” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7538"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7538], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7538')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10008], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7538” for 127.0.0.1 at 2018-12-06 23:22:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$0c//VWeSNoiGcteHDBkwxukwaCqpeR5qUj1wre7Vqbj8YkJYbda5m"], ["created_at", "2018-12-07 01:24:06.680553"], ["updated_at", "2018-12-07 01:24:06.680553"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.2ms)
Rendered users/sessions/new.html.erb within layouts/application (108.9ms)

Completed 200 OK in 122ms (Views: 113.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:24:06.829685"], ["last_sign_in_at", "2018-12-07 01:24:06.829685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:24:06.830205"], ["id", 10009]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10009], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:24:06.853071"], ["updated_at", "2018-12-07 01:24:06.853071"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:24:06.854615"], ["updated_at", "2018-12-07 01:24:06.854615"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10009], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7540” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7540"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7540], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7540')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10009], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 1.9ms) Started POST “/appointments.7540” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1JPh1RPLNBtavXct6bJW1umurTwfblhNAw9FX0NDyBTZQfFRUJ3fi"], ["created_at", "2018-12-07 01:24:06.914094"], ["updated_at", "2018-12-07 01:24:06.914094"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:24:06.928542"], ["last_sign_in_at", "2018-12-07 01:24:06.928542"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:24:06.929006"], ["id", 10010]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10010], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:24:06.936271"], ["updated_at", "2018-12-07 01:24:06.936271"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:24:06.937791"], ["updated_at", "2018-12-07 01:24:06.937791"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10010], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/7542” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7542"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7542], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7542')
Rendered appointments/show.html.erb within layouts/application (1.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10010], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 4.8ms | ActiveRecord: 0.9ms) Started POST “/appointments.7542” for 127.0.0.1 at 2018-12-06 23:24:06 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HFIPzehLpXqndl.VP5z/tOpdoXM8j66.shJGsoFCQjbN/E27fdeyW"], ["created_at", "2018-12-07 01:24:26.432007"], ["updated_at", "2018-12-07 01:24:26.432007"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (117.6ms)

Completed 200 OK in 131ms (Views: 122.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:24:26.590635"], ["last_sign_in_at", "2018-12-07 01:24:26.590635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:24:26.591149"], ["id", 10011]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10011], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:24:26.614546"], ["updated_at", "2018-12-07 01:24:26.614546"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:24:26.616124"], ["updated_at", "2018-12-07 01:24:26.616124"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10011], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7544” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7544"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7544], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7544')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10011], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7544” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8/KRoJnsL.CvM6LEWlH0xO8s8snW9wZSiIFWc0u/CYgqBh89Ge2pa"], ["created_at", "2018-12-07 01:24:26.676107"], ["updated_at", "2018-12-07 01:24:26.676107"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:24:26.687393"], ["last_sign_in_at", "2018-12-07 01:24:26.687393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:24:26.687841"], ["id", 10012]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10012], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:24:26.694985"], ["updated_at", "2018-12-07 01:24:26.694985"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:24:26.696377"], ["updated_at", "2018-12-07 01:24:26.696377"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10012], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/7546” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7546"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7546], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7546')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10012], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started POST “/appointments.7546” for 127.0.0.1 at 2018-12-06 23:24:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Uq4DO2kMzlfykYhmpwNJl.dhJE6o5CNFh/3FahKfmYeeQfvzOm9k2"], ["created_at", "2018-12-07 01:26:12.595837"], ["updated_at", "2018-12-07 01:26:12.595837"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.7ms)
Rendered users/sessions/new.html.erb within layouts/application (125.5ms)

Completed 200 OK in 138ms (Views: 130.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:26:12.762376"], ["last_sign_in_at", "2018-12-07 01:26:12.762376"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:26:12.762901"], ["id", 10013]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10013], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:26:12.786235"], ["updated_at", "2018-12-07 01:26:12.786235"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:26:12.787795"], ["updated_at", "2018-12-07 01:26:12.787795"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10013], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7548” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7548"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7548], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7548')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10013], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.7548” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$y4GOZrI5FdQr2tIYRWNJ8eBxfUNngV4je2m8agiKf8tJLGUqzebTu"], ["created_at", "2018-12-07 01:26:12.846540"], ["updated_at", "2018-12-07 01:26:12.846540"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:26:12.857909"], ["last_sign_in_at", "2018-12-07 01:26:12.857909"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:26:12.858348"], ["id", 10014]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10014], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:26:12.865428"], ["updated_at", "2018-12-07 01:26:12.865428"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:26:12.866743"], ["updated_at", "2018-12-07 01:26:12.866743"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10014], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started GET “/appointments/7550” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7550"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7550], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7550')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10014], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.7550” for 127.0.0.1 at 2018-12-06 23:26:12 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.5ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$LxZkWnm7.OkCeiCQG5REhOGsABvdMngwPcBMbJjaxJ0UbU/7khxqC"], ["created_at", "2018-12-07 01:26:23.551110"], ["updated_at", "2018-12-07 01:26:23.551110"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.3ms)
Rendered users/sessions/new.html.erb within layouts/application (111.8ms)

Completed 200 OK in 126ms (Views: 116.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:26:23.705553"], ["last_sign_in_at", "2018-12-07 01:26:23.705553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:26:23.706084"], ["id", 10015]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10015], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:26:23.729301"], ["updated_at", "2018-12-07 01:26:23.729301"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:26:23.730895"], ["updated_at", "2018-12-07 01:26:23.730895"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10015], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/7552” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7552"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7552], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7552')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10015], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.8ms) Started POST “/appointments.7552” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 13ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$kYql98C80Kz8LmbAFkIBt.JYtS7sSlK0qtTbcUhsTFcA4.2WNEPxS"], ["created_at", "2018-12-07 01:26:23.792178"], ["updated_at", "2018-12-07 01:26:23.792178"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:26:23.806757"], ["last_sign_in_at", "2018-12-07 01:26:23.806757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:26:23.807240"], ["id", 10016]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10016], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:26:23.815408"], ["updated_at", "2018-12-07 01:26:23.815408"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:26:23.816895"], ["updated_at", "2018-12-07 01:26:23.816895"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10016], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.5ms) Started GET “/appointments/7554” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7554"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7554], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7554')
Rendered appointments/show.html.erb within layouts/application (1.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10016], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 7ms (Views: 4.9ms | ActiveRecord: 1.0ms) Started POST “/appointments.7554” for 127.0.0.1 at 2018-12-06 23:26:23 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7Hc5CTkQwWsD0Xati.LBYusTpsSNf1TLDx0s2EBgyouYmbipnm1Ne"], ["created_at", "2018-12-07 01:26:37.608150"], ["updated_at", "2018-12-07 01:26:37.608150"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.9ms)
Rendered users/sessions/new.html.erb within layouts/application (117.8ms)

Completed 200 OK in 131ms (Views: 122.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:26:37.766744"], ["last_sign_in_at", "2018-12-07 01:26:37.766744"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:26:37.767272"], ["id", 10017]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10017], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:26:37.790700"], ["updated_at", "2018-12-07 01:26:37.790700"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:26:37.792267"], ["updated_at", "2018-12-07 01:26:37.792267"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10017], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7556” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7556"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7556], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7556')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10017], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7556” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8n1riZGgyPKa6yLDz0Rjne/EluapF6WGBIp1Lr0PgFYlr6btYLv0."], ["created_at", "2018-12-07 01:26:37.854042"], ["updated_at", "2018-12-07 01:26:37.854042"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:26:37.865695"], ["last_sign_in_at", "2018-12-07 01:26:37.865695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:26:37.866173"], ["id", 10018]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10018], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:26:37.873499"], ["updated_at", "2018-12-07 01:26:37.873499"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:26:37.875003"], ["updated_at", "2018-12-07 01:26:37.875003"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10018], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7558” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7558"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7558], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7558')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10018], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.7558” for 127.0.0.1 at 2018-12-06 23:26:37 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$DQgbIIycQvqwviP.0IyG8u2fbF4ds1QOEpiX.rpzsCBpBXPS0bA9K"], ["created_at", "2018-12-07 01:27:01.340610"], ["updated_at", "2018-12-07 01:27:01.340610"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (117.3ms)

Completed 200 OK in 130ms (Views: 122.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:27:01.498784"], ["last_sign_in_at", "2018-12-07 01:27:01.498784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:27:01.499293"], ["id", 10019]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10019], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:27:01.522614"], ["updated_at", "2018-12-07 01:27:01.522614"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:27:01.524172"], ["updated_at", "2018-12-07 01:27:01.524172"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10019], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7560” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7560"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7560], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7560')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10019], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7560” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10019], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7560 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7560], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10019], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10019], ["room_id", 7560], ["created_at", "2018-12-07 01:27:01.583501"], ["updated_at", "2018-12-07 01:27:01.583501"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 19ms (ActiveRecord: 2.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10019], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$xxcy1BkVtnx4z6421QTmWOsgB4UAPINfP/QyeAX9EkqTxoTghac0y"], ["created_at", "2018-12-07 01:27:01.599434"], ["updated_at", "2018-12-07 01:27:01.599434"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:27:01.611782"], ["last_sign_in_at", "2018-12-07 01:27:01.611782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:27:01.612232"], ["id", 10020]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10020], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:27:01.619454"], ["updated_at", "2018-12-07 01:27:01.619454"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:27:01.620681"], ["updated_at", "2018-12-07 01:27:01.620681"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10020], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7562” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7562"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7562], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7562')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10020], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.7ms) Started POST “/appointments.7562” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10020], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7562 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:27:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10020], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UVs3IBmUJWdBOjTsYwbhO.SuOnd/3aZIBxxx93Bwd0OqU4Uzw53Wy"], ["created_at", "2018-12-07 01:27:09.964670"], ["updated_at", "2018-12-07 01:27:09.964670"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:27:09 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.7ms)
Rendered users/sessions/new.html.erb within layouts/application (105.0ms)

Completed 200 OK in 118ms (Views: 109.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:27:10.108946"], ["last_sign_in_at", "2018-12-07 01:27:10.108946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:27:10.109457"], ["id", 10021]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10021], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:27:10.132802"], ["updated_at", "2018-12-07 01:27:10.132802"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10021], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7564” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7564"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7564], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7564')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10021], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7564” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10021], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7564 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7564], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10021], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10021], ["room_id", 7564], ["created_at", "2018-12-07 01:27:10.193546"], ["updated_at", "2018-12-07 01:27:10.193546"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 21ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10021], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$cLQt5Fade.YkhpS1lTnfEeLjed6FeWX/lG7E7/DXBTM02TOAqxB7e"], ["created_at", "2018-12-07 01:27:10.229394"], ["updated_at", "2018-12-07 01:27:10.229394"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:27:10.245078"], ["last_sign_in_at", "2018-12-07 01:27:10.245078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:27:10.245595"], ["id", 10022]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10022], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:27:10.256725"], ["updated_at", "2018-12-07 01:27:10.256725"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7565], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10022], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10022], ["room_id", 7565], ["created_at", "2018-12-07 01:27:10.262000"], ["updated_at", "2018-12-07 01:27:10.262000"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10022], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/7565” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7565"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7565], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7565')
Rendered appointments/show.html.erb within layouts/application (3.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10022], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.7565” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10022], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7565 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7565], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10022], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10022], ["room_id", 7565], ["created_at", "2018-12-07 01:27:10.295410"], ["updated_at", "2018-12-07 01:27:10.295410"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:27:10 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10022], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$f6hkM258SbjeDi2A5ODNDefWmD1OmZT/SN5jEosc3tuKWI2hFaSu2"], ["created_at", "2018-12-07 01:27:53.047259"], ["updated_at", "2018-12-07 01:27:53.047259"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (119.0ms)

Completed 200 OK in 132ms (Views: 123.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:27:53.207271"], ["last_sign_in_at", "2018-12-07 01:27:53.207271"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:27:53.207783"], ["id", 10023]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10023], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:27:53.231742"], ["updated_at", "2018-12-07 01:27:53.231742"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10023], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7566” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7566"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7566], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7566')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10023], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.8ms) Started POST “/appointments.7566” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10023], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7566 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7566], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10023], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10023], ["room_id", 7566], ["created_at", "2018-12-07 01:27:53.287733"], ["updated_at", "2018-12-07 01:27:53.287733"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10023], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$W3bbUZgE6XTElZXamBRVBuAK0HBdMGVs39mMTAn.cGMCJirwO9rUy"], ["created_at", "2018-12-07 01:27:53.303089"], ["updated_at", "2018-12-07 01:27:53.303089"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:27:53.314872"], ["last_sign_in_at", "2018-12-07 01:27:53.314872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:27:53.315363"], ["id", 10024]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10024], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:27:53.323865"], ["updated_at", "2018-12-07 01:27:53.323865"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7567], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10024], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10024], ["room_id", 7567], ["created_at", "2018-12-07 01:27:53.328298"], ["updated_at", "2018-12-07 01:27:53.328298"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10024], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7567” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7567"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7567], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7567')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10024], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7567” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10024], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7567 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7567], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10024], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10024], ["room_id", 7567], ["created_at", "2018-12-07 01:27:53.357275"], ["updated_at", "2018-12-07 01:27:53.357275"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:27:53 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10024], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$PSDIB.l.e/JwVuzn/wgA6.lAuRHSbndntOSlldjSo2KmukqEw1ztm"], ["created_at", "2018-12-07 01:28:01.364161"], ["updated_at", "2018-12-07 01:28:01.364161"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.2ms)
Rendered users/sessions/new.html.erb within layouts/application (107.4ms)

Completed 200 OK in 120ms (Views: 112.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:28:01.511539"], ["last_sign_in_at", "2018-12-07 01:28:01.511539"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:28:01.512043"], ["id", 10025]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10025], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:28:01.535248"], ["updated_at", "2018-12-07 01:28:01.535248"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:28:01.536845"], ["updated_at", "2018-12-07 01:28:01.536845"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10025], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7568” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7568"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7568], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7568')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10025], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.8ms) Started POST “/appointments.7568” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10025], ["LIMIT", 1]]
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7568 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7568], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10025], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10025], ["room_id", 7568], ["created_at", "2018-12-07 01:28:01.597808"], ["updated_at", "2018-12-07 01:28:01.597808"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 21ms (ActiveRecord: 2.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10025], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$FCvcVPgjJJP7z3w1e6Zj8uXKPRDAs6l75LUh8e1Tf0ZsDNgQ3hmxW"], ["created_at", "2018-12-07 01:28:01.613690"], ["updated_at", "2018-12-07 01:28:01.613690"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:28:01.644895"], ["last_sign_in_at", "2018-12-07 01:28:01.644895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:28:01.645353"], ["id", 10026]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10026], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:28:01.654481"], ["updated_at", "2018-12-07 01:28:01.654481"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:28:01.656047"], ["updated_at", "2018-12-07 01:28:01.656047"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10026], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.5ms) Started GET “/appointments/7570” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7570"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7570], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7570')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10026], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms) Started POST “/appointments.7570” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10026], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7570 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:28:01 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10026], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.6ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AWrx/Q2mZZhUxX9u2YMOHe/.djCn4dB4Fjw7pJFss2w68e92SCLLK"], ["created_at", "2018-12-07 01:28:08.281348"], ["updated_at", "2018-12-07 01:28:08.281348"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KqnMwsGTbtkRAO9KVO4BI.D/Lh1zKouH/D7ELBf9YfYHsQahWFcoG"], ["created_at", "2018-12-07 01:28:08.287596"], ["updated_at", "2018-12-07 01:28:08.287596"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.302793"], ["updated_at", "2018-12-07 01:28:08.302793"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7572], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10028], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10028], ["room_id", 7572], ["created_at", "2018-12-07 01:28:08.340476"], ["updated_at", "2018-12-07 01:28:08.340476"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3879"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3879], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7572], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10028], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 219.9ms Sent mail to 123@123.com (6.9ms) Date: Thu, 06 Dec 2018 23:28:08 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cca890276_40d02ab730d825f4361f7@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cca88f058_40d02ab730d825f43604f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cca88f058_40d02ab730d825f43604f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cca88f058_40d02ab730d825f43604f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cca88f058_40d02ab730d825f43604f–

Completed 302 Found in 243ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LGJBkA5UjuQw3fSlG6qMne4j0PeEq/qKe/b4rOMG1QLOATQLnSZ4y"], ["created_at", "2018-12-07 01:28:08.598168"], ["updated_at", "2018-12-07 01:28:08.598168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qhsI1eWc0V/fcZkw5HmGD.2pzqvdMC3hM3SDb.0moooI1lXZR6QcG"], ["created_at", "2018-12-07 01:28:08.601464"], ["updated_at", "2018-12-07 01:28:08.601464"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.603006"], ["updated_at", "2018-12-07 01:28:08.603006"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7573], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10030], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10030], ["room_id", 7573], ["created_at", "2018-12-07 01:28:08.605910"], ["updated_at", "2018-12-07 01:28:08.605910"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3880"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3880], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7573], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10030], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:28:08.610400"], ["id", 3880]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:28:08 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cca895ff2_40d02ab730d825f436371@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cca895a71_40d02ab730d825f436270";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cca895a71_40d02ab730d825f436270 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cca895a71_40d02ab730d825f436270 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cca895a71_40d02ab730d825f436270–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FQ.XetHhgFEbJ22NElpB2Onx5ERUffG1s6GA64fxQLr6WdSZNbPgi"], ["created_at", "2018-12-07 01:28:08.619733"], ["updated_at", "2018-12-07 01:28:08.619733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$32x.0nhw8TAlPY9PBLJc..xYV2EhM9BnXYU7jk8et7DoXkKKH0ef2"], ["created_at", "2018-12-07 01:28:08.623136"], ["updated_at", "2018-12-07 01:28:08.623136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.625112"], ["updated_at", "2018-12-07 01:28:08.625112"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7574], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10032], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10032], ["room_id", 7574], ["created_at", "2018-12-07 01:28:08.628648"], ["updated_at", "2018-12-07 01:28:08.628648"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QjnqZEeNXFIdu5i92UwMF.1NlOGWLTeHoLgjyEdxrVwNk2ggpWm/K"], ["created_at", "2018-12-07 01:28:08.635207"], ["updated_at", "2018-12-07 01:28:08.635207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DOvqnkjcrNNk9I9i6/irQO9tBx2ghTOqRwnBLdf3X.KzjCx7yzwcS"], ["created_at", "2018-12-07 01:28:08.638453"], ["updated_at", "2018-12-07 01:28:08.638453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.639935"], ["updated_at", "2018-12-07 01:28:08.639935"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7575], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10034], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10034], ["room_id", 7575], ["created_at", "2018-12-07 01:28:08.642929"], ["updated_at", "2018-12-07 01:28:08.642929"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3882], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$aiQAyuVoOb1Tp89FmPjs9eno9u6g3ZCGeK75o8.k0C6B1oveFgBZ2"], ["created_at", "2018-12-07 01:28:08.648207"], ["updated_at", "2018-12-07 01:28:08.648207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10035"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "H28E6bZ0HM7K9QxKIAR0VA"], ["updated_at", "2018-12-07 01:28:08.651501"], ["id", 10035]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:28:08.653022"], ["reset_sent_at", "2018-12-07 01:28:08.652676"], ["id", 10035]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:28:08 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09cca8a133f_40d02ab730d825f436664@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cca8a0d55_40d02ab730d825f4365c1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cca8a0d55_40d02ab730d825f4365c1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/H28E6bZ0HM7K9QxKIAR0VA/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09cca8a0d55_40d02ab730d825f4365c1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/H28E6bZ0HM7K9QxKIAR0VA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cca8a0d55_40d02ab730d825f4365c1–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$wHydibSYDxoc3q73c1yNdOxxon4n5FfKFxfOMtTVmFitrxoiXHpj6"], ["created_at", "2018-12-07 01:28:08.666028"], ["updated_at", "2018-12-07 01:28:08.666028"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$NtpxKEMoDqYxtSV9eLKAZOPbY5xn/FyzMJKchTirx.HU7JCa03zg6"], ["created_at", "2018-12-07 01:28:08.674705"], ["updated_at", "2018-12-07 01:28:08.674705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10037"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$Dmpm7.etrJhAv2PdIe6T5uIsL1HGcPvN.pW0qTewY.FRGsTzeQZRq"], ["updated_at", "2018-12-07 01:28:08.678709"], ["id", 10037]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$dK/lu2Q.3JDz4TeOU3/Dd.yxQcggvbvgFi6SoEFzFVucgkafzejzi"], ["created_at", "2018-12-07 01:28:08.683322"], ["updated_at", "2018-12-07 01:28:08.683322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10038"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Bm9yeqiIXc..WOaOsJXQsOT.nZX9zJCV8UH2RiWU1jdbDadxw72lq"], ["created_at", "2018-12-07 01:28:08.691590"], ["updated_at", "2018-12-07 01:28:08.691590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10039"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$AnZeeNhh3dJOSoQgB/f0F.iPR0jJRJDG7uNOgWclrRdabtXA7uulu"], ["created_at", "2018-12-07 01:28:08.705048"], ["updated_at", "2018-12-07 01:28:08.705048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10040"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$WpLzxWaOBgYAPSfcDBKbdu0ieVjnW6kXK18RnePexLQq81QO.xruS"], ["created_at", "2018-12-07 01:28:08.713522"], ["updated_at", "2018-12-07 01:28:08.713522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10041"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oFMwoiYSS6bg1KaGGxIh5.PP68gRRUhFurYOgU4vJMNVQi/CbZRSy"], ["created_at", "2018-12-07 01:28:08.754627"], ["updated_at", "2018-12-07 01:28:08.754627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sJV/I4juiw5YS5XluMM.yesA8vLKR8Jpu/X/s/vptXX8apCfardHC"], ["created_at", "2018-12-07 01:28:08.761101"], ["updated_at", "2018-12-07 01:28:08.761101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$U8zDMx2bLq4t6QUiMp4QWunt8zpj09xB3xzHNClUKPg4rqEKj1wdC"], ["created_at", "2018-12-07 01:28:08.767813"], ["updated_at", "2018-12-07 01:28:08.767813"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.769249"], ["updated_at", "2018-12-07 01:28:08.769249"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7576], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10044], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10044], ["room_id", 7576], ["created_at", "2018-12-07 01:28:08.772087"], ["updated_at", "2018-12-07 01:28:08.772087"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZKy5sUXJ4fhTgLiU8NL.Mua.bbGnkk55erKbMKM2GYeh.kh68kZc."], ["created_at", "2018-12-07 01:28:08.778242"], ["updated_at", "2018-12-07 01:28:08.778242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.779888"], ["updated_at", "2018-12-07 01:28:08.779888"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7577], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10045], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10045], ["room_id", 7577], ["created_at", "2018-12-07 01:28:08.783241"], ["updated_at", "2018-12-07 01:28:08.783241"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MydKbAJcpUDGn/ODiHA1Ye1IAzKfhGA70Tgrqr9xGRgzkM3b0Abwi"], ["created_at", "2018-12-07 01:28:08.805565"], ["updated_at", "2018-12-07 01:28:08.805565"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.807153"], ["updated_at", "2018-12-07 01:28:08.807153"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.814121"], ["last_sign_in_at", "2018-12-07 01:28:08.814121"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.814734"], ["id", 10046]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7578"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7578 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7578], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10046], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10046], ["room_id", 7578], ["created_at", "2018-12-07 01:28:08.822595"], ["updated_at", "2018-12-07 01:28:08.822595"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7578], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ak.HgPWDIboa33GeVYZpre7qwF.0fbfHKzxAx0wyWGeeUm1N7R0jO"], ["created_at", "2018-12-07 01:28:08.828795"], ["updated_at", "2018-12-07 01:28:08.828795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.830284"], ["updated_at", "2018-12-07 01:28:08.830284"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.832082"], ["last_sign_in_at", "2018-12-07 01:28:08.832082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.832447"], ["id", 10047]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7579"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7579 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7579], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10047], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10047], ["room_id", 7579], ["created_at", "2018-12-07 01:28:08.836961"], ["updated_at", "2018-12-07 01:28:08.836961"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lpQoebIBrgucxwOdZM0FtOSIMd42DdB8//YJgba6cGsefrxUEmGFe"], ["created_at", "2018-12-07 01:28:08.842453"], ["updated_at", "2018-12-07 01:28:08.842453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.844581"], ["updated_at", "2018-12-07 01:28:08.844581"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.847142"], ["last_sign_in_at", "2018-12-07 01:28:08.847142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.847578"], ["id", 10048]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7580", "user_id"=>"10048"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7580 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7580], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10048], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10048], ["room_id", 7580], ["created_at", "2018-12-07 01:28:08.852485"], ["updated_at", "2018-12-07 01:28:08.852485"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7580", "user_id"=>"10048"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10048], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7580 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7580], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10048], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10048], ["room_id", 7580], ["created_at", "2018-12-07 01:28:08.859081"], ["updated_at", "2018-12-07 01:28:08.859081"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vGXskTbp6MoSGW2T1NcrtOfdRVUzHzLbUSs/C6hCkTQCZ73XyDniW"], ["created_at", "2018-12-07 01:28:08.864348"], ["updated_at", "2018-12-07 01:28:08.864348"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.865848"], ["updated_at", "2018-12-07 01:28:08.865848"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.867989"], ["last_sign_in_at", "2018-12-07 01:28:08.867989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.868419"], ["id", 10049]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7581", "user_id"=>"10049"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7581 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7581], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10049], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10049], ["room_id", 7581], ["created_at", "2018-12-07 01:28:08.873147"], ["updated_at", "2018-12-07 01:28:08.873147"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7581", "user_id"=>"10049"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10049], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7581 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7581], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10049], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10049], ["room_id", 7581], ["created_at", "2018-12-07 01:28:08.880609"], ["updated_at", "2018-12-07 01:28:08.880609"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7581], ["user_id", 10049], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RIlfbK/cmN8xcTqhcV/D3OlcDrCVudMBLpyDXAdQR8La.pV/WlG3y"], ["created_at", "2018-12-07 01:28:08.886823"], ["updated_at", "2018-12-07 01:28:08.886823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.888357"], ["updated_at", "2018-12-07 01:28:08.888357"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.890586"], ["last_sign_in_at", "2018-12-07 01:28:08.890586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.891012"], ["id", 10050]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7582", "user_id"=>"10050"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7582 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7582], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10050], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10050], ["room_id", 7582], ["created_at", "2018-12-07 01:28:08.895746"], ["updated_at", "2018-12-07 01:28:08.895746"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7582", "user_id"=>"10050"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10050], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7582 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7582], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10050], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10050], ["room_id", 7582], ["created_at", "2018-12-07 01:28:08.902069"], ["updated_at", "2018-12-07 01:28:08.902069"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7582], ["user_id", 10050], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8bA7xC43xPnMSoi0NVdqPO2TItER6yozb7pQRJn1dyIMoxUIRnC.y"], ["created_at", "2018-12-07 01:28:08.908461"], ["updated_at", "2018-12-07 01:28:08.908461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.910142"], ["updated_at", "2018-12-07 01:28:08.910142"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.912024"], ["last_sign_in_at", "2018-12-07 01:28:08.912024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.912408"], ["id", 10051]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7583"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7583], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JgRI1KLlDG.29ixwoRYYVO3YHOW/vryGze2UK7Nw.jJsifCHCuOLi"], ["created_at", "2018-12-07 01:28:08.919463"], ["updated_at", "2018-12-07 01:28:08.919463"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.920989"], ["updated_at", "2018-12-07 01:28:08.920989"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.922831"], ["last_sign_in_at", "2018-12-07 01:28:08.922831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.923191"], ["id", 10052]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7584"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DrRCysXjGIe7/tiFHhv.GeYBsIBtAceahIVBlQu96bOpoka5KRl9K"], ["created_at", "2018-12-07 01:28:08.929920"], ["updated_at", "2018-12-07 01:28:08.929920"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:08.931655"], ["updated_at", "2018-12-07 01:28:08.931655"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7585], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10053], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10053], ["room_id", 7585], ["created_at", "2018-12-07 01:28:08.934739"], ["updated_at", "2018-12-07 01:28:08.934739"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7585” for 127.0.0.1 at 2018-12-06 23:28:08 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:08.936531"], ["last_sign_in_at", "2018-12-07 01:28:08.936531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:08.936892"], ["id", 10053]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7585"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7585], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7585')
Rendered appointments/show.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-user.html.erb (3.4ms)

Completed 200 OK in 166ms (Views: 163.8ms | ActiveRecord: 0.5ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZE/wBx7Hw0kg/lJ6FQTgRe7q0DZ9xiaX8HIXXJY/zd9QTWW.uj3c."], ["created_at", "2018-12-07 01:28:09.112275"], ["updated_at", "2018-12-07 01:28:09.112275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.115487"], ["updated_at", "2018-12-07 01:28:09.115487"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7586], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10054], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10054], ["room_id", 7586], ["created_at", "2018-12-07 01:28:09.121825"], ["updated_at", "2018-12-07 01:28:09.121825"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3894/edit” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.126551"], ["last_sign_in_at", "2018-12-07 01:28:09.126551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.127027"], ["id", 10054]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3894"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3894], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MrAPfqXdLto6cmVvobqcrOsAsjQXoa5iR2h0VGCd9P2iqCgzU.ZTS"], ["created_at", "2018-12-07 01:28:09.148800"], ["updated_at", "2018-12-07 01:28:09.148800"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.151577"], ["last_sign_in_at", "2018-12-07 01:28:09.151577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.152064"], ["id", 10055]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RgzB36sLujvsp9f03MM95uZPMnwhrr2vBmvM8YnrHe0KqMCJV91.S"], ["created_at", "2018-12-07 01:28:09.177244"], ["updated_at", "2018-12-07 01:28:09.177244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.180581"], ["updated_at", "2018-12-07 01:28:09.180581"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7587], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10056], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10056], ["room_id", 7587], ["created_at", "2018-12-07 01:28:09.186744"], ["updated_at", "2018-12-07 01:28:09.186744"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7587], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10056], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10056], ["room_id", 7587], ["created_at", "2018-12-07 01:28:09.192288"], ["updated_at", "2018-12-07 01:28:09.192288"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.194610"], ["last_sign_in_at", "2018-12-07 01:28:09.194610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.195519"], ["id", 10056]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10056]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 26ms (Views: 16.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zAlo9XDXaz/mXCD4z1qAdOLNOtN4Y65Cg4Ose2F6z2gu3cr0xuSwy"], ["created_at", "2018-12-07 01:28:09.230113"], ["updated_at", "2018-12-07 01:28:09.230113"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.232773"], ["updated_at", "2018-12-07 01:28:09.232773"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7588], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10057], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10057], ["room_id", 7588], ["created_at", "2018-12-07 01:28:09.236797"], ["updated_at", "2018-12-07 01:28:09.236797"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7588], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10057], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10057], ["room_id", 7588], ["created_at", "2018-12-07 01:28:09.240233"], ["updated_at", "2018-12-07 01:28:09.240233"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.242088"], ["last_sign_in_at", "2018-12-07 01:28:09.242088"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.242539"], ["id", 10057]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10057]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zplJRXB7PQ2tPgnDmboFKO8.PondGz6XhnCp.Btar5.ur6FM8RvwK"], ["created_at", "2018-12-07 01:28:09.253598"], ["updated_at", "2018-12-07 01:28:09.253598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.255483"], ["updated_at", "2018-12-07 01:28:09.255483"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7589], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10058], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10058], ["room_id", 7589], ["created_at", "2018-12-07 01:28:09.258992"], ["updated_at", "2018-12-07 01:28:09.258992"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3899” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.260743"], ["last_sign_in_at", "2018-12-07 01:28:09.260743"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.261177"], ["id", 10058]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3899"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3899], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3899]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PlKpvp/SGyAS7JPBUSpZf.QS/7Ei.UR.WKNHKaMtRPhzUU80xfIpe"], ["created_at", "2018-12-07 01:28:09.271870"], ["updated_at", "2018-12-07 01:28:09.271870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.273722"], ["updated_at", "2018-12-07 01:28:09.273722"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$667vGZiA0Gd/KIVeGi2WfuHQC3X6LgcWscKQBnebInsau6yfqFmfm"], ["created_at", "2018-12-07 01:28:09.277224"], ["updated_at", "2018-12-07 01:28:09.277224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7590], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10060], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10060], ["room_id", 7590], ["created_at", "2018-12-07 01:28:09.280485"], ["updated_at", "2018-12-07 01:28:09.280485"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3900” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.282409"], ["last_sign_in_at", "2018-12-07 01:28:09.282409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.282783"], ["id", 10059]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3900"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3900], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7590], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10060], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yoF6XJifdj0Eet83Kl820.Bj8svQFbaCdVjANx825k34eDSZFbzQG"], ["created_at", "2018-12-07 01:28:09.292997"], ["updated_at", "2018-12-07 01:28:09.292997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.295294"], ["updated_at", "2018-12-07 01:28:09.295294"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2NimBJpGAvqxRzM2/9rQW.6FKSf/YmeAubUhZTRxjtrzqpSblMbVO"], ["created_at", "2018-12-07 01:28:09.298919"], ["updated_at", "2018-12-07 01:28:09.298919"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7591], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10062], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10062], ["room_id", 7591], ["created_at", "2018-12-07 01:28:09.302093"], ["updated_at", "2018-12-07 01:28:09.302093"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3901” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.304018"], ["last_sign_in_at", "2018-12-07 01:28:09.304018"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.304385"], ["id", 10061]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3901"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3901], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7591], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10062], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.pwttatTt9o9NibNjjI63OrUaDfdu/gIduSpnCKmC8oiDtZaILNRC"], ["created_at", "2018-12-07 01:28:09.313436"], ["updated_at", "2018-12-07 01:28:09.313436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.315028"], ["updated_at", "2018-12-07 01:28:09.315028"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dSttjoFwG85yu3AUf187h.IhEK1n0Os6Q6C9mqBmet5icYxKb9u8O"], ["created_at", "2018-12-07 01:28:09.318147"], ["updated_at", "2018-12-07 01:28:09.318147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7592], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10064], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10064], ["room_id", 7592], ["created_at", "2018-12-07 01:28:09.321151"], ["updated_at", "2018-12-07 01:28:09.321151"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3902” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.323178"], ["last_sign_in_at", "2018-12-07 01:28:09.323178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.323701"], ["id", 10063]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3902"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3902], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7592], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10064], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:28:09.328622"], ["id", 3902]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms Sent mail to 123@123.com (2.4ms) Date: Thu, 06 Dec 2018 23:28:09 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cca9513a8_40d02ab730d825f43731f@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cca950dcd_40d02ab730d825f4372e3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cca950dcd_40d02ab730d825f4372e3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cca950dcd_40d02ab730d825f4372e3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cca950dcd_40d02ab730d825f4372e3–

Completed 302 Found in 9ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Jiv1LA.kwkFQYw1dOGPePOricWizfhHGSdvZDHtXmi44DDKWBdOvS"], ["created_at", "2018-12-07 01:28:09.339104"], ["updated_at", "2018-12-07 01:28:09.339104"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.340748"], ["updated_at", "2018-12-07 01:28:09.340748"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IYJkHqTX0PKjJjMAz9h3jOxUrNYls3uB/M4ZWxJdVqj1E4Q4xNrQi"], ["created_at", "2018-12-07 01:28:09.343733"], ["updated_at", "2018-12-07 01:28:09.343733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7593], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10066], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10066], ["room_id", 7593], ["created_at", "2018-12-07 01:28:09.346554"], ["updated_at", "2018-12-07 01:28:09.346554"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:28:09.347822"], ["id", 3903]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7593], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10066], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10066], ["room_id", 7593], ["created_at", "2018-12-07 01:28:09.350223"], ["updated_at", "2018-12-07 01:28:09.350223"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:28:09.351413"], ["id", 3904]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.352731"], ["last_sign_in_at", "2018-12-07 01:28:09.352731"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.353048"], ["id", 10065]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10066], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7593], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10066], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7593], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.9ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WOKkvM59ZyLgBh7kjhu5zuWx1lHJNM7DUj8ch.drhbg2jRbXk.dw6"], ["created_at", "2018-12-07 01:28:09.367110"], ["updated_at", "2018-12-07 01:28:09.367110"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.368767"], ["updated_at", "2018-12-07 01:28:09.368767"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$x7GqZkcfInijuYcBN9jNEuULyG9wzP.7CGDWPZ3bltmwbLHd9l8Gu"], ["created_at", "2018-12-07 01:28:09.371961"], ["updated_at", "2018-12-07 01:28:09.371961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7594], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10068], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10068], ["room_id", 7594], ["created_at", "2018-12-07 01:28:09.374911"], ["updated_at", "2018-12-07 01:28:09.374911"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:28:09.376318"], ["id", 3905]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7594], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10068], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10068], ["room_id", 7594], ["created_at", "2018-12-07 01:28:09.379020"], ["updated_at", "2018-12-07 01:28:09.379020"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:28:09.380328"], ["id", 3906]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.381732"], ["last_sign_in_at", "2018-12-07 01:28:09.381732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.382099"], ["id", 10067]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10068], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7594], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10068], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7594], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7UwV0QMTz8UrZJikln0ErOnNFWSxq0TD6cCeFEdAH0fJ7z1esPm3q"], ["created_at", "2018-12-07 01:28:09.395811"], ["updated_at", "2018-12-07 01:28:09.395811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.397582"], ["last_sign_in_at", "2018-12-07 01:28:09.397582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.397914"], ["id", 10069]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (10.1ms)
Rendered layouts/_header-admin.html.erb (2.3ms)

Completed 200 OK in 17ms (Views: 16.5ms | ActiveRecord: 0.0ms)

 (0.4ms)  ROLLBACK
 (0.3ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.7ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XHbT5PvbC7YZa1oqOG//3OHbWQF6T6CM3taj9u0Y.d35kDP.wbo02"], ["created_at", "2018-12-07 01:28:09.432859"], ["updated_at", "2018-12-07 01:28:09.432859"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.7ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.438539"], ["last_sign_in_at", "2018-12-07 01:28:09.438539"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.439795"], ["id", 10070]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qxkMvP5zh4ywOeFa/jxNbuUAGJ2uXX5/C6wDfKtEAL9yctZ/FJ6d."], ["created_at", "2018-12-07 01:28:09.453283"], ["updated_at", "2018-12-07 01:28:09.453283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.456079"], ["last_sign_in_at", "2018-12-07 01:28:09.456079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.456627"], ["id", 10071]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IZSo1xY7JrCpF2IhIRAdGOYOf6N7n/EIP/XOWI4Eud42NRXMEf7z."], ["created_at", "2018-12-07 01:28:09.468528"], ["updated_at", "2018-12-07 01:28:09.468528"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.470327"], ["last_sign_in_at", "2018-12-07 01:28:09.470327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.470743"], ["id", 10072]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sBCaFMMc/EM8xO8VuUqBZuCrfI4aI1q487dhvOndWLSOSrl3lDJ2S"], ["created_at", "2018-12-07 01:28:09.485549"], ["updated_at", "2018-12-07 01:28:09.485549"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.487597"], ["updated_at", "2018-12-07 01:28:09.487597"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7595” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.489448"], ["last_sign_in_at", "2018-12-07 01:28:09.489448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.489887"], ["id", 10073]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7595"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7595], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HecwaQwQIOBD1rJDaSVP..I1gVxh7CskgqRQbsS.0bNKaDNA09gIG"], ["created_at", "2018-12-07 01:28:09.499534"], ["updated_at", "2018-12-07 01:28:09.499534"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.501205"], ["updated_at", "2018-12-07 01:28:09.501205"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7596” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.502750"], ["last_sign_in_at", "2018-12-07 01:28:09.502750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.503151"], ["id", 10074]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7596"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7596], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.509689"], ["updated_at", "2018-12-07 01:28:09.509689"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7597” for 127.0.0.1 at 2018-12-06 23:28:09 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7597"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pqATjECCuypPJICoXP28Cu/Q7hxJNpwe.5wi1BIbldUMU45lmDiAW"], ["created_at", "2018-12-07 01:28:09.516017"], ["updated_at", "2018-12-07 01:28:09.516017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.517762"], ["updated_at", "2018-12-07 01:28:09.517762"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7598” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.519753"], ["last_sign_in_at", "2018-12-07 01:28:09.519753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.520224"], ["id", 10075]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7598"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.528761"], ["updated_at", "2018-12-07 01:28:09.528761"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7599” for 127.0.0.1 at 2018-12-06 23:28:09 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7599"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fGHDEApphjkFudYn7cBNY.mlrjDTR6AbXEjbqzooZmeY4/weAt5RS"], ["created_at", "2018-12-07 01:28:09.535283"], ["updated_at", "2018-12-07 01:28:09.535283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.536904"], ["updated_at", "2018-12-07 01:28:09.536904"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7600/edit” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.538379"], ["last_sign_in_at", "2018-12-07 01:28:09.538379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.538786"], ["id", 10076]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7600"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7600], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9v/uiyhGzHhb05UEUyYuG.tiq.IROQ78PtywBSGbVgnNHzla6q8re"], ["created_at", "2018-12-07 01:28:09.549597"], ["updated_at", "2018-12-07 01:28:09.549597"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.551518"], ["updated_at", "2018-12-07 01:28:09.551518"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7601/edit” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.552998"], ["last_sign_in_at", "2018-12-07 01:28:09.552998"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.553345"], ["id", 10077]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7601"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7601], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.561174"], ["updated_at", "2018-12-07 01:28:09.561174"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7602” for 127.0.0.1 at 2018-12-06 23:28:09 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7602"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/XLsVA0WBxHnUSmgFoVAJ.BICGSocTlkdAke6982LkWXDNqaohXhS"], ["created_at", "2018-12-07 01:28:09.567536"], ["updated_at", "2018-12-07 01:28:09.567536"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.569698"], ["last_sign_in_at", "2018-12-07 01:28:09.569698"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.570048"], ["id", 10078]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.572492"], ["updated_at", "2018-12-07 01:28:09.572492"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SBQ1Wn3skjTuPm5QK/n3/OZ5e6FG8Ky05q542GO.0mU56v5ab0ICy"], ["created_at", "2018-12-07 01:28:09.578346"], ["updated_at", "2018-12-07 01:28:09.578346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.580666"], ["last_sign_in_at", "2018-12-07 01:28:09.580666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.581224"], ["id", 10079]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.583996"], ["updated_at", "2018-12-07 01:28:09.583996"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JGUlHSTpP7EhxhPF/YYVSu/EeSTwSz/JtzRkwkCCHpkifQOhgRrJG"], ["created_at", "2018-12-07 01:28:09.589797"], ["updated_at", "2018-12-07 01:28:09.589797"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.592083"], ["last_sign_in_at", "2018-12-07 01:28:09.592083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.592498"], ["id", 10080]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EOKy3Qo5wuDof4ts5GLxpe4lm9nmrH/K7a/RmVBlRjf3zDKx2Tide"], ["created_at", "2018-12-07 01:28:09.600063"], ["updated_at", "2018-12-07 01:28:09.600063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.602000"], ["last_sign_in_at", "2018-12-07 01:28:09.602000"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.602364"], ["id", 10081]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Il5al4bbu0p286w1D8TtteoAX2UQlIjA5ltBYOq45raVIoMVUe33e"], ["created_at", "2018-12-07 01:28:09.609888"], ["updated_at", "2018-12-07 01:28:09.609888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.612234"], ["last_sign_in_at", "2018-12-07 01:28:09.612234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.612717"], ["id", 10082]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WFBPdFfqCSP7rwhCHpsU9ed35nVGMStZxyWgFI0H2svHFQwM8P74O"], ["created_at", "2018-12-07 01:28:09.619176"], ["updated_at", "2018-12-07 01:28:09.619176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.620718"], ["updated_at", "2018-12-07 01:28:09.620718"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7605” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.622519"], ["last_sign_in_at", "2018-12-07 01:28:09.622519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.622868"], ["id", 10083]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7605"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7605], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:28:09.625745"], ["id", 7605]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7605 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$he3DPaUX7ycuVye3qNDRG.WeOKGgaWpR4plap5I5HIh1AJebvBLru"], ["created_at", "2018-12-07 01:28:09.631307"], ["updated_at", "2018-12-07 01:28:09.631307"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.632847"], ["updated_at", "2018-12-07 01:28:09.632847"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7606” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.634604"], ["last_sign_in_at", "2018-12-07 01:28:09.634604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.634966"], ["id", 10084]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7606"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7606], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:28:09.637742"], ["id", 7606]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7606 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9YBaE2GTm1HgcPRWpJpvaOU1zKeeWNFFj6vgWsPZrgtPsoUXsgxu2"], ["created_at", "2018-12-07 01:28:09.643139"], ["updated_at", "2018-12-07 01:28:09.643139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.645051"], ["updated_at", "2018-12-07 01:28:09.645051"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7607” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.646919"], ["last_sign_in_at", "2018-12-07 01:28:09.646919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.647271"], ["id", 10085]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7607"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7607], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YOIETOcYpP0YiHKQfD9qeOFn2wHdy16h9amT235u32sF15dqytZzy"], ["created_at", "2018-12-07 01:28:09.658357"], ["updated_at", "2018-12-07 01:28:09.658357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.659884"], ["updated_at", "2018-12-07 01:28:09.659884"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7608” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.661594"], ["last_sign_in_at", "2018-12-07 01:28:09.661594"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.661930"], ["id", 10086]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7608"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7608], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t1hMh24jBF.zabLKslrhveb.MtQMyPe1y4gPOv3TV79e8Aoqiwnpe"], ["created_at", "2018-12-07 01:28:09.672663"], ["updated_at", "2018-12-07 01:28:09.672663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.674966"], ["last_sign_in_at", "2018-12-07 01:28:09.674966"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.675524"], ["id", 10087]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OWUexf/M7xpuM9vAplXOoufj0Pyz6e3edXta0CiDlvFWeOO6tj1fq"], ["created_at", "2018-12-07 01:28:09.681929"], ["updated_at", "2018-12-07 01:28:09.681929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.683461"], ["updated_at", "2018-12-07 01:28:09.683461"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7609” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.684854"], ["last_sign_in_at", "2018-12-07 01:28:09.684854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.685184"], ["id", 10088]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7609"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7609], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7609]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zmdVGLxw0mQu8CcblHZEiOHwxJyjhYyr3MPCslcaAmJJ/9RT.l0au"], ["created_at", "2018-12-07 01:28:09.692373"], ["updated_at", "2018-12-07 01:28:09.692373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.693862"], ["updated_at", "2018-12-07 01:28:09.693862"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7610” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.695195"], ["last_sign_in_at", "2018-12-07 01:28:09.695195"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.695520"], ["id", 10089]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7610"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7610], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7610]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BdY5xQL/fmkJ5VKlTfhWfOiU88yMutCnigpkycXU9QKjEHzF5nqfq"], ["created_at", "2018-12-07 01:28:09.702356"], ["updated_at", "2018-12-07 01:28:09.702356"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.703837"], ["updated_at", "2018-12-07 01:28:09.703837"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7611” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.705250"], ["last_sign_in_at", "2018-12-07 01:28:09.705250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.705647"], ["id", 10090]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7611"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/UBwTlXZEyjt2tpi3gZGSuhXRnIwIwfsfC2GaWJZ3cguwx43cRI26"], ["created_at", "2018-12-07 01:28:09.712350"], ["updated_at", "2018-12-07 01:28:09.712350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.713851"], ["updated_at", "2018-12-07 01:28:09.713851"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7612” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.715207"], ["last_sign_in_at", "2018-12-07 01:28:09.715207"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.715540"], ["id", 10091]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7612"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1cW5a9sfbaUR.5UziIPlyeJUbxk8L8PCxtmetuQZTd2ZJM47S.7fO"], ["created_at", "2018-12-07 01:28:09.721214"], ["updated_at", "2018-12-07 01:28:09.721214"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.722752"], ["last_sign_in_at", "2018-12-07 01:28:09.722752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.723059"], ["id", 10092]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LowUTQ2RkMquf.hlVwvae.p1cyDQ/svmIhIsHILGT.OvgA0DG0KaC"], ["created_at", "2018-12-07 01:28:09.734069"], ["updated_at", "2018-12-07 01:28:09.734069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.735538"], ["updated_at", "2018-12-07 01:28:09.735538"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.736780"], ["updated_at", "2018-12-07 01:28:09.736780"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.737982"], ["updated_at", "2018-12-07 01:28:09.737982"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7613], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10093], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10093], ["room_id", 7613], ["created_at", "2018-12-07 01:28:09.741189"], ["updated_at", "2018-12-07 01:28:09.741189"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.742873"], ["last_sign_in_at", "2018-12-07 01:28:09.742873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.743211"], ["id", 10093]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vmwUu9YmSlKLpLVCqAMlJu4HU3SmBs35hFG0PmiCPfTo85c0NYCxi"], ["created_at", "2018-12-07 01:28:09.760476"], ["updated_at", "2018-12-07 01:28:09.760476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.762084"], ["updated_at", "2018-12-07 01:28:09.762084"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.763337"], ["updated_at", "2018-12-07 01:28:09.763337"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:28:09.764529"], ["updated_at", "2018-12-07 01:28:09.764529"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7616], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10094], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10094], ["room_id", 7616], ["created_at", "2018-12-07 01:28:09.767447"], ["updated_at", "2018-12-07 01:28:09.767447"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:28:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:28:09.769136"], ["last_sign_in_at", "2018-12-07 01:28:09.769136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:28:09.769539"], ["id", 10094]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jYDw.2BPYvM4rNzq1HehmupH04YrOspMi0d33F5cjp9CVcTz7HsWu"], ["created_at", "2018-12-07 01:30:09.341012"], ["updated_at", "2018-12-07 01:30:09.341012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$56u7/gPyEhf0cw9EX81rLOOXzC8abZyGH/J10SXE2dJWS2IuVm1g2"], ["created_at", "2018-12-07 01:30:09.346841"], ["updated_at", "2018-12-07 01:30:09.346841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.361499"], ["updated_at", "2018-12-07 01:30:09.361499"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7619], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10096], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10096], ["room_id", 7619], ["created_at", "2018-12-07 01:30:09.396389"], ["updated_at", "2018-12-07 01:30:09.396389"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3909"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3909], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7619], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10096], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 132.7ms Sent mail to 123@123.com (5.5ms) Date: Thu, 06 Dec 2018 23:30:09 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cd2188337_42f92aad3c3405f8294b7@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cd21874f4_42f92aad3c3405f829310";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cd21874f4_42f92aad3c3405f829310 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cd21874f4_42f92aad3c3405f829310 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cd21874f4_42f92aad3c3405f829310–

Completed 302 Found in 153ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6fMchc982f4iB0VH9fL0A.rw4dwR6D/7ZWbsgJ9EROWOiO1KNZsLe"], ["created_at", "2018-12-07 01:30:09.565046"], ["updated_at", "2018-12-07 01:30:09.565046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pSdDlEZE.tH5Q0rtdEh.eOFAhjTJ9FDVsnLfgkyK0k4OGo/YQycgS"], ["created_at", "2018-12-07 01:30:09.568325"], ["updated_at", "2018-12-07 01:30:09.568325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.569619"], ["updated_at", "2018-12-07 01:30:09.569619"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7620], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10098], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10098], ["room_id", 7620], ["created_at", "2018-12-07 01:30:09.572325"], ["updated_at", "2018-12-07 01:30:09.572325"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3910"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3910], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7620], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10098], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:30:09.576783"], ["id", 3910]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:30:09 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cd218dc3b_42f92aad3c3405f82964f@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cd218d6b9_42f92aad3c3405f829558";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cd218d6b9_42f92aad3c3405f829558 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cd218d6b9_42f92aad3c3405f829558 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cd218d6b9_42f92aad3c3405f829558–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fQ1IuO7UJe3N8LKcKt9HkeYovH54TxaFQ0Wk9e63x8safBuD.JYyK"], ["created_at", "2018-12-07 01:30:09.586048"], ["updated_at", "2018-12-07 01:30:09.586048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mIlga.D1PicUCTU2zuGJMOILmjWvoz1dRrSBQJebjM8.TfnVWWv7e"], ["created_at", "2018-12-07 01:30:09.589310"], ["updated_at", "2018-12-07 01:30:09.589310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.590866"], ["updated_at", "2018-12-07 01:30:09.590866"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7621], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10100], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10100], ["room_id", 7621], ["created_at", "2018-12-07 01:30:09.594339"], ["updated_at", "2018-12-07 01:30:09.594339"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y/kJjBrpTyJWirC15VxSDeESFVNrlv6fqSfrM1bWdVU4n7F5r9sRS"], ["created_at", "2018-12-07 01:30:09.600855"], ["updated_at", "2018-12-07 01:30:09.600855"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cS5e8fVM5UXLA2RL.x0BbuOrJC/2EwRyEj.5HbfYATKdUCQFmrQCm"], ["created_at", "2018-12-07 01:30:09.604038"], ["updated_at", "2018-12-07 01:30:09.604038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.605573"], ["updated_at", "2018-12-07 01:30:09.605573"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7622], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10102], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10102], ["room_id", 7622], ["created_at", "2018-12-07 01:30:09.608440"], ["updated_at", "2018-12-07 01:30:09.608440"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3912], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$3V.VxNcXCz5kvtQPOyhagu8sf3DOF/YKFuLxgozewNjchrIDuOLI2"], ["created_at", "2018-12-07 01:30:09.613789"], ["updated_at", "2018-12-07 01:30:09.613789"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10103"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "TiUQJCooNpawAe0_EI-N2w"], ["updated_at", "2018-12-07 01:30:09.617006"], ["id", 10103]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:30:09.618566"], ["reset_sent_at", "2018-12-07 01:30:09.618205"], ["id", 10103]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.6ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:30:09 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09cd2198d6f_42f92aad3c3405f829993@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cd2198795_42f92aad3c3405f8298a2";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cd2198795_42f92aad3c3405f8298a2 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/TiUQJCooNpawAe0_EI-N2w/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09cd2198795_42f92aad3c3405f8298a2 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/TiUQJCooNpawAe0_EI-N2w/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cd2198795_42f92aad3c3405f8298a2–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$aCcmlpvz0OpyirF2exAlNeML4YXmrSEQ5qbADePCADp6fuY7ymt6W"], ["created_at", "2018-12-07 01:30:09.631708"], ["updated_at", "2018-12-07 01:30:09.631708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$znPIBvnTEIl5umqVIFYCVehvHtxLfdw4y6eO2AM8CeE9Rf1JNa6w6"], ["created_at", "2018-12-07 01:30:09.639026"], ["updated_at", "2018-12-07 01:30:09.639026"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10105"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$NHVx.Rk1mUDPFCJDvpRPm.iYMzcO9JG4ARoYY3ZsKwX1DkmGJZlpO"], ["updated_at", "2018-12-07 01:30:09.643001"], ["id", 10105]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$UxEi/.ePMmECwMyHmalOEuiWk..OBQBdBGWRI3nC8gnmUtdnQG7Ga"], ["created_at", "2018-12-07 01:30:09.647702"], ["updated_at", "2018-12-07 01:30:09.647702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10106"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$EcQ3udkRDyjqPcSHF2h/uOTEMcKFrnSiogfdPy9SMSfn0BmkjG0IW"], ["created_at", "2018-12-07 01:30:09.655543"], ["updated_at", "2018-12-07 01:30:09.655543"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10107"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$.vM9uWvwzT.sfNuhaNjq.OQICxgIAgfA9TjcJA1AVIOnoA1HnPunW"], ["created_at", "2018-12-07 01:30:09.669010"], ["updated_at", "2018-12-07 01:30:09.669010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10108"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$owPlxAzjIZ1upNOXNO/RVe5LQtEkUOhdKAVNUNcygIKrvuZtX8ZiG"], ["created_at", "2018-12-07 01:30:09.677535"], ["updated_at", "2018-12-07 01:30:09.677535"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10109"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d06z0RkqHPbU4xTwe5SBleM36MbPStx60c79BriiaU.lL2wKZBqA."], ["created_at", "2018-12-07 01:30:09.685201"], ["updated_at", "2018-12-07 01:30:09.685201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.0ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8/FLgRxd3Nb1XVNdr5M.MOczEJb6PwUv3/lg1i5qOBCSJGJlcJu2u"], ["created_at", "2018-12-07 01:30:09.692443"], ["updated_at", "2018-12-07 01:30:09.692443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ph6FHWBbse8JyrX7gMgHR.QRokUsbfMjmKbIaklT2rjs9Bz7LVa.u"], ["created_at", "2018-12-07 01:30:09.699601"], ["updated_at", "2018-12-07 01:30:09.699601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.701197"], ["updated_at", "2018-12-07 01:30:09.701197"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7623], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10112], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10112], ["room_id", 7623], ["created_at", "2018-12-07 01:30:09.704006"], ["updated_at", "2018-12-07 01:30:09.704006"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IZqMGTFzmgWS5WN2QpRWUeYi3.xbakt3ldA4Ua43mR1kBMUyng9F6"], ["created_at", "2018-12-07 01:30:09.710189"], ["updated_at", "2018-12-07 01:30:09.710189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.711656"], ["updated_at", "2018-12-07 01:30:09.711656"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7624], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10113], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10113], ["room_id", 7624], ["created_at", "2018-12-07 01:30:09.714650"], ["updated_at", "2018-12-07 01:30:09.714650"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.0ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xU8b8eQYiXtnVUwVS19DVeFgApOZL59pzAWfhnMMlokJd/2dPb1sW"], ["created_at", "2018-12-07 01:30:09.737630"], ["updated_at", "2018-12-07 01:30:09.737630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.739202"], ["updated_at", "2018-12-07 01:30:09.739202"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.746183"], ["last_sign_in_at", "2018-12-07 01:30:09.746183"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.746635"], ["id", 10114]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7625"}
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7625 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7625], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10114], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10114], ["room_id", 7625], ["created_at", "2018-12-07 01:30:09.755170"], ["updated_at", "2018-12-07 01:30:09.755170"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7625], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ebUqjjhM/xVx0vACwXYBWOIpL6pCBSMoKMy.PGbWOVH8Q0YuHg0Ee"], ["created_at", "2018-12-07 01:30:09.761407"], ["updated_at", "2018-12-07 01:30:09.761407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.763039"], ["updated_at", "2018-12-07 01:30:09.763039"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.764900"], ["last_sign_in_at", "2018-12-07 01:30:09.764900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.765307"], ["id", 10115]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7626"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7626 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7626], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10115], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10115], ["room_id", 7626], ["created_at", "2018-12-07 01:30:09.769859"], ["updated_at", "2018-12-07 01:30:09.769859"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$E8SyVoIFx2FFJp3yTKy3yOi3i4HooxNcPf91a5TWuNUIrmmYHQ2sa"], ["created_at", "2018-12-07 01:30:09.775184"], ["updated_at", "2018-12-07 01:30:09.775184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.776637"], ["updated_at", "2018-12-07 01:30:09.776637"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.778777"], ["last_sign_in_at", "2018-12-07 01:30:09.778777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.779179"], ["id", 10116]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7627", "user_id"=>"10116"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7627 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7627], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10116], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10116], ["room_id", 7627], ["created_at", "2018-12-07 01:30:09.784634"], ["updated_at", "2018-12-07 01:30:09.784634"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7627", "user_id"=>"10116"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10116], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7627 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7627], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10116], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10116], ["room_id", 7627], ["created_at", "2018-12-07 01:30:09.791496"], ["updated_at", "2018-12-07 01:30:09.791496"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Qf3ILnGj1fpySByHO3e.1u3YzbmrQgKnmhjXh7mPCE8NZwQU8XhfK"], ["created_at", "2018-12-07 01:30:09.796733"], ["updated_at", "2018-12-07 01:30:09.796733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.798253"], ["updated_at", "2018-12-07 01:30:09.798253"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.800371"], ["last_sign_in_at", "2018-12-07 01:30:09.800371"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.800788"], ["id", 10117]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7628", "user_id"=>"10117"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7628 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7628], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10117], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10117], ["room_id", 7628], ["created_at", "2018-12-07 01:30:09.805290"], ["updated_at", "2018-12-07 01:30:09.805290"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7628", "user_id"=>"10117"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10117], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7628 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7628], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10117], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10117], ["room_id", 7628], ["created_at", "2018-12-07 01:30:09.811201"], ["updated_at", "2018-12-07 01:30:09.811201"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7628], ["user_id", 10117], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sX5dDJiCk3uNEafg6HnORec8atb5lMLJcEY9lwpw/ygoYhIajhCHa"], ["created_at", "2018-12-07 01:30:09.817879"], ["updated_at", "2018-12-07 01:30:09.817879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.819497"], ["updated_at", "2018-12-07 01:30:09.819497"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.821664"], ["last_sign_in_at", "2018-12-07 01:30:09.821664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.822038"], ["id", 10118]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7629", "user_id"=>"10118"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7629 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7629], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10118], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10118], ["room_id", 7629], ["created_at", "2018-12-07 01:30:09.826450"], ["updated_at", "2018-12-07 01:30:09.826450"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7629", "user_id"=>"10118"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10118], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7629 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7629], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10118], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10118], ["room_id", 7629], ["created_at", "2018-12-07 01:30:09.832367"], ["updated_at", "2018-12-07 01:30:09.832367"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7629], ["user_id", 10118], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iUl7/u9hD7v6Rmu7aoPDi.yqTWL1Faubm6/l4Fft3Uah3qTK4odDu"], ["created_at", "2018-12-07 01:30:09.837749"], ["updated_at", "2018-12-07 01:30:09.837749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.839260"], ["updated_at", "2018-12-07 01:30:09.839260"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.841021"], ["last_sign_in_at", "2018-12-07 01:30:09.841021"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.841377"], ["id", 10119]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7630"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7630], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cnCeZhLbAHtG/I5ZNjqlj.u/ufWnwmgfFVE5/9H3nPDREVY5mPV8u"], ["created_at", "2018-12-07 01:30:09.849210"], ["updated_at", "2018-12-07 01:30:09.849210"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.850875"], ["updated_at", "2018-12-07 01:30:09.850875"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.852745"], ["last_sign_in_at", "2018-12-07 01:30:09.852745"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.853118"], ["id", 10120]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7631"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2bxrqSoPq00CdBQxhOECwePRzxkWx2SRgm55eXrmdHfhhxYgSB/yy"], ["created_at", "2018-12-07 01:30:09.859960"], ["updated_at", "2018-12-07 01:30:09.859960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:09.861634"], ["updated_at", "2018-12-07 01:30:09.861634"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7632], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10121], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10121], ["room_id", 7632], ["created_at", "2018-12-07 01:30:09.864756"], ["updated_at", "2018-12-07 01:30:09.864756"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7632” for 127.0.0.1 at 2018-12-06 23:30:09 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:09.866306"], ["last_sign_in_at", "2018-12-07 01:30:09.866306"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:09.866680"], ["id", 10121]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7632"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7632], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7632')
Rendered appointments/show.html.erb within layouts/application (6.5ms)
Rendered layouts/_header-user.html.erb (3.8ms)

Completed 200 OK in 152ms (Views: 150.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p2acC/Tsyg0Re4Y8ddT13.9vzvqMqczA.HJ15uHlxtr25VCpoOrk2"], ["created_at", "2018-12-07 01:30:10.027543"], ["updated_at", "2018-12-07 01:30:10.027543"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.030818"], ["updated_at", "2018-12-07 01:30:10.030818"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7633], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10122], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10122], ["room_id", 7633], ["created_at", "2018-12-07 01:30:10.037163"], ["updated_at", "2018-12-07 01:30:10.037163"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3924/edit” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.042128"], ["last_sign_in_at", "2018-12-07 01:30:10.042128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.042611"], ["id", 10122]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3924"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3924], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TY9an7BAulp0tom0CJS9AuZgttIck9qC0RNMLuFxVlmRba7afQ.r6"], ["created_at", "2018-12-07 01:30:10.064893"], ["updated_at", "2018-12-07 01:30:10.064893"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.067865"], ["last_sign_in_at", "2018-12-07 01:30:10.067865"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.068303"], ["id", 10123]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 10.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$R88LhSKUjzX1T6fFm3kdH.HGDrEM1Hpj2z6Ov.ud/VxoFiP.japoa"], ["created_at", "2018-12-07 01:30:10.094094"], ["updated_at", "2018-12-07 01:30:10.094094"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.097665"], ["updated_at", "2018-12-07 01:30:10.097665"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7634], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10124], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10124], ["room_id", 7634], ["created_at", "2018-12-07 01:30:10.103792"], ["updated_at", "2018-12-07 01:30:10.103792"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7634], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10124], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10124], ["room_id", 7634], ["created_at", "2018-12-07 01:30:10.109347"], ["updated_at", "2018-12-07 01:30:10.109347"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.111675"], ["last_sign_in_at", "2018-12-07 01:30:10.111675"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.112145"], ["id", 10124]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10124]]
Rendered appointments/my_appointments.html.erb within layouts/application (13.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 24ms (Views: 16.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zn05aPN3EKHCpX2aTx7LIOZZ/xEkfaGhc8ohJUYSISXfHWEne0f3S"], ["created_at", "2018-12-07 01:30:10.145610"], ["updated_at", "2018-12-07 01:30:10.145610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.148035"], ["updated_at", "2018-12-07 01:30:10.148035"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7635], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10125], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10125], ["room_id", 7635], ["created_at", "2018-12-07 01:30:10.151767"], ["updated_at", "2018-12-07 01:30:10.151767"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7635], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10125], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10125], ["room_id", 7635], ["created_at", "2018-12-07 01:30:10.155261"], ["updated_at", "2018-12-07 01:30:10.155261"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.157053"], ["last_sign_in_at", "2018-12-07 01:30:10.157053"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.157507"], ["id", 10125]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10125]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OS7Gu9co7/yNDEoz2VjGIuI5dq7WNIXr2Ua7F3IoHnX6npmljO.b2"], ["created_at", "2018-12-07 01:30:10.168178"], ["updated_at", "2018-12-07 01:30:10.168178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.169966"], ["updated_at", "2018-12-07 01:30:10.169966"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7636], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10126], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10126], ["room_id", 7636], ["created_at", "2018-12-07 01:30:10.173121"], ["updated_at", "2018-12-07 01:30:10.173121"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3929” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.174735"], ["last_sign_in_at", "2018-12-07 01:30:10.174735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.175145"], ["id", 10126]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3929"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3929], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3929]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SHue5tq8rwT8z5KSXoKOHufy9DGArPSO6nyqr1u9GQfRWE6SQCsY6"], ["created_at", "2018-12-07 01:30:10.185220"], ["updated_at", "2018-12-07 01:30:10.185220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.186956"], ["updated_at", "2018-12-07 01:30:10.186956"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$68RiQVHgR2oXbePg6LgqwOBxFbMNDaI6ml5UK1BgfT9qILuEe1UuG"], ["created_at", "2018-12-07 01:30:10.190239"], ["updated_at", "2018-12-07 01:30:10.190239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7637], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10128], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10128], ["room_id", 7637], ["created_at", "2018-12-07 01:30:10.193372"], ["updated_at", "2018-12-07 01:30:10.193372"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3930” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.195319"], ["last_sign_in_at", "2018-12-07 01:30:10.195319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.195707"], ["id", 10127]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3930"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3930], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7637], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10128], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$g.Gd9S4VF3DnEKI8G1ZCFu7swBDXMRi3.53CCfEtz0Oq.5Ku/tYlO"], ["created_at", "2018-12-07 01:30:10.205302"], ["updated_at", "2018-12-07 01:30:10.205302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.206897"], ["updated_at", "2018-12-07 01:30:10.206897"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Uk0lP.LWGAVYKk12WnxPf.w6KOxeo1KpUNR6v99gcw0gS8mAIauVC"], ["created_at", "2018-12-07 01:30:10.210731"], ["updated_at", "2018-12-07 01:30:10.210731"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7638], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10130], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10130], ["room_id", 7638], ["created_at", "2018-12-07 01:30:10.214051"], ["updated_at", "2018-12-07 01:30:10.214051"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3931” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.215971"], ["last_sign_in_at", "2018-12-07 01:30:10.215971"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.216342"], ["id", 10129]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3931"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3931], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7638], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10130], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yvbCIZ4XCxhTpPCu9FT/9uVFxGJDPYCrHB5ti1C7wKWs7puPmwUkW"], ["created_at", "2018-12-07 01:30:10.225248"], ["updated_at", "2018-12-07 01:30:10.225248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.226858"], ["updated_at", "2018-12-07 01:30:10.226858"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5eaVcxBmAy3iHMMvjUOmsuHpPmtdBXAp7psH7RSNuKwpi/PlFdgH."], ["created_at", "2018-12-07 01:30:10.230053"], ["updated_at", "2018-12-07 01:30:10.230053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7639], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10132], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10132], ["room_id", 7639], ["created_at", "2018-12-07 01:30:10.233080"], ["updated_at", "2018-12-07 01:30:10.233080"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3932” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.235007"], ["last_sign_in_at", "2018-12-07 01:30:10.235007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.235379"], ["id", 10131]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3932"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3932], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7639], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10132], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:30:10.239826"], ["id", 3932]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.1ms Sent mail to 123@123.com (2.4ms) Date: Thu, 06 Dec 2018 23:30:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cd223b9c4_42f92aad3c3405f830671@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cd223b3c0_42f92aad3c3405f83055b";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cd223b3c0_42f92aad3c3405f83055b Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cd223b3c0_42f92aad3c3405f83055b Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cd223b3c0_42f92aad3c3405f83055b–

Completed 302 Found in 9ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4CXvM4hoDVL5EmblF/02q.yKJ83Mn/G6YiYaw2x3gsWvIG2DBH5Z6"], ["created_at", "2018-12-07 01:30:10.251012"], ["updated_at", "2018-12-07 01:30:10.251012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.252710"], ["updated_at", "2018-12-07 01:30:10.252710"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MQ.JnOBuaeTCY.VTYlnzleXjj/ANHEbPXFVx72H7UtLDM9syWqunS"], ["created_at", "2018-12-07 01:30:10.255851"], ["updated_at", "2018-12-07 01:30:10.255851"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7640], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10134], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10134], ["room_id", 7640], ["created_at", "2018-12-07 01:30:10.258892"], ["updated_at", "2018-12-07 01:30:10.258892"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:30:10.260280"], ["id", 3933]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7640], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10134], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10134], ["room_id", 7640], ["created_at", "2018-12-07 01:30:10.262941"], ["updated_at", "2018-12-07 01:30:10.262941"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:30:10.264206"], ["id", 3934]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.265593"], ["last_sign_in_at", "2018-12-07 01:30:10.265593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.265946"], ["id", 10133]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10134], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7640], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10134], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7640], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 6.2ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XPE4YUka4aFkwqoqOI62tO8iEAL2ddlCkdlj9cS4LVl0jkfeTxs8i"], ["created_at", "2018-12-07 01:30:10.279790"], ["updated_at", "2018-12-07 01:30:10.279790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.281425"], ["updated_at", "2018-12-07 01:30:10.281425"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ixGiG.qm7MLeEjOjlaEk0eBfpKouj35bThrEkUTVHVxiBT/4RopOm"], ["created_at", "2018-12-07 01:30:10.284554"], ["updated_at", "2018-12-07 01:30:10.284554"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7641], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10136], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10136], ["room_id", 7641], ["created_at", "2018-12-07 01:30:10.287557"], ["updated_at", "2018-12-07 01:30:10.287557"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:30:10.288947"], ["id", 3935]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7641], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10136], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10136], ["room_id", 7641], ["created_at", "2018-12-07 01:30:10.291588"], ["updated_at", "2018-12-07 01:30:10.291588"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:30:10.292853"], ["id", 3936]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.294225"], ["last_sign_in_at", "2018-12-07 01:30:10.294225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.294612"], ["id", 10135]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10136], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7641], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10136], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7641], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZDocDili.88SNv7UEJgjeeZcueuXICabwIrDNPSKNqPKvqJkQmjx6"], ["created_at", "2018-12-07 01:30:10.307730"], ["updated_at", "2018-12-07 01:30:10.307730"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.309509"], ["last_sign_in_at", "2018-12-07 01:30:10.309509"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.309869"], ["id", 10137]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iPDaiQTtx6Rb7OEsWwpJU.w35OCyL8DPkcHn/v/Yq9czByqq.iYwG"], ["created_at", "2018-12-07 01:30:10.322893"], ["updated_at", "2018-12-07 01:30:10.322893"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.324555"], ["last_sign_in_at", "2018-12-07 01:30:10.324555"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.324903"], ["id", 10138]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GxyBU0eWIUWgYt6crixFV.57e/TSEMbQSZX7w9Hq4ww0r8xwiO5Mm"], ["created_at", "2018-12-07 01:30:10.330733"], ["updated_at", "2018-12-07 01:30:10.330733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.332279"], ["last_sign_in_at", "2018-12-07 01:30:10.332279"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.332620"], ["id", 10139]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yHSnpW.Yd7rhuTxqkGjzpezJOyKyWZjh4VhUBP1XC4Cy9eWaFloh6"], ["created_at", "2018-12-07 01:30:10.343145"], ["updated_at", "2018-12-07 01:30:10.343145"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.344810"], ["last_sign_in_at", "2018-12-07 01:30:10.344810"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.345179"], ["id", 10140]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AEG3rB/4gU00kd9KeUEU0.nlpcgOvC/mM/FC6wzXLcrur6shFg55C"], ["created_at", "2018-12-07 01:30:10.358904"], ["updated_at", "2018-12-07 01:30:10.358904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.360467"], ["updated_at", "2018-12-07 01:30:10.360467"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7642” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.361905"], ["last_sign_in_at", "2018-12-07 01:30:10.361905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.362298"], ["id", 10141]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7642"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7642], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$piQgf1O91hOxKqWIyxTy6unXPCOHS8E3i7LJkzeSVZrBeyFqINsyS"], ["created_at", "2018-12-07 01:30:10.372188"], ["updated_at", "2018-12-07 01:30:10.372188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.373813"], ["updated_at", "2018-12-07 01:30:10.373813"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7643” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.375314"], ["last_sign_in_at", "2018-12-07 01:30:10.375314"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.375709"], ["id", 10142]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7643"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7643], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.382148"], ["updated_at", "2018-12-07 01:30:10.382148"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7644” for 127.0.0.1 at 2018-12-06 23:30:10 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7644"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WzptgGqVTIhbSyJNGR1bLO5H0PigLdcf2fCCfHY9GKW0RT/nCr9ES"], ["created_at", "2018-12-07 01:30:10.388379"], ["updated_at", "2018-12-07 01:30:10.388379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.389966"], ["updated_at", "2018-12-07 01:30:10.389966"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7645” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.391348"], ["last_sign_in_at", "2018-12-07 01:30:10.391348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.391719"], ["id", 10143]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7645"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.400120"], ["updated_at", "2018-12-07 01:30:10.400120"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7646” for 127.0.0.1 at 2018-12-06 23:30:10 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7646"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UayUr08M9G/ydgRrYb2WGuMZdNAIJE28akvET0Hu9OoDmmPDRydmO"], ["created_at", "2018-12-07 01:30:10.406861"], ["updated_at", "2018-12-07 01:30:10.406861"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.408458"], ["updated_at", "2018-12-07 01:30:10.408458"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7647/edit” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.409871"], ["last_sign_in_at", "2018-12-07 01:30:10.409871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.410234"], ["id", 10144]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7647"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7647], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xa95p/SWgkMUwsaPyEp5q.OrxvZhxPtUFfAUiahfmAHKS47/ORXj2"], ["created_at", "2018-12-07 01:30:10.420824"], ["updated_at", "2018-12-07 01:30:10.420824"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.422415"], ["updated_at", "2018-12-07 01:30:10.422415"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7648/edit” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.423879"], ["last_sign_in_at", "2018-12-07 01:30:10.423879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.424288"], ["id", 10145]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7648"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7648], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.432931"], ["updated_at", "2018-12-07 01:30:10.432931"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7649” for 127.0.0.1 at 2018-12-06 23:30:10 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7649"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CUNrmFPubgtG4mUpDx1Hg.9QpCexSbxB6dZJW75QEcP4QTDT6BxIe"], ["created_at", "2018-12-07 01:30:10.439644"], ["updated_at", "2018-12-07 01:30:10.439644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.441677"], ["last_sign_in_at", "2018-12-07 01:30:10.441677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.442030"], ["id", 10146]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.444481"], ["updated_at", "2018-12-07 01:30:10.444481"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$st.sWvdUXVfFSVC.0pj5D.UEhx33QPiHLynZiWCoJt9wyQww99rO2"], ["created_at", "2018-12-07 01:30:10.450210"], ["updated_at", "2018-12-07 01:30:10.450210"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.452291"], ["last_sign_in_at", "2018-12-07 01:30:10.452291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.452676"], ["id", 10147]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.455057"], ["updated_at", "2018-12-07 01:30:10.455057"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Cvvs8Uqw.CKqiPhxKWqNuu0s3oDEJaOxJwQbofYzc.Y1tdb57D.p2"], ["created_at", "2018-12-07 01:30:10.460413"], ["updated_at", "2018-12-07 01:30:10.460413"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.462960"], ["last_sign_in_at", "2018-12-07 01:30:10.462960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.463560"], ["id", 10148]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.q.rIssVtTxGUpnkRNQtgu1TionooQ17.eAGDNJXvrj/byNlMt4I2"], ["created_at", "2018-12-07 01:30:10.471594"], ["updated_at", "2018-12-07 01:30:10.471594"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.473648"], ["last_sign_in_at", "2018-12-07 01:30:10.473648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.474003"], ["id", 10149]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZOk6hi3mSNJLa84tY830T.JkioPUVvaIJWyQ/PuWPk/L6hx6I17B2"], ["created_at", "2018-12-07 01:30:10.481246"], ["updated_at", "2018-12-07 01:30:10.481246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.483261"], ["last_sign_in_at", "2018-12-07 01:30:10.483261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.483612"], ["id", 10150]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fRpdo2HrysarnwrojmnoQe7V3Ze1phFyT/WsOFZgSd/ALpmo1sx/."], ["created_at", "2018-12-07 01:30:10.489546"], ["updated_at", "2018-12-07 01:30:10.489546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.491215"], ["updated_at", "2018-12-07 01:30:10.491215"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7652” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.493337"], ["last_sign_in_at", "2018-12-07 01:30:10.493337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.493744"], ["id", 10151]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7652"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7652], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:30:10.497401"], ["id", 7652]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7652 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d3p6Zdj9ltENxtQZvXmwFuEjvZHNR1CACgmnmqYkeeYHgab/MSUgK"], ["created_at", "2018-12-07 01:30:10.503393"], ["updated_at", "2018-12-07 01:30:10.503393"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.504987"], ["updated_at", "2018-12-07 01:30:10.504987"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7653” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.506787"], ["last_sign_in_at", "2018-12-07 01:30:10.506787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.507177"], ["id", 10152]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7653"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7653], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:30:10.509991"], ["id", 7653]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7653 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YPQG1CcZcvD7FjjOBK4GeeIIDhTOrgYOQ2X15zOE9dNH/x1WseUF2"], ["created_at", "2018-12-07 01:30:10.515273"], ["updated_at", "2018-12-07 01:30:10.515273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.516846"], ["updated_at", "2018-12-07 01:30:10.516846"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7654” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.518654"], ["last_sign_in_at", "2018-12-07 01:30:10.518654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.519101"], ["id", 10153]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7654"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7654], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ObaMz5flRGmZuhmoGxYEQuYNCvT1hLTMFxuocziVtYgC/qJzJK0pi"], ["created_at", "2018-12-07 01:30:10.531601"], ["updated_at", "2018-12-07 01:30:10.531601"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.533241"], ["updated_at", "2018-12-07 01:30:10.533241"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7655” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.535023"], ["last_sign_in_at", "2018-12-07 01:30:10.535023"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.535411"], ["id", 10154]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7655"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7655], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5LrIGiRg5GF9lT0Dfn1bheuWCMZclwFP0dpN40UvI1kScm6sNmZsS"], ["created_at", "2018-12-07 01:30:10.546487"], ["updated_at", "2018-12-07 01:30:10.546487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.548607"], ["last_sign_in_at", "2018-12-07 01:30:10.548607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.548959"], ["id", 10155]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$H2vxrAl319XZqinzn.wf4e72rsJx2NiCcaOxspAPK/jWJTG4gfDYG"], ["created_at", "2018-12-07 01:30:10.555168"], ["updated_at", "2018-12-07 01:30:10.555168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.556806"], ["updated_at", "2018-12-07 01:30:10.556806"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7656” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.558841"], ["last_sign_in_at", "2018-12-07 01:30:10.558841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.559245"], ["id", 10156]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7656"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7656], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7656]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lWOd7IEAKpuzNGCLyulUpuWNz14uB0RWcSJCtNJWTXVnK16L30NdK"], ["created_at", "2018-12-07 01:30:10.567252"], ["updated_at", "2018-12-07 01:30:10.567252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.568829"], ["updated_at", "2018-12-07 01:30:10.568829"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7657” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.570202"], ["last_sign_in_at", "2018-12-07 01:30:10.570202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.570590"], ["id", 10157]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7657"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7657], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7657]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T3P.yNOO0EnhQBAEnIbF0uvhfrgF6U4g6eQECWp0XvAn11l1QXExy"], ["created_at", "2018-12-07 01:30:10.577694"], ["updated_at", "2018-12-07 01:30:10.577694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.579246"], ["updated_at", "2018-12-07 01:30:10.579246"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7658” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.580607"], ["last_sign_in_at", "2018-12-07 01:30:10.580607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.580962"], ["id", 10158]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7658"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3ItA8Skb7OUQh0ordd7VBe.1tB7GflyOZcQ8vzCbi0aIvbh8KSNsu"], ["created_at", "2018-12-07 01:30:10.587229"], ["updated_at", "2018-12-07 01:30:10.587229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.589377"], ["updated_at", "2018-12-07 01:30:10.589377"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7659” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.591027"], ["last_sign_in_at", "2018-12-07 01:30:10.591027"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.591428"], ["id", 10159]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7659"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WF1lbs.WhpbkYWi.eInsyuHjt8RG13fQeJq5rn/DO6FY2OxBU2O52"], ["created_at", "2018-12-07 01:30:10.597526"], ["updated_at", "2018-12-07 01:30:10.597526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.599131"], ["last_sign_in_at", "2018-12-07 01:30:10.599131"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.599478"], ["id", 10160]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$osU1pUuQMZvGZwEkOZub2.4sY1kx9DneoRyXmkum2UkrPguCKoSLO"], ["created_at", "2018-12-07 01:30:10.611007"], ["updated_at", "2018-12-07 01:30:10.611007"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.612564"], ["updated_at", "2018-12-07 01:30:10.612564"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.613836"], ["updated_at", "2018-12-07 01:30:10.613836"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.615068"], ["updated_at", "2018-12-07 01:30:10.615068"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7660], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10161], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10161], ["room_id", 7660], ["created_at", "2018-12-07 01:30:10.618076"], ["updated_at", "2018-12-07 01:30:10.618076"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.619861"], ["last_sign_in_at", "2018-12-07 01:30:10.619861"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.620275"], ["id", 10161]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t2XVsV9xqdYNshBLUE4L.ufIEnjKL.4XwcFNl7Ps/W1QBELK0hIma"], ["created_at", "2018-12-07 01:30:10.637449"], ["updated_at", "2018-12-07 01:30:10.637449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.639101"], ["updated_at", "2018-12-07 01:30:10.639101"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.640440"], ["updated_at", "2018-12-07 01:30:10.640440"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:30:10.641604"], ["updated_at", "2018-12-07 01:30:10.641604"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7663], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10162], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10162], ["room_id", 7663], ["created_at", "2018-12-07 01:30:10.644431"], ["updated_at", "2018-12-07 01:30:10.644431"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:30:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:30:10.645988"], ["last_sign_in_at", "2018-12-07 01:30:10.645988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:30:10.646351"], ["id", 10162]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HE3foR5lhuUshQUuGzHg4u/pJBaS7udQy1YbevcZh9c4JfhG1DUU2"], ["created_at", "2018-12-07 01:30:18.889173"], ["updated_at", "2018-12-07 01:30:18.889173"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:30:18 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.7ms)
Rendered users/sessions/new.html.erb within layouts/application (124.8ms)

Completed 200 OK in 138ms (Views: 129.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:30:19.055042"], ["last_sign_in_at", "2018-12-07 01:30:19.055042"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:30:19.055554"], ["id", 10163]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10163], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:30:19.078769"], ["updated_at", "2018-12-07 01:30:19.078769"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:30:19.080340"], ["updated_at", "2018-12-07 01:30:19.080340"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10163], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7666” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7666"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7666], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7666')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10163], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.7666” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10163], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7666 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7666], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10163], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10163], ["room_id", 7666], ["created_at", "2018-12-07 01:30:19.138562"], ["updated_at", "2018-12-07 01:30:19.138562"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10163], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$OZwnE0RRcuI/h1ppV6.qTe7.EHdfD7OzXrHExSyyx8HrbykDTKLdS"], ["created_at", "2018-12-07 01:30:19.154413"], ["updated_at", "2018-12-07 01:30:19.154413"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:30:19.166550"], ["last_sign_in_at", "2018-12-07 01:30:19.166550"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:30:19.167043"], ["id", 10164]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10164], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:30:19.174556"], ["updated_at", "2018-12-07 01:30:19.174556"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:30:19.175899"], ["updated_at", "2018-12-07 01:30:19.175899"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10164], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7668” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7668"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7668], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7668')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10164], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.7668” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10164], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7668 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:30:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10164], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$W4sLeCR2ScEr/KrFpDHQFOBCPiG/llTfLo3G644D/7vPVhpndgQem"], ["created_at", "2018-12-07 01:30:25.354158"], ["updated_at", "2018-12-07 01:30:25.354158"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.8ms)
Rendered users/sessions/new.html.erb within layouts/application (105.1ms)

Completed 200 OK in 118ms (Views: 109.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:30:25.498302"], ["last_sign_in_at", "2018-12-07 01:30:25.498302"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:30:25.498777"], ["id", 10165]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10165], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:30:25.522078"], ["updated_at", "2018-12-07 01:30:25.522078"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10165], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.7ms) Started GET “/appointments/7670” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7670"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7670], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7670')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10165], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7670” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10165], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7670 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7670], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10165], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10165], ["room_id", 7670], ["created_at", "2018-12-07 01:30:25.581936"], ["updated_at", "2018-12-07 01:30:25.581936"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 20ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10165], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$glweosnqm.1kRSLs9BlCWeTewlfbqlq/fBI7ZY5Loo9/rmgx.xfwS"], ["created_at", "2018-12-07 01:30:25.614690"], ["updated_at", "2018-12-07 01:30:25.614690"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:30:25.629368"], ["last_sign_in_at", "2018-12-07 01:30:25.629368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:30:25.629927"], ["id", 10166]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10166], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:30:25.640425"], ["updated_at", "2018-12-07 01:30:25.640425"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7671], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10166], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10166], ["room_id", 7671], ["created_at", "2018-12-07 01:30:25.645478"], ["updated_at", "2018-12-07 01:30:25.645478"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10166], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/7671” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7671"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7671], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7671')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10166], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.8ms) Started POST “/appointments.7671” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10166], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7671 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7671], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10166], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10166], ["room_id", 7671], ["created_at", "2018-12-07 01:30:25.677511"], ["updated_at", "2018-12-07 01:30:25.677511"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:30:25 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10166], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$V0trIkHv.ZO03F93TO7DHOtB5BxUXz1tIYgdGgyXQBCoZvoR/oVte"], ["created_at", "2018-12-07 01:32:00.142995"], ["updated_at", "2018-12-07 01:32:00.142995"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.6ms)
Rendered users/sessions/new.html.erb within layouts/application (104.1ms)

Completed 200 OK in 117ms (Views: 108.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:00.286460"], ["last_sign_in_at", "2018-12-07 01:32:00.286460"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:00.286982"], ["id", 10167]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10167], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:00.310695"], ["updated_at", "2018-12-07 01:32:00.310695"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10167], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7672” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7672"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7672], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7672')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10167], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.2ms | ActiveRecord: 2.0ms) Started POST “/appointments.7672” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10167], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7672 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7672], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10167], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10167], ["room_id", 7672], ["created_at", "2018-12-07 01:32:00.368801"], ["updated_at", "2018-12-07 01:32:00.368801"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10167], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (3.3ms)

Completed 200 OK in 7ms (Views: 6.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$L9BRB5ZHeURu0qBVZmFZ5..Cc9JyXP8hrAGZsJ8c8ZfCWA9tuaax."], ["created_at", "2018-12-07 01:32:00.387352"], ["updated_at", "2018-12-07 01:32:00.387352"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:00.417378"], ["last_sign_in_at", "2018-12-07 01:32:00.417378"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:00.417927"], ["id", 10168]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10168], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:00.428970"], ["updated_at", "2018-12-07 01:32:00.428970"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7673], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10168], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10168], ["room_id", 7673], ["created_at", "2018-12-07 01:32:00.434200"], ["updated_at", "2018-12-07 01:32:00.434200"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10168], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/appointments/7673” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7673"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7673], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7673')
Rendered appointments/show.html.erb within layouts/application (3.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10168], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7673” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10168], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7673 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7673], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10168], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10168], ["room_id", 7673], ["created_at", "2018-12-07 01:32:00.467612"], ["updated_at", "2018-12-07 01:32:00.467612"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:00 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10168], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$DCr9KjTx98wsNHSqb4k4V.fd4pEiF3JNEDp6NTqC3V5JyeopMoSAm"], ["created_at", "2018-12-07 01:32:06.962080"], ["updated_at", "2018-12-07 01:32:06.962080"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (37.9ms)
Rendered users/sessions/new.html.erb within layouts/application (191.7ms)

Completed 200 OK in 211ms (Views: 202.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.204416"], ["last_sign_in_at", "2018-12-07 01:32:07.204416"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.204983"], ["id", 10169]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10169], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10169], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10169], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 6.0ms | ActiveRecord: 2.2ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10169], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10169], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lkNEjMMaLXRyWgr9NX6GV.NNGQEQ/xQZeMF6TzbNXgonXrSgv9uKW"], ["created_at", "2018-12-07 01:32:07.265296"], ["updated_at", "2018-12-07 01:32:07.265296"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.278062"], ["last_sign_in_at", "2018-12-07 01:32:07.278062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.278517"], ["id", 10170]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10170], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10170], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10170], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10170], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10170], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GC3LD1iuhkFkkWSQGyORfuoZOmGpSSKXJ8xkIIIjf/uOm0ye.Zkg6"], ["created_at", "2018-12-07 01:32:07.324330"], ["updated_at", "2018-12-07 01:32:07.324330"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.337695"], ["last_sign_in_at", "2018-12-07 01:32:07.337695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.338097"], ["id", 10171]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10171], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$PQch8N/cRZT.7/eU7CU.WeT4.r38LKEiFjO8dfzrmxAus3ITCAWMS"], ["created_at", "2018-12-07 01:32:07.354235"], ["updated_at", "2018-12-07 01:32:07.354235"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$O8aZuN0GjG0A3p2E.5ZNhuSlvWfMctP33eZT02b.wfGghKGOfOla."], ["created_at", "2018-12-07 01:32:07.378521"], ["updated_at", "2018-12-07 01:32:07.378521"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.390118"], ["last_sign_in_at", "2018-12-07 01:32:07.390118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.390554"], ["id", 10173]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10173], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:07.399360"], ["updated_at", "2018-12-07 01:32:07.399360"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10173], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms) Started GET “/appointments/7674” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7674"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7674], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7674')
Rendered appointments/show.html.erb within layouts/application (5.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10173], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 14ms (Views: 6.9ms | ActiveRecord: 1.8ms) Started POST “/appointments.7674” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10173], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7674 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7674], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10173], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10173], ["room_id", 7674], ["created_at", "2018-12-07 01:32:07.452546"], ["updated_at", "2018-12-07 01:32:07.452546"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10173], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1jhJM9NmmvPYVo3dUiAaCOZSy6txj1Yui/v/n6QdF7WqIqgEY.TIy"], ["created_at", "2018-12-07 01:32:07.464534"], ["updated_at", "2018-12-07 01:32:07.464534"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.476579"], ["last_sign_in_at", "2018-12-07 01:32:07.476579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.477013"], ["id", 10174]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10174], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:07.485271"], ["updated_at", "2018-12-07 01:32:07.485271"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7675], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10174], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10174], ["room_id", 7675], ["created_at", "2018-12-07 01:32:07.489684"], ["updated_at", "2018-12-07 01:32:07.489684"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10174], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7675” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7675"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7675], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7675')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10174], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.7675” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10174], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7675 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7675], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10174], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10174], ["room_id", 7675], ["created_at", "2018-12-07 01:32:07.518124"], ["updated_at", "2018-12-07 01:32:07.518124"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10174], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$HahXG7YWej9E8lRMvyG1wuJOAZXj76RvpwglxSu/yHXKxqVSx3gMq"], ["created_at", "2018-12-07 01:32:07.529764"], ["updated_at", "2018-12-07 01:32:07.529764"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.541781"], ["last_sign_in_at", "2018-12-07 01:32:07.541781"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.542234"], ["id", 10175]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10175], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:07.550074"], ["updated_at", "2018-12-07 01:32:07.550074"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7676], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10175], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10175], ["room_id", 7676], ["created_at", "2018-12-07 01:32:07.554104"], ["updated_at", "2018-12-07 01:32:07.554104"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10175], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10175]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/3949” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3949"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3949], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3949]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10175], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10175]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$COxF2v.UClmV4xhIE47etuXUBLl2aZKq36Ct6N6FCaNGFHzwWKWxq"], ["created_at", "2018-12-07 01:32:07.584859"], ["updated_at", "2018-12-07 01:32:07.584859"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.602782"], ["last_sign_in_at", "2018-12-07 01:32:07.602782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.603238"], ["id", 10176]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10176], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:32:07.610729"], ["updated_at", "2018-12-07 01:32:07.610729"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7677], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10176], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 10176], ["room_id", 7677], ["created_at", "2018-12-07 01:32:07.615077"], ["updated_at", "2018-12-07 01:32:07.615077"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10176], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10176]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/3950” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3950"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3950], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3950]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10176], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10176]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$pGujCHqE969fQOdWls7DpuHC7npQsxf8bl4id0Fq77flS.vx.C0Ju"], ["created_at", "2018-12-07 01:32:07.639560"], ["updated_at", "2018-12-07 01:32:07.639560"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.652426"], ["last_sign_in_at", "2018-12-07 01:32:07.652426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.652910"], ["id", 10177]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10177], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 01:32:07.660516"], ["updated_at", "2018-12-07 01:32:07.660516"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:32:07.661840"], ["updated_at", "2018-12-07 01:32:07.661840"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10177], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10177], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10177], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$wr8lkxJRpg7Y9wFbmjr2auQo.AaK4qpkLSHtS8SlYO3PetUbNUEFe"], ["created_at", "2018-12-07 01:32:07.686840"], ["updated_at", "2018-12-07 01:32:07.686840"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.698512"], ["last_sign_in_at", "2018-12-07 01:32:07.698512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.698962"], ["id", 10178]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10178], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10178], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10178], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$hgVUw.4M46satD1F6E.gsOz3siskiH33tguuE3boy4osOrCVNjE.e"], ["created_at", "2018-12-07 01:32:07.726412"], ["updated_at", "2018-12-07 01:32:07.726412"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.738459"], ["last_sign_in_at", "2018-12-07 01:32:07.738459"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.738893"], ["id", 10179]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10179], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.8ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10179], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.6ms)

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3sdUgM/y5JhNZ2hNLvfDeO87B8MUwC91TiplxWJ6AR1SPbxMkAaRG"], ["created_at", "2018-12-07 01:32:07.778561"], ["updated_at", "2018-12-07 01:32:07.778561"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.790864"], ["last_sign_in_at", "2018-12-07 01:32:07.790864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.791325"], ["id", 10180]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10180], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:07.800037"], ["updated_at", "2018-12-07 01:32:07.800037"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7680], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10180], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10180], ["room_id", 7680], ["created_at", "2018-12-07 01:32:07.803815"], ["updated_at", "2018-12-07 01:32:07.803815"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10180], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/appointments/7680” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7680"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7680], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7680')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10180], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.6ms) Started POST “/appointments.7680” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10180], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7680 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7680], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10180], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10180], ["room_id", 7680], ["created_at", "2018-12-07 01:32:07.833432"], ["updated_at", "2018-12-07 01:32:07.833432"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10180], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$my.pNsPGFZIjrX4JknakVO6IMx1YYMI6pQXlaDSBfcvvQa4plHHIu"], ["created_at", "2018-12-07 01:32:07.845692"], ["updated_at", "2018-12-07 01:32:07.845692"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.858287"], ["last_sign_in_at", "2018-12-07 01:32:07.858287"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.858686"], ["id", 10181]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10181], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:07.866635"], ["updated_at", "2018-12-07 01:32:07.866635"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7681], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10181], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10181], ["room_id", 7681], ["created_at", "2018-12-07 01:32:07.870792"], ["updated_at", "2018-12-07 01:32:07.870792"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10181], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10181]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$qAte4YHRpC1M.QdJ1Y/iNeSuiHT3gUgOGJNZ/k5PDsSTYkx4kIjOK"], ["created_at", "2018-12-07 01:32:07.887260"], ["updated_at", "2018-12-07 01:32:07.887260"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.899328"], ["last_sign_in_at", "2018-12-07 01:32:07.899328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.899828"], ["id", 10182]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10182], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:32:07.908525"], ["updated_at", "2018-12-07 01:32:07.908525"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7682], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10182], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 10182], ["room_id", 7682], ["created_at", "2018-12-07 01:32:07.912948"], ["updated_at", "2018-12-07 01:32:07.912948"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10182], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10182]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$mYw2bXuuaJ3UHTWLl0Zhpui/jQo0n15d78IqF9ko7A3.WRc.SSrE2"], ["created_at", "2018-12-07 01:32:07.928472"], ["updated_at", "2018-12-07 01:32:07.928472"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.941571"], ["last_sign_in_at", "2018-12-07 01:32:07.941571"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.942049"], ["id", 10183]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10183], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$gHfRemeVbHEIjC71BtGo9O1Wn9Q5H0Ma5CiAy/dEgMd1AQdQWJq5e"], ["created_at", "2018-12-07 01:32:07.956098"], ["updated_at", "2018-12-07 01:32:07.956098"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:07.968733"], ["last_sign_in_at", "2018-12-07 01:32:07.968733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:07.969256"], ["id", 10184]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10184], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:32:07.977326"], ["updated_at", "2018-12-07 01:32:07.977326"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:07.978586"], ["updated_at", "2018-12-07 01:32:07.978586"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10184], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms) Started GET “/appointments/7683” for 127.0.0.1 at 2018-12-06 23:32:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7683"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7683], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7683')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10184], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.7ms) Started POST “/appointments.7683” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10184], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7683 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7683], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10184], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10184], ["room_id", 7683], ["created_at", "2018-12-07 01:32:08.009672"], ["updated_at", "2018-12-07 01:32:08.009672"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10184], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$k1n/t2zshrRmbhgLUHzJyeoxuKph3xHNTNMBJHcj..JgsL5J.FgUa"], ["created_at", "2018-12-07 01:32:08.028110"], ["updated_at", "2018-12-07 01:32:08.028110"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.041434"], ["last_sign_in_at", "2018-12-07 01:32:08.041434"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.041918"], ["id", 10185]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10185], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:32:08.049735"], ["updated_at", "2018-12-07 01:32:08.049735"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:08.051199"], ["updated_at", "2018-12-07 01:32:08.051199"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10185], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/7685” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7685"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7685], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7685')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10185], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started POST “/appointments.7685” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10185], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7685 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10185], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$s6IKspgn0EadWCf8djAcKejsQZwuSQjIybS7SueFOOX/rD19oiGeW"], ["created_at", "2018-12-07 01:32:08.087162"], ["updated_at", "2018-12-07 01:32:08.087162"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.099584"], ["last_sign_in_at", "2018-12-07 01:32:08.099584"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.100072"], ["id", 10186]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10186], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 01:32:08.107364"], ["updated_at", "2018-12-07 01:32:08.107364"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10186], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10186], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started DELETE “/rooms/7687” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7687"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10186], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7687], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7687]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10186], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$lE4w//s3Kv3/.t4GrB80LeafINEhhdeXMBtlOcZtMhQ0OKBG3y6m2"], ["created_at", "2018-12-07 01:32:08.136566"], ["updated_at", "2018-12-07 01:32:08.136566"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 01:32:08.138025"], ["updated_at", "2018-12-07 01:32:08.138025"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.154161"], ["last_sign_in_at", "2018-12-07 01:32:08.154161"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.154614"], ["id", 10187]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10187], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10187], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/rooms/7688/edit” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7688"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10187], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7688], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started PATCH “/rooms/7688” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"7688"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10187], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7688], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$GU7q85tRrve30jr2rpqIeeO2oLfv72yhSxm8TRz/LjEEK85oI0ugO"], ["created_at", "2018-12-07 01:32:08.200695"], ["updated_at", "2018-12-07 01:32:08.200695"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$kCIKSZvnW2W7cItdzM97FO2zKvj.GDMQTCnU.ETiosu.lPAPBvaUu"], ["created_at", "2018-12-07 01:32:08.209704"], ["updated_at", "2018-12-07 01:32:08.209704"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.221170"], ["last_sign_in_at", "2018-12-07 01:32:08.221170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.221638"], ["id", 10189]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10189], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10189], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 01:32:08.234866"], ["updated_at", "2018-12-07 01:32:08.234866"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 01:32:08.236196"], ["updated_at", "2018-12-07 01:32:08.236196"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 01:32:08.237314"], ["updated_at", "2018-12-07 01:32:08.237314"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$EYj3z4UA40YRyhs4pm.FEecVZwB2TaFHVGZhU6hwcrHA6oFJHd73O"], ["created_at", "2018-12-07 01:32:08.252457"], ["updated_at", "2018-12-07 01:32:08.252457"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.265021"], ["last_sign_in_at", "2018-12-07 01:32:08.265021"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.265413"], ["id", 10190]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10190], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:32:08.272472"], ["updated_at", "2018-12-07 01:32:08.272472"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:08.273531"], ["updated_at", "2018-12-07 01:32:08.273531"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10190], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$G.xcwPom7FbZC./cYMMRYOc4WOwGvnW85gVMEitQCgeSLyFfz77pa"], ["created_at", "2018-12-07 01:32:08.290187"], ["updated_at", "2018-12-07 01:32:08.290187"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.302336"], ["last_sign_in_at", "2018-12-07 01:32:08.302336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.302747"], ["id", 10191]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10191], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:32:08.310347"], ["updated_at", "2018-12-07 01:32:08.310347"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:08.311543"], ["updated_at", "2018-12-07 01:32:08.311543"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10191], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9S6kEP6I8ZVus1f20aQD7.s6cuEvkNNcFeeGbbgzljNemZqyLb7hC"], ["created_at", "2018-12-07 01:32:08.329005"], ["updated_at", "2018-12-07 01:32:08.329005"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.341554"], ["last_sign_in_at", "2018-12-07 01:32:08.341554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.342003"], ["id", 10192]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10192], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:32:08.349637"], ["updated_at", "2018-12-07 01:32:08.349637"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:08.351084"], ["updated_at", "2018-12-07 01:32:08.351084"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10192], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10192], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10192], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10192], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10192], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.2ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-07", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10192], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-07' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 12ms (Views: 3.2ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$aOwXySlFt3L3y/DV3ZA9JuAvuugIde9z0Ky4kYZpjf3zc58FdvkH6"], ["created_at", "2018-12-07 01:32:08.398689"], ["updated_at", "2018-12-07 01:32:08.398689"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.412175"], ["last_sign_in_at", "2018-12-07 01:32:08.412175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.412735"], ["id", 10193]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10193], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:32:08.427635"], ["updated_at", "2018-12-07 01:32:08.427635"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:32:08.429191"], ["updated_at", "2018-12-07 01:32:08.429191"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10193], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10193], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10193], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10193], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10193], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10193], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10193], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$Fbu5NSAuXzE4IjIAE9/2OeTIfnMj4HLU5SSPoAGP8/GkH.PbbCQeK"], ["created_at", "2018-12-07 01:32:08.465969"], ["updated_at", "2018-12-07 01:32:08.465969"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.484609"], ["last_sign_in_at", "2018-12-07 01:32:08.484609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.485042"], ["id", 10194]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10194], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.6ms)
Rendered users/registrations/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 6ms (Views: 5.9ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$BCap9ojd1MA2O3IM2G1ygOsUcWOdaeshVo7./.oBvqiOAU9o6evPm"], ["created_at", "2018-12-07 01:32:08.525321"], ["updated_at", "2018-12-07 01:32:08.525321"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:08.526493"], ["last_sign_in_at", "2018-12-07 01:32:08.526493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:08.526790"], ["id", 10195]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10195], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$CTXRsXNrlz1vPJCZm.jwf.mfGxNduL95hmfAq19ebChJ73z5ia1TG"], ["created_at", "2018-12-07 01:32:08.539376"], ["updated_at", "2018-12-07 01:32:08.539376"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.557524"], ["last_sign_in_at", "2018-12-07 01:32:08.557524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.557929"], ["id", 10196]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10196], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms) Started GET “/users/10196/edit” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"10196"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10196], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.3ms) Started PUT “/users/10196” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"10196"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10196], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10196], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 10196], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 01:32:08.590534"], ["id", 10196]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10196], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$KiROLe3iVXX2UGH9q/wSQu8iCxiEpswCSzZS1bEhVaHLvyUmmZtZS"], ["created_at", "2018-12-07 01:32:08.604536"], ["updated_at", "2018-12-07 01:32:08.604536"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.617175"], ["last_sign_in_at", "2018-12-07 01:32:08.617175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.617635"], ["id", 10197]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10197], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 01:32:08.625258"], ["updated_at", "2018-12-07 01:32:08.625258"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10197], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10197], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.9ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10197], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10197], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10197], ["room_id", 1], ["created_at", "2018-12-07 01:32:08.652842"], ["updated_at", "2018-12-07 01:32:08.652842"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10197], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$Vsuuv5CpXOKadzu4sai./ekvvtMV9hTeq0EQV3ui4M3z9Hed8N1Dq"], ["created_at", "2018-12-07 01:32:08.664077"], ["updated_at", "2018-12-07 01:32:08.664077"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:32:08.676959"], ["last_sign_in_at", "2018-12-07 01:32:08.676959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:32:08.677338"], ["id", 10198]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10198], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 01:32:08.684846"], ["updated_at", "2018-12-07 01:32:08.684846"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10198], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10198], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.6ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10198], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10198], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10198], ["room_id", 1], ["created_at", "2018-12-07 01:32:08.711990"], ["updated_at", "2018-12-07 01:32:08.711990"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10198], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$5RnRVFqe7gg/0NGNzAZvjeL7.o.avopzMTL2c7MlWJ.umWBa.lrK6"], ["created_at", "2018-12-07 01:32:08.723674"], ["updated_at", "2018-12-07 01:32:08.723674"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.8ms)
Rendered password_resets/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.1ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$vnxIpEy.JgdCa6NmBZ2QWeP.zJsNZ6AiY5YNFtw02CTF9CEXOi/66"], ["updated_at", "2018-12-07 01:32:08.755777"], ["id", 10199]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$ibRnWx.O59kDTcQ5AJFhaeNTv8R3POgMn2QLEJSC3P25FDBxMdZJC"], ["created_at", "2018-12-07 01:32:08.761965"], ["updated_at", "2018-12-07 01:32:08.761965"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.5ms)

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.4ms)
Rendered password_resets/new.html.erb within layouts/application (1.1ms)

Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:32:08 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EdMUlj9GVb69EkTPWtfR8OUTfKlqswNkxCqEaCQ34hpw6k/m5nLIq"], ["created_at", "2018-12-07 01:32:20.234079"], ["updated_at", "2018-12-07 01:32:20.234079"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$S2tLh1.tCkTAkP1DXb3JWuwq9kBs9n8WQ9n1Juky9ZuA7ewCPl6g2"], ["created_at", "2018-12-07 01:32:20.238513"], ["updated_at", "2018-12-07 01:32:20.238513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.246213"], ["updated_at", "2018-12-07 01:32:20.246213"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7700], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10202], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10202], ["room_id", 7700], ["created_at", "2018-12-07 01:32:20.274004"], ["updated_at", "2018-12-07 01:32:20.274004"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3958"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3958], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7700], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10202], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 143.2ms Sent mail to 123@123.com (5.9ms) Date: Thu, 06 Dec 2018 23:32:20 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cda46927e_43c92adf427785fc523ed@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cda468335_43c92adf427785fc52287";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cda468335_43c92adf427785fc52287 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cda468335_43c92adf427785fc52287 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cda468335_43c92adf427785fc52287–

Completed 302 Found in 154ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xeGWlHVMauffBza05mNiFuCH4A2ZYH6tOWZ.ni6KZ0jPc7w8rzVu."], ["created_at", "2018-12-07 01:32:20.437993"], ["updated_at", "2018-12-07 01:32:20.437993"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8rxs40GxLzGzo2M.Gt7TUe9De7nMKAGjr8JeEERU9NZbHzjuwqVgS"], ["created_at", "2018-12-07 01:32:20.441323"], ["updated_at", "2018-12-07 01:32:20.441323"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.442681"], ["updated_at", "2018-12-07 01:32:20.442681"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7701], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10204], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10204], ["room_id", 7701], ["created_at", "2018-12-07 01:32:20.445469"], ["updated_at", "2018-12-07 01:32:20.445469"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3959"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3959], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7701], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10204], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:32:20.450137"], ["id", 3959]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:32:20 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cda46edb5_43c92adf427785fc525af@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cda46e842_43c92adf427785fc524a3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cda46e842_43c92adf427785fc524a3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cda46e842_43c92adf427785fc524a3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cda46e842_43c92adf427785fc524a3–

Completed 302 Found in 9ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iI6uMuzZeOD36bP2jxcyM.tdM1GNMT6Ftkhj2F6mHrhoGY0FVjHhm"], ["created_at", "2018-12-07 01:32:20.459522"], ["updated_at", "2018-12-07 01:32:20.459522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vCbr5p.bFG48ILMmREhqNua/jZ/PtzlRHLvpLQIkudwtkAfR0WFY6"], ["created_at", "2018-12-07 01:32:20.462964"], ["updated_at", "2018-12-07 01:32:20.462964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.465075"], ["updated_at", "2018-12-07 01:32:20.465075"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7702], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10206], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10206], ["room_id", 7702], ["created_at", "2018-12-07 01:32:20.468511"], ["updated_at", "2018-12-07 01:32:20.468511"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VS4hAPYdCVXcwkKZqiBToeWrjkMvAKaFsKqAtNYXtEamix6HEYknu"], ["created_at", "2018-12-07 01:32:20.474984"], ["updated_at", "2018-12-07 01:32:20.474984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CpVKVpn8mOT6ZJvq34zi.OsOKIcyjfn6hXAwcewhmJLwnIjgBvWmG"], ["created_at", "2018-12-07 01:32:20.478261"], ["updated_at", "2018-12-07 01:32:20.478261"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.479819"], ["updated_at", "2018-12-07 01:32:20.479819"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7703], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10208], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10208], ["room_id", 7703], ["created_at", "2018-12-07 01:32:20.482857"], ["updated_at", "2018-12-07 01:32:20.482857"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3961], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$PY6KuY6yYAXieD/RAhgf/.Db20ITb5b6gWFZy0njLtLG9xy2Cql8m"], ["created_at", "2018-12-07 01:32:20.488160"], ["updated_at", "2018-12-07 01:32:20.488160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10209"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "O46JAokDhiZVMdSXGO-OfQ"], ["updated_at", "2018-12-07 01:32:20.491529"], ["id", 10209]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:32:20.493120"], ["reset_sent_at", "2018-12-07 01:32:20.492754"], ["id", 10209]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.4ms Sent mail to teste@unb.com.br (2.5ms) Date: Thu, 06 Dec 2018 23:32:20 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09cda47a3e8_43c92adf427785fc528a4@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cda479dad_43c92adf427785fc527bf";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cda479dad_43c92adf427785fc527bf Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/O46JAokDhiZVMdSXGO-OfQ/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09cda479dad_43c92adf427785fc527bf Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/O46JAokDhiZVMdSXGO-OfQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cda479dad_43c92adf427785fc527bf–

Redirected to test.host/login Completed 302 Found in 13ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$bvLHnqfIzgDuXKcbNU8Ft.VQUjYDbwlFMi2Q6JUqSmSmlJ8Y0DLPC"], ["created_at", "2018-12-07 01:32:20.506592"], ["updated_at", "2018-12-07 01:32:20.506592"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$J/RlwHuxdT8PXs89h4UMtuNWnZ9ZuA8MGwyNIXCDOYHAWtd1Kij4."], ["created_at", "2018-12-07 01:32:20.516295"], ["updated_at", "2018-12-07 01:32:20.516295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10211"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$vp7g9XeoQo54O3WpUE02zuouk2qm/Snlz2cDcntMxnYq97N.4gBda"], ["updated_at", "2018-12-07 01:32:20.521425"], ["id", 10211]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$HH59ULLZSKfD8O9KKyeajuUYbYMr6up9Roy2BEwmPK.dUv65c61PC"], ["created_at", "2018-12-07 01:32:20.528249"], ["updated_at", "2018-12-07 01:32:20.528249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10212"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$V2m9DycKdCLKsQjQscPqbeysBdc/fFngv/XMcVQXSP38FKEToEvt6"], ["created_at", "2018-12-07 01:32:20.538264"], ["updated_at", "2018-12-07 01:32:20.538264"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10213"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 11ms (Views: 1.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$EA6e/hh9UltqbkJPhjKYJ.4ND16e3PVT0s45DBP6xC/h4gWLGQXwa"], ["created_at", "2018-12-07 01:32:20.555764"], ["updated_at", "2018-12-07 01:32:20.555764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10214"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 5ms (Views: 0.9ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$du57v3nSoknvqu.7VJUreelA3mwmpZ7PUlUdg1twQoS3kO8vrP7ma"], ["created_at", "2018-12-07 01:32:20.568086"], ["updated_at", "2018-12-07 01:32:20.568086"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10215"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 0.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EA4Dqb.7NqPnKDMhUYEJxe6/oNhWBlE0ub6SV9ezMQ9BwU1hmoFJe"], ["created_at", "2018-12-07 01:32:20.577495"], ["updated_at", "2018-12-07 01:32:20.577495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.4ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Msm3yuG9ziGdZFHM1NJLGuVIcbM6h8w9S2U2JJwF0GKKFs7VN5dDa"], ["created_at", "2018-12-07 01:32:20.585592"], ["updated_at", "2018-12-07 01:32:20.585592"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.4ms

 (0.5ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2JAbsACNFDTL9C2.XX7dhuedq/gVt9aODrdfNbMWw0ihD8Cg/Lr8G"], ["created_at", "2018-12-07 01:32:20.594976"], ["updated_at", "2018-12-07 01:32:20.594976"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.597244"], ["updated_at", "2018-12-07 01:32:20.597244"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7704], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10218], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10218], ["room_id", 7704], ["created_at", "2018-12-07 01:32:20.600448"], ["updated_at", "2018-12-07 01:32:20.600448"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 2.0ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Vrs9LssxALwuZ4ynPx7FKO0wqUvnHy4jrp5J0gIiVWzMjWi4cLUs2"], ["created_at", "2018-12-07 01:32:20.607881"], ["updated_at", "2018-12-07 01:32:20.607881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.609723"], ["updated_at", "2018-12-07 01:32:20.609723"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7705], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10219], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10219], ["room_id", 7705], ["created_at", "2018-12-07 01:32:20.613456"], ["updated_at", "2018-12-07 01:32:20.613456"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.1ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ylG91n7HHSSNhYaqPX1HfuYwW9x9q/2yYmk8PDIeMCgDvDjM3OiXC"], ["created_at", "2018-12-07 01:32:20.645044"], ["updated_at", "2018-12-07 01:32:20.645044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.646953"], ["updated_at", "2018-12-07 01:32:20.646953"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.654840"], ["last_sign_in_at", "2018-12-07 01:32:20.654840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.655438"], ["id", 10220]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7706"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7706 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7706], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10220], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10220], ["room_id", 7706], ["created_at", "2018-12-07 01:32:20.665273"], ["updated_at", "2018-12-07 01:32:20.665273"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7706], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RjDeJaeTv6CNU.Y7fNejhul4axivXs72LHrxRHrMUxetRUSiXv89."], ["created_at", "2018-12-07 01:32:20.672602"], ["updated_at", "2018-12-07 01:32:20.672602"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.674507"], ["updated_at", "2018-12-07 01:32:20.674507"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.677143"], ["last_sign_in_at", "2018-12-07 01:32:20.677143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.677511"], ["id", 10221]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7707"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7707 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7707], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10221], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10221], ["room_id", 7707], ["created_at", "2018-12-07 01:32:20.683217"], ["updated_at", "2018-12-07 01:32:20.683217"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1KtcUuTD5s2I2mMKiR9MlOlJddsYPwAjdPzWJypAs18CEjrJV5II."], ["created_at", "2018-12-07 01:32:20.690207"], ["updated_at", "2018-12-07 01:32:20.690207"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.692455"], ["updated_at", "2018-12-07 01:32:20.692455"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.695607"], ["last_sign_in_at", "2018-12-07 01:32:20.695607"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.695963"], ["id", 10222]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7708", "user_id"=>"10222"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7708 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7708], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10222], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10222], ["room_id", 7708], ["created_at", "2018-12-07 01:32:20.701446"], ["updated_at", "2018-12-07 01:32:20.701446"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7708", "user_id"=>"10222"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10222], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7708 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7708], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10222], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10222], ["room_id", 7708], ["created_at", "2018-12-07 01:32:20.725716"], ["updated_at", "2018-12-07 01:32:20.725716"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 23ms (ActiveRecord: 2.1ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pCxoR7.HbYd/Or5X17g35u5irQ3z9JCyR46aQu5gKWxrQszPmRBVG"], ["created_at", "2018-12-07 01:32:20.732437"], ["updated_at", "2018-12-07 01:32:20.732437"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.734450"], ["updated_at", "2018-12-07 01:32:20.734450"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.737243"], ["last_sign_in_at", "2018-12-07 01:32:20.737243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.737761"], ["id", 10223]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7709", "user_id"=>"10223"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7709 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7709], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10223], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10223], ["room_id", 7709], ["created_at", "2018-12-07 01:32:20.743258"], ["updated_at", "2018-12-07 01:32:20.743258"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7709", "user_id"=>"10223"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10223], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7709 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7709], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10223], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10223], ["room_id", 7709], ["created_at", "2018-12-07 01:32:20.751336"], ["updated_at", "2018-12-07 01:32:20.751336"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 1.9ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7709], ["user_id", 10223], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ee8W75RqvD6YW./T8qH0au1VZSMpoaZEtPGuHTIJkBDdLF4YUJEBS"], ["created_at", "2018-12-07 01:32:20.758445"], ["updated_at", "2018-12-07 01:32:20.758445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.760139"], ["updated_at", "2018-12-07 01:32:20.760139"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.762490"], ["last_sign_in_at", "2018-12-07 01:32:20.762490"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.762870"], ["id", 10224]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7710", "user_id"=>"10224"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7710 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7710], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10224], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10224], ["room_id", 7710], ["created_at", "2018-12-07 01:32:20.767530"], ["updated_at", "2018-12-07 01:32:20.767530"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7710", "user_id"=>"10224"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10224], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7710 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7710], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10224], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10224], ["room_id", 7710], ["created_at", "2018-12-07 01:32:20.773854"], ["updated_at", "2018-12-07 01:32:20.773854"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7710], ["user_id", 10224], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QNvVTX6Wta/v9Pl/jDMX0eE/LH2khCtWi5ySCWAPP1N4fSYfjhDo2"], ["created_at", "2018-12-07 01:32:20.779942"], ["updated_at", "2018-12-07 01:32:20.779942"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.782164"], ["updated_at", "2018-12-07 01:32:20.782164"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.784375"], ["last_sign_in_at", "2018-12-07 01:32:20.784375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.784834"], ["id", 10225]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7711"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7711], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZxW2XeS44eV61hgqwV88puVvKQD1Aue3XBWwKCjo9XTGixOmGS48G"], ["created_at", "2018-12-07 01:32:20.792444"], ["updated_at", "2018-12-07 01:32:20.792444"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.794163"], ["updated_at", "2018-12-07 01:32:20.794163"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.796202"], ["last_sign_in_at", "2018-12-07 01:32:20.796202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.796623"], ["id", 10226]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7712"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ntqHjtTzOGQfm9/ItojZQ.MnsGGLiWoCAj4UZh7U5xPGyhQrdn29e"], ["created_at", "2018-12-07 01:32:20.803684"], ["updated_at", "2018-12-07 01:32:20.803684"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.805427"], ["updated_at", "2018-12-07 01:32:20.805427"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7713], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10227], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10227], ["room_id", 7713], ["created_at", "2018-12-07 01:32:20.808668"], ["updated_at", "2018-12-07 01:32:20.808668"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7713” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.810265"], ["last_sign_in_at", "2018-12-07 01:32:20.810265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.810670"], ["id", 10227]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7713"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7713], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7713')
Rendered appointments/show.html.erb within layouts/application (6.6ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 113ms (Views: 111.3ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LamBSyn8RBN..9Ab5nz5iex1Y5zXrK2VL51ZaDA4kLDY2P..oK9yS"], ["created_at", "2018-12-07 01:32:20.930724"], ["updated_at", "2018-12-07 01:32:20.930724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.932410"], ["updated_at", "2018-12-07 01:32:20.932410"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7714], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10228], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10228], ["room_id", 7714], ["created_at", "2018-12-07 01:32:20.935396"], ["updated_at", "2018-12-07 01:32:20.935396"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3973/edit” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.936915"], ["last_sign_in_at", "2018-12-07 01:32:20.936915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.937272"], ["id", 10228]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3973"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3973], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$A5zqAsxDighXOHOB3Ni3lOkeRC18Q8sqwVqI8os9c6edp4jqQSH2W"], ["created_at", "2018-12-07 01:32:20.948480"], ["updated_at", "2018-12-07 01:32:20.948480"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.950157"], ["last_sign_in_at", "2018-12-07 01:32:20.950157"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.950516"], ["id", 10229]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kH2OLbmii8rmHrLP52Lff.ixT0RInfpZLrXcBjc7twmf32LaY/Kni"], ["created_at", "2018-12-07 01:32:20.961174"], ["updated_at", "2018-12-07 01:32:20.961174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.962923"], ["updated_at", "2018-12-07 01:32:20.962923"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7715], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10230], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10230], ["room_id", 7715], ["created_at", "2018-12-07 01:32:20.965857"], ["updated_at", "2018-12-07 01:32:20.965857"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7715], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10230], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10230], ["room_id", 7715], ["created_at", "2018-12-07 01:32:20.968666"], ["updated_at", "2018-12-07 01:32:20.968666"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.970133"], ["last_sign_in_at", "2018-12-07 01:32:20.970133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.970529"], ["id", 10230]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10230]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jUk5lg/ss3qgc.4Wkr71..Yuldh2fLgX63vIGyn.LYm1UFGxE/mVe"], ["created_at", "2018-12-07 01:32:20.984941"], ["updated_at", "2018-12-07 01:32:20.984941"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:20.986711"], ["updated_at", "2018-12-07 01:32:20.986711"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7716], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10231], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10231], ["room_id", 7716], ["created_at", "2018-12-07 01:32:20.990136"], ["updated_at", "2018-12-07 01:32:20.990136"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7716], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10231], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10231], ["room_id", 7716], ["created_at", "2018-12-07 01:32:20.993028"], ["updated_at", "2018-12-07 01:32:20.993028"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:32:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:20.994523"], ["last_sign_in_at", "2018-12-07 01:32:20.994523"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:20.994863"], ["id", 10231]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10231]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3VI0D66Z8YybXqvYRpg/Au1MQQVMXTr2iMQRA2EAdRzTGxwuCyLga"], ["created_at", "2018-12-07 01:32:21.003971"], ["updated_at", "2018-12-07 01:32:21.003971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.005519"], ["updated_at", "2018-12-07 01:32:21.005519"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7717], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10232], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10232], ["room_id", 7717], ["created_at", "2018-12-07 01:32:21.008291"], ["updated_at", "2018-12-07 01:32:21.008291"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/3978” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.009767"], ["last_sign_in_at", "2018-12-07 01:32:21.009767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.010090"], ["id", 10232]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"3978"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3978], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 3978]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vpi1WfyeNIcBjGm3HlZ.eOJQ3V/f7BlobMU8xtfaFEOUojghaTCoy"], ["created_at", "2018-12-07 01:32:21.018230"], ["updated_at", "2018-12-07 01:32:21.018230"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.020206"], ["updated_at", "2018-12-07 01:32:21.020206"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wylMqIh8mqXQSgeA6GEhFOFjqzrM5RnFuTjCtCHBqjYP2IvojLEne"], ["created_at", "2018-12-07 01:32:21.023510"], ["updated_at", "2018-12-07 01:32:21.023510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7718], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10234], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10234], ["room_id", 7718], ["created_at", "2018-12-07 01:32:21.026482"], ["updated_at", "2018-12-07 01:32:21.026482"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3979” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.028349"], ["last_sign_in_at", "2018-12-07 01:32:21.028349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.028691"], ["id", 10233]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3979"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3979], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7718], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10234], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6gy7DL9Q56CR.iECnpIkVeEQgpd6QtK4oT8w.mgWjwh20/vep9bXa"], ["created_at", "2018-12-07 01:32:21.037789"], ["updated_at", "2018-12-07 01:32:21.037789"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.039307"], ["updated_at", "2018-12-07 01:32:21.039307"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7tWCIiUfBbtITRvIjijI8.MQTBH7xPKVhT3SRyzcKL6j7pEXt4vCq"], ["created_at", "2018-12-07 01:32:21.042188"], ["updated_at", "2018-12-07 01:32:21.042188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7719], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10236], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10236], ["room_id", 7719], ["created_at", "2018-12-07 01:32:21.044954"], ["updated_at", "2018-12-07 01:32:21.044954"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3980” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.046742"], ["last_sign_in_at", "2018-12-07 01:32:21.046742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.047075"], ["id", 10235]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"3980"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3980], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7719], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10236], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 4ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JPZLk6lC1Z5.37ERy/YFMuV4x2F0lVWZ9BmKJwkEmsVOez.aRef9y"], ["created_at", "2018-12-07 01:32:21.056604"], ["updated_at", "2018-12-07 01:32:21.056604"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.058244"], ["updated_at", "2018-12-07 01:32:21.058244"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yUDtpZ6VMPIZxOZCqSOg4.Epu6Fg5GrPF2yeh/Ef0JQtK4PH9fTX6"], ["created_at", "2018-12-07 01:32:21.061336"], ["updated_at", "2018-12-07 01:32:21.061336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7720], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10238], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10238], ["room_id", 7720], ["created_at", "2018-12-07 01:32:21.064329"], ["updated_at", "2018-12-07 01:32:21.064329"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/3981” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.066316"], ["last_sign_in_at", "2018-12-07 01:32:21.066316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.066703"], ["id", 10237]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"3981"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3981], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7720], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10238], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:32:21.070974"], ["id", 3981]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.0ms Sent mail to 123@123.com (18.6ms) Date: Thu, 06 Dec 2018 23:32:21 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09cda5162a1_43c92adf427785fc53524@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09cda511f1e_43c92adf427785fc5346";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09cda511f1e_43c92adf427785fc5346 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09cda511f1e_43c92adf427785fc5346 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09cda511f1e_43c92adf427785fc5346–

Completed 302 Found in 25ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZRJcPbUAlVpCyt.mjxzLv.QCua9vLi.AeCyOy2JzFpro0NIdQTrgu"], ["created_at", "2018-12-07 01:32:21.098725"], ["updated_at", "2018-12-07 01:32:21.098725"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.100555"], ["updated_at", "2018-12-07 01:32:21.100555"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$frGv0DRbhQGhM19Tw.Uki.YTM3ZMvs7ChQSOAdefM1ZlqILT7YMwe"], ["created_at", "2018-12-07 01:32:21.104012"], ["updated_at", "2018-12-07 01:32:21.104012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7721], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10240], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10240], ["room_id", 7721], ["created_at", "2018-12-07 01:32:21.107267"], ["updated_at", "2018-12-07 01:32:21.107267"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:32:21.108706"], ["id", 3982]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7721], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10240], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10240], ["room_id", 7721], ["created_at", "2018-12-07 01:32:21.111506"], ["updated_at", "2018-12-07 01:32:21.111506"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:32:21.113110"], ["id", 3983]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.115091"], ["last_sign_in_at", "2018-12-07 01:32:21.115091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.115554"], ["id", 10239]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10240], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7721], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10240], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7721], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n9XMyWSgeANYamp11ExpbuS4mIVl/YijrzI0AcD/MdOMoRtFIlLN."], ["created_at", "2018-12-07 01:32:21.130354"], ["updated_at", "2018-12-07 01:32:21.130354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.132123"], ["updated_at", "2018-12-07 01:32:21.132123"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$meYBf6DwA5LB84m0eHnS9OyflEcX6yX/AEY8DLGIYHLC9QRXZwsUG"], ["created_at", "2018-12-07 01:32:21.135354"], ["updated_at", "2018-12-07 01:32:21.135354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7722], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10242], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10242], ["room_id", 7722], ["created_at", "2018-12-07 01:32:21.138514"], ["updated_at", "2018-12-07 01:32:21.138514"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:32:21.139960"], ["id", 3984]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7722], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10242], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10242], ["room_id", 7722], ["created_at", "2018-12-07 01:32:21.142831"], ["updated_at", "2018-12-07 01:32:21.142831"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:32:21.144406"], ["id", 3985]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.146303"], ["last_sign_in_at", "2018-12-07 01:32:21.146303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.146946"], ["id", 10241]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10242], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7722], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10242], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7722], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BOchVJy2xTbNy0Y3LcwWeuiPhfzS8iJkyXhuMGkZwCmF80RFAsIka"], ["created_at", "2018-12-07 01:32:21.160435"], ["updated_at", "2018-12-07 01:32:21.160435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.162182"], ["last_sign_in_at", "2018-12-07 01:32:21.162182"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.162533"], ["id", 10243]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GDRDAyslDU6zG.7AyOjCsOUlzAAi3pbIZumzGhQhYKkMktv2WzW1q"], ["created_at", "2018-12-07 01:32:21.176318"], ["updated_at", "2018-12-07 01:32:21.176318"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.178534"], ["last_sign_in_at", "2018-12-07 01:32:21.178534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.179129"], ["id", 10244]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D4v0xfv9b4WK5HY9emEORef6N6enj8XhmA.rK9GVgtxdEmEO2FBT6"], ["created_at", "2018-12-07 01:32:21.185854"], ["updated_at", "2018-12-07 01:32:21.185854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.187622"], ["last_sign_in_at", "2018-12-07 01:32:21.187622"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.188002"], ["id", 10245]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kKpUqds9faNC4pADwAdjzOmSCq.zrS6LLfF6j1XCvIcWbfBvlnoNu"], ["created_at", "2018-12-07 01:32:21.198214"], ["updated_at", "2018-12-07 01:32:21.198214"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.199929"], ["last_sign_in_at", "2018-12-07 01:32:21.199929"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.200295"], ["id", 10246]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iuxCnXbjs/y0m2BEp.SPr.j9.2p5GeXOIusV9uG71JtvRt.2slUO6"], ["created_at", "2018-12-07 01:32:21.215688"], ["updated_at", "2018-12-07 01:32:21.215688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.217499"], ["updated_at", "2018-12-07 01:32:21.217499"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7723” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.219088"], ["last_sign_in_at", "2018-12-07 01:32:21.219088"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.219503"], ["id", 10247]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7723"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7723], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rI94QQ4GfIL/yOdFLlEhROLhZbqzljfNXohpeV9qAhlkO1LhTr.zm"], ["created_at", "2018-12-07 01:32:21.229349"], ["updated_at", "2018-12-07 01:32:21.229349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.231137"], ["updated_at", "2018-12-07 01:32:21.231137"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7724” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.232732"], ["last_sign_in_at", "2018-12-07 01:32:21.232732"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.233127"], ["id", 10248]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7724"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7724], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.240969"], ["updated_at", "2018-12-07 01:32:21.240969"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7725” for 127.0.0.1 at 2018-12-06 23:32:21 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7725"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S0sCWWnKd5xliRfVTEHv3esP9X7nqsJyUhp6sFeytk.SClojrA9MO"], ["created_at", "2018-12-07 01:32:21.248360"], ["updated_at", "2018-12-07 01:32:21.248360"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.250120"], ["updated_at", "2018-12-07 01:32:21.250120"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7726” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.251714"], ["last_sign_in_at", "2018-12-07 01:32:21.251714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.252146"], ["id", 10249]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7726"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.261387"], ["updated_at", "2018-12-07 01:32:21.261387"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7727” for 127.0.0.1 at 2018-12-06 23:32:21 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7727"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y5mAR.XxfcRIQixqoa8uSO4qUIjQo363DCVZLmvvArRW8BYF9BY3m"], ["created_at", "2018-12-07 01:32:21.268411"], ["updated_at", "2018-12-07 01:32:21.268411"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.271500"], ["updated_at", "2018-12-07 01:32:21.271500"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7728/edit” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.274537"], ["last_sign_in_at", "2018-12-07 01:32:21.274537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.275011"], ["id", 10250]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7728"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7728], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 9ms (Views: 8.0ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hrQwXO4FSgt4sDbOP.s6Y.Ev9UtsJFgkcTQQqQnxG2XZQUO820mEm"], ["created_at", "2018-12-07 01:32:21.292799"], ["updated_at", "2018-12-07 01:32:21.292799"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.295285"], ["updated_at", "2018-12-07 01:32:21.295285"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7729/edit” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.297268"], ["last_sign_in_at", "2018-12-07 01:32:21.297268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.297992"], ["id", 10251]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7729"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7729], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.313254"], ["updated_at", "2018-12-07 01:32:21.313254"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7730” for 127.0.0.1 at 2018-12-06 23:32:21 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7730"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K.BzkWtNeYYOdNhi4HfRl.s3U4jyZmk.Sj6LcUjMt6rWgOJhnDC0C"], ["created_at", "2018-12-07 01:32:21.323022"], ["updated_at", "2018-12-07 01:32:21.323022"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.329267"], ["last_sign_in_at", "2018-12-07 01:32:21.329267"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.329909"], ["id", 10252]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.333590"], ["updated_at", "2018-12-07 01:32:21.333590"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KH/ptHS9i0pV5pGHiTuMsObPvXdBuvSZosnbKigj7pN330UzqDwZK"], ["created_at", "2018-12-07 01:32:21.342472"], ["updated_at", "2018-12-07 01:32:21.342472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.345490"], ["last_sign_in_at", "2018-12-07 01:32:21.345490"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.345909"], ["id", 10253]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.349394"], ["updated_at", "2018-12-07 01:32:21.349394"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b2rtZ8vzlwZHKM6Pv974H.xhvxNjiglp00mU/wnb52Djef2kQ85ra"], ["created_at", "2018-12-07 01:32:21.356051"], ["updated_at", "2018-12-07 01:32:21.356051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.359137"], ["last_sign_in_at", "2018-12-07 01:32:21.359137"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.359527"], ["id", 10254]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WMlkx65IkkLHyXmjPNMBf.BACoHYHmLHx.Ozr471pCAxNazBV3Du."], ["created_at", "2018-12-07 01:32:21.371412"], ["updated_at", "2018-12-07 01:32:21.371412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.374763"], ["last_sign_in_at", "2018-12-07 01:32:21.374763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.375169"], ["id", 10255]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bWYGOIL9VMAH58rcNBDjA.2nTAVguQ64QZzH916QHv4eTkvz6kkS2"], ["created_at", "2018-12-07 01:32:21.386071"], ["updated_at", "2018-12-07 01:32:21.386071"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.389332"], ["last_sign_in_at", "2018-12-07 01:32:21.389332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.389739"], ["id", 10256]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6d63IKLs5T.Ggx1w/e38Bu.QzzRHs5CIa5uaFBnohyXOKbCN.HO4W"], ["created_at", "2018-12-07 01:32:21.398031"], ["updated_at", "2018-12-07 01:32:21.398031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.400736"], ["updated_at", "2018-12-07 01:32:21.400736"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7733” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.404118"], ["last_sign_in_at", "2018-12-07 01:32:21.404118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.404576"], ["id", 10257]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7733"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7733], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:32:21.409167"], ["id", 7733]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7733 Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BGKQS5xo2gSewdPmJKTw8eh7G6ieSr4rJC18dCA5Cb4vwmIEpNSwS"], ["created_at", "2018-12-07 01:32:21.417376"], ["updated_at", "2018-12-07 01:32:21.417376"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.419603"], ["updated_at", "2018-12-07 01:32:21.419603"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7734” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.422925"], ["last_sign_in_at", "2018-12-07 01:32:21.422925"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.423332"], ["id", 10258]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7734"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7734], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:32:21.428160"], ["id", 7734]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7734 Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0YzPQOCkP3PHlFANqD0xYesgP4KbomLX3QL5uOa3yPMDA/wUSWrRO"], ["created_at", "2018-12-07 01:32:21.436451"], ["updated_at", "2018-12-07 01:32:21.436451"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.438687"], ["updated_at", "2018-12-07 01:32:21.438687"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7735” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.441324"], ["last_sign_in_at", "2018-12-07 01:32:21.441324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.442016"], ["id", 10259]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7735"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7735], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LswszZs6Ku77SUnr5SvSAOpcQMYtVyA7IQKZY.Mj0sdgl6oXaLM8C"], ["created_at", "2018-12-07 01:32:21.457753"], ["updated_at", "2018-12-07 01:32:21.457753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.459897"], ["updated_at", "2018-12-07 01:32:21.459897"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7736” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.464216"], ["last_sign_in_at", "2018-12-07 01:32:21.464216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.464784"], ["id", 10260]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7736"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7736], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 8ms (Views: 5.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$grhVEeu6.Ade7yu6gCA6SekwVraSzP6YnvqY.yKHv5e3CTRKuqGbG"], ["created_at", "2018-12-07 01:32:21.481034"], ["updated_at", "2018-12-07 01:32:21.481034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.484197"], ["last_sign_in_at", "2018-12-07 01:32:21.484197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.484599"], ["id", 10261]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8JknXbL20HG9TyX7PLId8uwEn/ZkzsV6PDCRz2UKHO29aXhYK3InS"], ["created_at", "2018-12-07 01:32:21.492548"], ["updated_at", "2018-12-07 01:32:21.492548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.495045"], ["updated_at", "2018-12-07 01:32:21.495045"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7737” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.497630"], ["last_sign_in_at", "2018-12-07 01:32:21.497630"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.498095"], ["id", 10262]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7737"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7737], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7737]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IYynJC77zmZS/Kqcy/pVOedAt1Whw9/PjdXremIUbuRMI4/PVq/Ia"], ["created_at", "2018-12-07 01:32:21.507870"], ["updated_at", "2018-12-07 01:32:21.507870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.509788"], ["updated_at", "2018-12-07 01:32:21.509788"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7738” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.511498"], ["last_sign_in_at", "2018-12-07 01:32:21.511498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.511886"], ["id", 10263]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7738"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7738], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7738]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SotXCeaxtZO2LHVhSbkRHuxMTiA/KY9PwRxbIEDmi4NPSh0Nyurrm"], ["created_at", "2018-12-07 01:32:21.535654"], ["updated_at", "2018-12-07 01:32:21.535654"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.537622"], ["updated_at", "2018-12-07 01:32:21.537622"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7739” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.539318"], ["last_sign_in_at", "2018-12-07 01:32:21.539318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.539744"], ["id", 10264]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7739"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qv8oQGS5T620uAK0AqzGKujleZPeCTyQmriXU72Zbzvl5CX7w5CJu"], ["created_at", "2018-12-07 01:32:21.546683"], ["updated_at", "2018-12-07 01:32:21.546683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.548362"], ["updated_at", "2018-12-07 01:32:21.548362"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7740” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.549830"], ["last_sign_in_at", "2018-12-07 01:32:21.549830"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.550205"], ["id", 10265]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7740"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ipuL96Yzx.R2AE/Rg5v9L.1aPA575tnt1OE7Jb/2Mapot3uV89byG"], ["created_at", "2018-12-07 01:32:21.556422"], ["updated_at", "2018-12-07 01:32:21.556422"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.558338"], ["last_sign_in_at", "2018-12-07 01:32:21.558338"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.558938"], ["id", 10266]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CuGLAyd0ELK.rL5GM2.vUutcAfCTbdqVpSO.8uG1LMwwYKr9OBRPm"], ["created_at", "2018-12-07 01:32:21.571472"], ["updated_at", "2018-12-07 01:32:21.571472"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.573132"], ["updated_at", "2018-12-07 01:32:21.573132"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.574487"], ["updated_at", "2018-12-07 01:32:21.574487"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.575776"], ["updated_at", "2018-12-07 01:32:21.575776"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7741], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10267], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10267], ["room_id", 7741], ["created_at", "2018-12-07 01:32:21.578635"], ["updated_at", "2018-12-07 01:32:21.578635"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.580272"], ["last_sign_in_at", "2018-12-07 01:32:21.580272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.580659"], ["id", 10267]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.5ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yChe5Hw.hU6hbSCKlmdTyOI6XUhU1fC2QQZnu6kAHEvNOu0TBMXzC"], ["created_at", "2018-12-07 01:32:21.598128"], ["updated_at", "2018-12-07 01:32:21.598128"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.599914"], ["updated_at", "2018-12-07 01:32:21.599914"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.601184"], ["updated_at", "2018-12-07 01:32:21.601184"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:32:21.602432"], ["updated_at", "2018-12-07 01:32:21.602432"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7744], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10268], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10268], ["room_id", 7744], ["created_at", "2018-12-07 01:32:21.605348"], ["updated_at", "2018-12-07 01:32:21.605348"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:32:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:32:21.606957"], ["last_sign_in_at", "2018-12-07 01:32:21.606957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:32:21.607333"], ["id", 10268]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8I93R1jsxTN3mrJRUYTCtedomPdEn4W09CdKbhmNMheC4x1M6QuTS"], ["created_at", "2018-12-07 01:34:25.460095"], ["updated_at", "2018-12-07 01:34:25.460095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AlBMiFPbP54UcXD3JVWc3OcYHDXP40zqqgSyoaV8VXXzfscdR2fiu"], ["created_at", "2018-12-07 01:34:25.465959"], ["updated_at", "2018-12-07 01:34:25.465959"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.480568"], ["updated_at", "2018-12-07 01:34:25.480568"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7747], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10270], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10270], ["room_id", 7747], ["created_at", "2018-12-07 01:34:25.515075"], ["updated_at", "2018-12-07 01:34:25.515075"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"3988"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3988], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7747], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10270], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 129.8ms Sent mail to 123@123.com (5.4ms) Date: Thu, 06 Dec 2018 23:34:25 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09ce21a478f_44602b220be2c5f454697@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce21a3943_44602b220be2c5f454520";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce21a3943_44602b220be2c5f454520 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09ce21a3943_44602b220be2c5f454520 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce21a3943_44602b220be2c5f454520–

Completed 302 Found in 150ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G30HpfEchwOHErcxFODx3e387i1YmdoVO0vf0Hdq1ROWakervMGom"], ["created_at", "2018-12-07 01:34:25.680802"], ["updated_at", "2018-12-07 01:34:25.680802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oJvqQBA2cCd7niDT4.thqeFd7z4iEDHrfJbulQJOir8fUfzouzGeK"], ["created_at", "2018-12-07 01:34:25.684000"], ["updated_at", "2018-12-07 01:34:25.684000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.685270"], ["updated_at", "2018-12-07 01:34:25.685270"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7748], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10272], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10272], ["room_id", 7748], ["created_at", "2018-12-07 01:34:25.687963"], ["updated_at", "2018-12-07 01:34:25.687963"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"3989"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3989], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7748], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10272], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:34:25.692391"], ["id", 3989]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:34:25 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09ce21a9fde_44602b220be2c5f45483e@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce21a9a61_44602b220be2c5f4547fb";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce21a9a61_44602b220be2c5f4547fb Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09ce21a9a61_44602b220be2c5f4547fb Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce21a9a61_44602b220be2c5f4547fb–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pJGdt.oks.6lWQMtekWhyu882esjqYscmFrWxusZenkQ5cr439TrO"], ["created_at", "2018-12-07 01:34:25.701629"], ["updated_at", "2018-12-07 01:34:25.701629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MGX1d3LPVRwzrsNkPJYwN.NV4RVie45ARCPHvTdvl7y7jf8iqt27u"], ["created_at", "2018-12-07 01:34:25.704978"], ["updated_at", "2018-12-07 01:34:25.704978"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.706684"], ["updated_at", "2018-12-07 01:34:25.706684"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7749], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10274], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10274], ["room_id", 7749], ["created_at", "2018-12-07 01:34:25.710186"], ["updated_at", "2018-12-07 01:34:25.710186"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.vssC2TqEKy6I.VTpBVZSeYafvp0jMQCyViUbJk0UNXa9puatydYi"], ["created_at", "2018-12-07 01:34:25.716894"], ["updated_at", "2018-12-07 01:34:25.716894"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NkFmqdIEy6mvyT33UqKkd.46v6o10ex9/hu2JbrK0RCJoI/XUIBGi"], ["created_at", "2018-12-07 01:34:25.720100"], ["updated_at", "2018-12-07 01:34:25.720100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.721520"], ["updated_at", "2018-12-07 01:34:25.721520"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7750], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10276], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10276], ["room_id", 7750], ["created_at", "2018-12-07 01:34:25.724275"], ["updated_at", "2018-12-07 01:34:25.724275"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3991], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$IEqr2SlGhxVWPOVkTeVuYu459GXLHaRGswmrLkv4A/PPEJdIH6CNy"], ["created_at", "2018-12-07 01:34:25.729362"], ["updated_at", "2018-12-07 01:34:25.729362"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10277"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "PHhFex-5OtQ1v25xRHKRAA"], ["updated_at", "2018-12-07 01:34:25.732571"], ["id", 10277]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:34:25.734100"], ["reset_sent_at", "2018-12-07 01:34:25.733757"], ["id", 10277]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.4ms)

UserMailer#password_reset: processed outbound mail in 5.3ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:34:25 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09ce21b4fd0_44602b220be2c5f455189@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce21b49d7_44602b220be2c5f4550e3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce21b49d7_44602b220be2c5f4550e3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/PHhFex-5OtQ1v25xRHKRAA/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09ce21b49d7_44602b220be2c5f4550e3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/PHhFex-5OtQ1v25xRHKRAA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce21b49d7_44602b220be2c5f4550e3–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$SOlquKcdRM9Ajy1QnIBCuO1uCW.8nKu/emvVT15WSf1g2KRIwzyIi"], ["created_at", "2018-12-07 01:34:25.747043"], ["updated_at", "2018-12-07 01:34:25.747043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$aow9umtRDVi8L7L7MyAAVeRDTe5NvobPo9DX97DsygIXu50SSGyue"], ["created_at", "2018-12-07 01:34:25.754306"], ["updated_at", "2018-12-07 01:34:25.754306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10279"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$lEZ08QAi18JtvfUstrTsJOO0lnMm1OgFbtYmOcKjlfn6g.zB4xoLK"], ["updated_at", "2018-12-07 01:34:25.758275"], ["id", 10279]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$.U9MnK5sQ64vFlf/aZb6FO72n4T4.EjcVBq2OpXpvJf05OlXr3l1."], ["created_at", "2018-12-07 01:34:25.763009"], ["updated_at", "2018-12-07 01:34:25.763009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10280"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$.DpfTesuFiHilZeKezC7aeKkBQlX4FkX/qYX2A/A07GeMdYuCUygC"], ["created_at", "2018-12-07 01:34:25.770827"], ["updated_at", "2018-12-07 01:34:25.770827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10281"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$KefyFrz/oF8sRl0/8BZAzOZtcA3RAta8pPUS4y9./x24ReUSWUHV2"], ["created_at", "2018-12-07 01:34:25.784492"], ["updated_at", "2018-12-07 01:34:25.784492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10282"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fADWkWHPvrxapT82dqwuEu9CYcbEwnqIIRQDPcxRivbuJrSiZqQkO"], ["created_at", "2018-12-07 01:34:25.792801"], ["updated_at", "2018-12-07 01:34:25.792801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10283"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O9wLudVkTyT2YpApfSuSN.VwoQitaLeOTyVPRmnsf6w1qJhTty6fO"], ["created_at", "2018-12-07 01:34:25.800138"], ["updated_at", "2018-12-07 01:34:25.800138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.0ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D3urMGLzVoohRSgw.m6DCucr82A8c0jbSFewPNu3r9cWhyrACUh/e"], ["created_at", "2018-12-07 01:34:25.807234"], ["updated_at", "2018-12-07 01:34:25.807234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/Nkknu5FIm0OQir3dmlZ2OpAzPK2norAEaCQycd3hxQo4yAemY3Pi"], ["created_at", "2018-12-07 01:34:25.814356"], ["updated_at", "2018-12-07 01:34:25.814356"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.815886"], ["updated_at", "2018-12-07 01:34:25.815886"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7751], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10286], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10286], ["room_id", 7751], ["created_at", "2018-12-07 01:34:25.818710"], ["updated_at", "2018-12-07 01:34:25.818710"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v6hKitZFYX69cIaw6ivOEudDVq0PEMvCDu6aHAFnWrAk9/m2m2LmS"], ["created_at", "2018-12-07 01:34:25.824927"], ["updated_at", "2018-12-07 01:34:25.824927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.826424"], ["updated_at", "2018-12-07 01:34:25.826424"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7752], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10287], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10287], ["room_id", 7752], ["created_at", "2018-12-07 01:34:25.829427"], ["updated_at", "2018-12-07 01:34:25.829427"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5KDu9ZKC5NuMf1LDx6HHbeBHs6MigxHmWQ18lBJ0vLUSvAUl1BH86"], ["created_at", "2018-12-07 01:34:25.850680"], ["updated_at", "2018-12-07 01:34:25.850680"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.852129"], ["updated_at", "2018-12-07 01:34:25.852129"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.858929"], ["last_sign_in_at", "2018-12-07 01:34:25.858929"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.859281"], ["id", 10288]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7753"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7753 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9d9Kb6ulVnjGairVdu.WBerT9Q83qCtgnZwPybZPd1eWUbsTPQQOq"], ["created_at", "2018-12-07 01:34:25.870510"], ["updated_at", "2018-12-07 01:34:25.870510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.872144"], ["updated_at", "2018-12-07 01:34:25.872144"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.874016"], ["last_sign_in_at", "2018-12-07 01:34:25.874016"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.874405"], ["id", 10289]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7754"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7754 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TqaF9bMbU3Gjmxed2H8BQehNRty.biIww4X2BoTmGGPZnD/F1pglW"], ["created_at", "2018-12-07 01:34:25.881423"], ["updated_at", "2018-12-07 01:34:25.881423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.882976"], ["updated_at", "2018-12-07 01:34:25.882976"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.885030"], ["last_sign_in_at", "2018-12-07 01:34:25.885030"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.885379"], ["id", 10290]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7755", "user_id"=>"10290"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7755 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r35Tf8ZFTY0viksdhYPhZeqirFf4Ov/Nts0XgTEPvbpcTsD5MaMiS"], ["created_at", "2018-12-07 01:34:25.892081"], ["updated_at", "2018-12-07 01:34:25.892081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.893631"], ["updated_at", "2018-12-07 01:34:25.893631"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.895885"], ["last_sign_in_at", "2018-12-07 01:34:25.895885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.896346"], ["id", 10291]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7756", "user_id"=>"10291"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7756 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3y9P5YLhgY5wJ.O0KlneVuE1NIPuhSYXIXIRzWDz5l7bcJG3QWrmS"], ["created_at", "2018-12-07 01:34:25.904405"], ["updated_at", "2018-12-07 01:34:25.904405"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.906149"], ["updated_at", "2018-12-07 01:34:25.906149"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.908399"], ["last_sign_in_at", "2018-12-07 01:34:25.908399"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.908830"], ["id", 10292]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7757", "user_id"=>"10292"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7757 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1rcqlLubTeXY7LriwvuSQuZcDIrjdpfxg77AJGJRHdix2eFYb4sO2"], ["created_at", "2018-12-07 01:34:25.915882"], ["updated_at", "2018-12-07 01:34:25.915882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.917490"], ["updated_at", "2018-12-07 01:34:25.917490"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.919241"], ["last_sign_in_at", "2018-12-07 01:34:25.919241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.919637"], ["id", 10293]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7758"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rtza4lJKczzWKRWZc1oJm.oDRl4uaQ1lJv3fsbXlB4LHHbgwm66ta"], ["created_at", "2018-12-07 01:34:25.926256"], ["updated_at", "2018-12-07 01:34:25.926256"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.927826"], ["updated_at", "2018-12-07 01:34:25.927826"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.930070"], ["last_sign_in_at", "2018-12-07 01:34:25.930070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.930510"], ["id", 10294]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7759"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Completed 500 Internal Server Error in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4t5CC/FtCX5x7st6CV3BHOT0PzIQad/IKJ7iHCqwIx1X5fOqmKTDe"], ["created_at", "2018-12-07 01:34:25.937566"], ["updated_at", "2018-12-07 01:34:25.937566"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:25.939073"], ["updated_at", "2018-12-07 01:34:25.939073"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7760], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10295], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10295], ["room_id", 7760], ["created_at", "2018-12-07 01:34:25.941677"], ["updated_at", "2018-12-07 01:34:25.941677"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7760” for 127.0.0.1 at 2018-12-06 23:34:25 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:25.943108"], ["last_sign_in_at", "2018-12-07 01:34:25.943108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:25.943439"], ["id", 10295]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7760"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7760], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7760')
Rendered appointments/show.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-user.html.erb (2.7ms)

Completed 200 OK in 143ms (Views: 140.4ms | ActiveRecord: 0.3ms)

 (0.6ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bu613DgVw.Fv3mtfneGUDuCrJ9RB5mkaU.Mlv/5ZSHQ2Vfam1rXwC"], ["created_at", "2018-12-07 01:34:26.094838"], ["updated_at", "2018-12-07 01:34:26.094838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.097657"], ["updated_at", "2018-12-07 01:34:26.097657"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7761], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10296], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10296], ["room_id", 7761], ["created_at", "2018-12-07 01:34:26.106708"], ["updated_at", "2018-12-07 01:34:26.106708"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/3995/edit” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.109416"], ["last_sign_in_at", "2018-12-07 01:34:26.109416"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.110602"], ["id", 10296]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"3995"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 3995], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$q.1kXfgME9IWiHBphnraUePrk4UUV80HasT7Fy1crIrGImxlRQo6C"], ["created_at", "2018-12-07 01:34:26.134937"], ["updated_at", "2018-12-07 01:34:26.134937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.138233"], ["last_sign_in_at", "2018-12-07 01:34:26.138233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.138659"], ["id", 10297]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IieQrT6zMEt1l9y4E9m8pe5b8ypfNCc8SE58OGBbBJ01tHXMbLD7e"], ["created_at", "2018-12-07 01:34:26.159872"], ["updated_at", "2018-12-07 01:34:26.159872"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.163162"], ["updated_at", "2018-12-07 01:34:26.163162"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7762], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10298], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10298], ["room_id", 7762], ["created_at", "2018-12-07 01:34:26.172663"], ["updated_at", "2018-12-07 01:34:26.172663"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7762], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10298], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10298], ["room_id", 7762], ["created_at", "2018-12-07 01:34:26.178940"], ["updated_at", "2018-12-07 01:34:26.178940"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.181864"], ["last_sign_in_at", "2018-12-07 01:34:26.181864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.183000"], ["id", 10298]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10298]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (8.7ms)

Completed 200 OK in 24ms (Views: 16.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$n1/hf3/y7m.qEbnbeVhtKeviTz9tr7xUpVb6Au1KyA9sXu.J/1oMe"], ["created_at", "2018-12-07 01:34:26.215884"], ["updated_at", "2018-12-07 01:34:26.215884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.218046"], ["updated_at", "2018-12-07 01:34:26.218046"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7763], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10299], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10299], ["room_id", 7763], ["created_at", "2018-12-07 01:34:26.221727"], ["updated_at", "2018-12-07 01:34:26.221727"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7763], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10299], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10299], ["room_id", 7763], ["created_at", "2018-12-07 01:34:26.225472"], ["updated_at", "2018-12-07 01:34:26.225472"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.227532"], ["last_sign_in_at", "2018-12-07 01:34:26.227532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.228032"], ["id", 10299]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10299]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BqdRg0Pvx1k9WfzxNVRWGuIZVuupDu2PHjOV7PYBqJX81sXFI6hmW"], ["created_at", "2018-12-07 01:34:26.238656"], ["updated_at", "2018-12-07 01:34:26.238656"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.240648"], ["updated_at", "2018-12-07 01:34:26.240648"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7764], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10300], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10300], ["room_id", 7764], ["created_at", "2018-12-07 01:34:26.244546"], ["updated_at", "2018-12-07 01:34:26.244546"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4000” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.246392"], ["last_sign_in_at", "2018-12-07 01:34:26.246392"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.246878"], ["id", 10300]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4000"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4000], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4000]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J.nQGW7sZgQpGQGF4crP9e93v9S.WUSxGRXJDT3A6veyj1jV4zPku"], ["created_at", "2018-12-07 01:34:26.255977"], ["updated_at", "2018-12-07 01:34:26.255977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.257600"], ["updated_at", "2018-12-07 01:34:26.257600"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6eHNSF/pCobjjQNpPBhmRetRFVri2QKOV33gMwKTlfSmiamL2vHeq"], ["created_at", "2018-12-07 01:34:26.260769"], ["updated_at", "2018-12-07 01:34:26.260769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7765], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10302], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10302], ["room_id", 7765], ["created_at", "2018-12-07 01:34:26.263910"], ["updated_at", "2018-12-07 01:34:26.263910"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4001” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.265815"], ["last_sign_in_at", "2018-12-07 01:34:26.265815"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.266229"], ["id", 10301]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4001"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4001], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7765], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10302], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 4ms (ActiveRecord: 0.8ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$owmPIUGnARUir01LUUHKhuYhz4qagCAvVupPd4RIKkDRWKEtUA5Lm"], ["created_at", "2018-12-07 01:34:26.277490"], ["updated_at", "2018-12-07 01:34:26.277490"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.279185"], ["updated_at", "2018-12-07 01:34:26.279185"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bPOnXA8rVC648Y1zTqMx2uRUU8CAS/zImvpnYkVNLMcfz3V7mfPnC"], ["created_at", "2018-12-07 01:34:26.282467"], ["updated_at", "2018-12-07 01:34:26.282467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7766], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10304], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10304], ["room_id", 7766], ["created_at", "2018-12-07 01:34:26.285547"], ["updated_at", "2018-12-07 01:34:26.285547"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4002” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.287448"], ["last_sign_in_at", "2018-12-07 01:34:26.287448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.287819"], ["id", 10303]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4002"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4002], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7766], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10304], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TK5/Qk8HeGZGmJxRyqqkT.xbzFQ5OsM2wvBs7wLqBgn5tot6HSkb2"], ["created_at", "2018-12-07 01:34:26.296659"], ["updated_at", "2018-12-07 01:34:26.296659"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.298206"], ["updated_at", "2018-12-07 01:34:26.298206"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kbjMQB5ovtMzPfAHuoL4nuJt5cN2o7j1Y/CkgUIdg7CT1wA1IBjka"], ["created_at", "2018-12-07 01:34:26.301354"], ["updated_at", "2018-12-07 01:34:26.301354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7767], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10306], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10306], ["room_id", 7767], ["created_at", "2018-12-07 01:34:26.305067"], ["updated_at", "2018-12-07 01:34:26.305067"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4003” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.307235"], ["last_sign_in_at", "2018-12-07 01:34:26.307235"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.307643"], ["id", 10305]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4003"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4003], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7767], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10306], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:34:26.311947"], ["id", 4003]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.4ms) Date: Thu, 06 Dec 2018 23:34:26 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09ce224d208_44602b220be2c5f455814@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce224cc0f_44602b220be2c5f4557f4";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce224cc0f_44602b220be2c5f4557f4 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09ce224cc0f_44602b220be2c5f4557f4 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce224cc0f_44602b220be2c5f4557f4–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jjgDICFt7fX4Hg/zu73p4.r.iP81qfn6Ge45YoRV1LkFhy6O5d5ne"], ["created_at", "2018-12-07 01:34:26.322366"], ["updated_at", "2018-12-07 01:34:26.322366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.324004"], ["updated_at", "2018-12-07 01:34:26.324004"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0TCi7iDGdg23GBrc22oelOn/ne5AkQZ7jU8Gp8F3AN.DCxWf.9mgC"], ["created_at", "2018-12-07 01:34:26.327127"], ["updated_at", "2018-12-07 01:34:26.327127"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7768], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10308], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10308], ["room_id", 7768], ["created_at", "2018-12-07 01:34:26.330137"], ["updated_at", "2018-12-07 01:34:26.330137"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:34:26.331539"], ["id", 4004]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7768], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10308], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10308], ["room_id", 7768], ["created_at", "2018-12-07 01:34:26.334215"], ["updated_at", "2018-12-07 01:34:26.334215"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:34:26.335886"], ["id", 4005]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.337683"], ["last_sign_in_at", "2018-12-07 01:34:26.337683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.338133"], ["id", 10307]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10308], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7768], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10308], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7768], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 5.7ms | ActiveRecord: 0.8ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HLiB28Wl0udoajoUNMS36.bELuyMyy.27vNCHwlXVymuqNeaXUxX2"], ["created_at", "2018-12-07 01:34:26.351776"], ["updated_at", "2018-12-07 01:34:26.351776"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.353390"], ["updated_at", "2018-12-07 01:34:26.353390"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$R.JRh96EaE3zu3wUSKn/Xeu30NwyhuNXFBXH3tFEY8l/TPuR6CLB2"], ["created_at", "2018-12-07 01:34:26.356668"], ["updated_at", "2018-12-07 01:34:26.356668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7769], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10310], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10310], ["room_id", 7769], ["created_at", "2018-12-07 01:34:26.359699"], ["updated_at", "2018-12-07 01:34:26.359699"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:34:26.361058"], ["id", 4006]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7769], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10310], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10310], ["room_id", 7769], ["created_at", "2018-12-07 01:34:26.363711"], ["updated_at", "2018-12-07 01:34:26.363711"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:34:26.365078"], ["id", 4007]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.366639"], ["last_sign_in_at", "2018-12-07 01:34:26.366639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.367111"], ["id", 10309]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10310], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7769], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10310], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7769], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MsCHnjUhYr/j.N.N2DMRge23cTm.fCEgSFg/5lzQnz7h/GoZUvarK"], ["created_at", "2018-12-07 01:34:26.380623"], ["updated_at", "2018-12-07 01:34:26.380623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.382329"], ["last_sign_in_at", "2018-12-07 01:34:26.382329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.382678"], ["id", 10311]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N15RvnBDUmwXie3RER0Z/ensAQsGCBZjc/haoNZ6d2sV3O3JO0/dm"], ["created_at", "2018-12-07 01:34:26.395555"], ["updated_at", "2018-12-07 01:34:26.395555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.397298"], ["last_sign_in_at", "2018-12-07 01:34:26.397298"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.397683"], ["id", 10312]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LmhgU9nH2JL4z.KwD1IWUujHA46QZCOwIyV6oT1PLnwEdGOlQxMV2"], ["created_at", "2018-12-07 01:34:26.404501"], ["updated_at", "2018-12-07 01:34:26.404501"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.406163"], ["last_sign_in_at", "2018-12-07 01:34:26.406163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.406533"], ["id", 10313]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y.y3j5Mm0zQEisqKyGGM6OSJ9TjUM8oZDpRVwT6/0/1uNaVoXFfjK"], ["created_at", "2018-12-07 01:34:26.415767"], ["updated_at", "2018-12-07 01:34:26.415767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.417262"], ["last_sign_in_at", "2018-12-07 01:34:26.417262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.417558"], ["id", 10314]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mit.d2feDCR0JDgXR5t1X.Ts3YmcuCGMdAEWyndWCyB4.r7a8DbmW"], ["created_at", "2018-12-07 01:34:26.431435"], ["updated_at", "2018-12-07 01:34:26.431435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.433037"], ["updated_at", "2018-12-07 01:34:26.433037"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7770” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.434494"], ["last_sign_in_at", "2018-12-07 01:34:26.434494"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.434814"], ["id", 10315]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7770"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7770], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VMt8Jq5gWQIifQVcB8ddRe8VTxt5owQCcdGVlSC43vvQ3.NSQQp0e"], ["created_at", "2018-12-07 01:34:26.443337"], ["updated_at", "2018-12-07 01:34:26.443337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.444766"], ["updated_at", "2018-12-07 01:34:26.444766"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7771” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.446063"], ["last_sign_in_at", "2018-12-07 01:34:26.446063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.446394"], ["id", 10316]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7771"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7771], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.452444"], ["updated_at", "2018-12-07 01:34:26.452444"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7772” for 127.0.0.1 at 2018-12-06 23:34:26 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7772"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$syrcmbBybMkaOEx18zxHQe/Z9Z3HXpgA9rHiBV.OyemP5Bxm5Uonm"], ["created_at", "2018-12-07 01:34:26.458254"], ["updated_at", "2018-12-07 01:34:26.458254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.459883"], ["updated_at", "2018-12-07 01:34:26.459883"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7773” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.461478"], ["last_sign_in_at", "2018-12-07 01:34:26.461478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.461995"], ["id", 10317]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7773"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.470077"], ["updated_at", "2018-12-07 01:34:26.470077"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7774” for 127.0.0.1 at 2018-12-06 23:34:26 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7774"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nRNNnKmFY8fyBJHPAeuK3uCWUf9W6svES0hWX6bD2NMHaPKAblpae"], ["created_at", "2018-12-07 01:34:26.476005"], ["updated_at", "2018-12-07 01:34:26.476005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.477445"], ["updated_at", "2018-12-07 01:34:26.477445"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7775/edit” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.478768"], ["last_sign_in_at", "2018-12-07 01:34:26.478768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.479081"], ["id", 10318]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7775"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7775], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FS0CDRfaJ4j5O0ka1nRYPeqOBTWdxB.uvS0wyPNhi5/YdCqgFHodO"], ["created_at", "2018-12-07 01:34:26.489251"], ["updated_at", "2018-12-07 01:34:26.489251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.490856"], ["updated_at", "2018-12-07 01:34:26.490856"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7776/edit” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.492406"], ["last_sign_in_at", "2018-12-07 01:34:26.492406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.492870"], ["id", 10319]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7776"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7776], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.501094"], ["updated_at", "2018-12-07 01:34:26.501094"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7777” for 127.0.0.1 at 2018-12-06 23:34:26 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7777"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I7Q4cnvqMBvMiGTpJ2q8KOzRGB0KaaQcSOU//RJ1NoTNpLbDV.Xxa"], ["created_at", "2018-12-07 01:34:26.507450"], ["updated_at", "2018-12-07 01:34:26.507450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.509463"], ["last_sign_in_at", "2018-12-07 01:34:26.509463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.509826"], ["id", 10320]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.512284"], ["updated_at", "2018-12-07 01:34:26.512284"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p7wGaxKtH1jftrCr38XUxOtczrzn6MePAsJEwE79fS6IZtDcRplT2"], ["created_at", "2018-12-07 01:34:26.517977"], ["updated_at", "2018-12-07 01:34:26.517977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.519968"], ["last_sign_in_at", "2018-12-07 01:34:26.519968"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.520313"], ["id", 10321]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.522766"], ["updated_at", "2018-12-07 01:34:26.522766"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3TCcHCPrnwv4jGHRXNexTueQhrFGF/UO75dtZ1m3uekmPVbzwMmYy"], ["created_at", "2018-12-07 01:34:26.528829"], ["updated_at", "2018-12-07 01:34:26.528829"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.531018"], ["last_sign_in_at", "2018-12-07 01:34:26.531018"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.531381"], ["id", 10322]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1cN3vpZJaAJSS/ltiQjh/egx/Cz8FxfYr6aZKARZgwKCpKtT8w1EC"], ["created_at", "2018-12-07 01:34:26.538993"], ["updated_at", "2018-12-07 01:34:26.538993"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.540999"], ["last_sign_in_at", "2018-12-07 01:34:26.540999"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.541341"], ["id", 10323]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9DW.ckWnU8bgFq8sRLMlteNslRenv/ZG3oyaZoLU0Ru0noGt6FC2y"], ["created_at", "2018-12-07 01:34:26.548662"], ["updated_at", "2018-12-07 01:34:26.548662"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.550659"], ["last_sign_in_at", "2018-12-07 01:34:26.550659"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.551001"], ["id", 10324]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d4FLpw17pFiMnEVbKJE0d.4QePoroBZ7ECUck9WDyj7d2nJ7KJW3."], ["created_at", "2018-12-07 01:34:26.557660"], ["updated_at", "2018-12-07 01:34:26.557660"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.559451"], ["updated_at", "2018-12-07 01:34:26.559451"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7780” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.561399"], ["last_sign_in_at", "2018-12-07 01:34:26.561399"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.561827"], ["id", 10325]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7780"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7780], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:34:26.564990"], ["id", 7780]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7780 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Yd38.itJSp0gBXwpzUUEyu.VFD8.2eJazHsvwQRAniWSpfeUOzane"], ["created_at", "2018-12-07 01:34:26.570790"], ["updated_at", "2018-12-07 01:34:26.570790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.572329"], ["updated_at", "2018-12-07 01:34:26.572329"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7781” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.574124"], ["last_sign_in_at", "2018-12-07 01:34:26.574124"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.574545"], ["id", 10326]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7781"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7781], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:34:26.577555"], ["id", 7781]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7781 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lN0E1ZaIbyUSc20obpm.V.eDhtN5Vr5tkupaEO5Yz/P75ayQJUH7q"], ["created_at", "2018-12-07 01:34:26.582856"], ["updated_at", "2018-12-07 01:34:26.582856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.584450"], ["updated_at", "2018-12-07 01:34:26.584450"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7782” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.586460"], ["last_sign_in_at", "2018-12-07 01:34:26.586460"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.586850"], ["id", 10327]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7782"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7782], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5ghQ/FtEPuXOV85WI4n.N.RKvuX0KsKrP2VqLYQTmso7V6TtFMpj2"], ["created_at", "2018-12-07 01:34:26.599067"], ["updated_at", "2018-12-07 01:34:26.599067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.600738"], ["updated_at", "2018-12-07 01:34:26.600738"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7783” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.602568"], ["last_sign_in_at", "2018-12-07 01:34:26.602568"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.602933"], ["id", 10328]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7783"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7783], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FXBwnrjckDxoiBvtmf01a.RBW5LGcorc/76zHt1KYsGn2egzMn6em"], ["created_at", "2018-12-07 01:34:26.613967"], ["updated_at", "2018-12-07 01:34:26.613967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.616072"], ["last_sign_in_at", "2018-12-07 01:34:26.616072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.616417"], ["id", 10329]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dkVA86lG1NliJ26ji/53QuWwsKXyA/yKafDOu8suz9T/tojU9oF/m"], ["created_at", "2018-12-07 01:34:26.623320"], ["updated_at", "2018-12-07 01:34:26.623320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.624961"], ["updated_at", "2018-12-07 01:34:26.624961"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7784” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.626412"], ["last_sign_in_at", "2018-12-07 01:34:26.626412"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.626786"], ["id", 10330]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7784"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7784], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7784]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OwneKhN7H02SxX2F1NTyJ.Mij.NpDBE72wJujEt50fUKM6a7izCBm"], ["created_at", "2018-12-07 01:34:26.634400"], ["updated_at", "2018-12-07 01:34:26.634400"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.635953"], ["updated_at", "2018-12-07 01:34:26.635953"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7785” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.637340"], ["last_sign_in_at", "2018-12-07 01:34:26.637340"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.637699"], ["id", 10331]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7785"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7785], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7785]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jh.wVNEqOj39a3TzXOR1X.teHFaKUtpJmuJSZ2.D0CM2grfznGlZu"], ["created_at", "2018-12-07 01:34:26.644879"], ["updated_at", "2018-12-07 01:34:26.644879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.646421"], ["updated_at", "2018-12-07 01:34:26.646421"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7786” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.647789"], ["last_sign_in_at", "2018-12-07 01:34:26.647789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.648147"], ["id", 10332]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7786"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OtRCxDeJLjRZdo5kiVOso.Tcik9Edm2CpV/Ts7T1IY2zKLarPGetG"], ["created_at", "2018-12-07 01:34:26.655568"], ["updated_at", "2018-12-07 01:34:26.655568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.657256"], ["updated_at", "2018-12-07 01:34:26.657256"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7787” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.658711"], ["last_sign_in_at", "2018-12-07 01:34:26.658711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.659102"], ["id", 10333]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7787"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XiVLEvuNcJxodM2gl9zPg.kkByiAyJRVBEvoaLmpg0bmkT7LaYF.G"], ["created_at", "2018-12-07 01:34:26.665084"], ["updated_at", "2018-12-07 01:34:26.665084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.666683"], ["last_sign_in_at", "2018-12-07 01:34:26.666683"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.667017"], ["id", 10334]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ACVzZKBm7nRAmZiZrNLmVu70nGdBSCTy34GOi2JgyQ3C1EIE4jUsC"], ["created_at", "2018-12-07 01:34:26.678395"], ["updated_at", "2018-12-07 01:34:26.678395"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.679942"], ["updated_at", "2018-12-07 01:34:26.679942"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.681262"], ["updated_at", "2018-12-07 01:34:26.681262"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.682620"], ["updated_at", "2018-12-07 01:34:26.682620"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7788], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10335], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10335], ["room_id", 7788], ["created_at", "2018-12-07 01:34:26.686102"], ["updated_at", "2018-12-07 01:34:26.686102"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.687813"], ["last_sign_in_at", "2018-12-07 01:34:26.687813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.688180"], ["id", 10335]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h6Hid1Kl4L4oqZPf9mqmheICL9Y2lOni3nns4eO3HF.1YM8ch4pBW"], ["created_at", "2018-12-07 01:34:26.704588"], ["updated_at", "2018-12-07 01:34:26.704588"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.706172"], ["updated_at", "2018-12-07 01:34:26.706172"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.707451"], ["updated_at", "2018-12-07 01:34:26.707451"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:34:26.708614"], ["updated_at", "2018-12-07 01:34:26.708614"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7791], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10336], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10336], ["room_id", 7791], ["created_at", "2018-12-07 01:34:26.711455"], ["updated_at", "2018-12-07 01:34:26.711455"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:34:26 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:34:26.713083"], ["last_sign_in_at", "2018-12-07 01:34:26.713083"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:34:26.713464"], ["id", 10336]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UzsGexkhbTLHQ8xyjjv9Kub8/mL1/nD6vubM8DZ360534MSKk1LQG"], ["created_at", "2018-12-07 01:34:45.314972"], ["updated_at", "2018-12-07 01:34:45.314972"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (12.1ms)
Rendered users/sessions/new.html.erb within layouts/application (126.9ms)

Completed 200 OK in 140ms (Views: 131.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:34:45.483727"], ["last_sign_in_at", "2018-12-07 01:34:45.483727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:34:45.484251"], ["id", 10337]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10337], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:34:45.508171"], ["updated_at", "2018-12-07 01:34:45.508171"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10337], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/7794” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7794"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7794], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7794')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10337], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7794” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10337], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7794 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')

Completed 500 Internal Server Error in 8ms (ActiveRecord: 1.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UDxC8VczJDPBYssE72Epde48yPdwqnainBDjUoja3v2EX9RlOV5Sm"], ["created_at", "2018-12-07 01:34:45.564490"], ["updated_at", "2018-12-07 01:34:45.564490"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:34:45.576584"], ["last_sign_in_at", "2018-12-07 01:34:45.576584"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:34:45.577007"], ["id", 10338]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10338], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:34:45.585305"], ["updated_at", "2018-12-07 01:34:45.585305"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7795], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10338], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10338], ["room_id", 7795], ["created_at", "2018-12-07 01:34:45.597340"], ["updated_at", "2018-12-07 01:34:45.597340"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10338], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/7795” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7795"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7795], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7795')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10338], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7795” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10338], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7795 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7795], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10338], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10338], ["room_id", 7795], ["created_at", "2018-12-07 01:34:45.625963"], ["updated_at", "2018-12-07 01:34:45.625963"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:34:45 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10338], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$u202rm5XhjbKtFQiS2CzgOdvxdm6Hfclp0ziUXhycmgGNUzDgf2la"], ["created_at", "2018-12-07 01:35:05.969465"], ["updated_at", "2018-12-07 01:35:05.969465"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:35:05 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.1ms)
Rendered users/sessions/new.html.erb within layouts/application (123.6ms)

Completed 200 OK in 137ms (Views: 128.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:35:06.133954"], ["last_sign_in_at", "2018-12-07 01:35:06.133954"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:35:06.134443"], ["id", 10339]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10339], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:35:06.158248"], ["updated_at", "2018-12-07 01:35:06.158248"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10339], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/7796” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7796"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7796], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7796')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10339], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.7796” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10339], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7796 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7796], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10339], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 10339], ["room_id", 7796], ["created_at", "2018-12-07 01:35:06.214936"], ["updated_at", "2018-12-07 01:35:06.214936"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10339], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$jPJgW5TahhUymtmXagnHOuf4aRuUPYTUtKwKi5MkqqWL2g3.JIj8q"], ["created_at", "2018-12-07 01:35:06.230372"], ["updated_at", "2018-12-07 01:35:06.230372"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:35:06.242152"], ["last_sign_in_at", "2018-12-07 01:35:06.242152"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:35:06.242592"], ["id", 10340]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10340], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:35:06.251086"], ["updated_at", "2018-12-07 01:35:06.251086"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7797], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10340], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 10340], ["room_id", 7797], ["created_at", "2018-12-07 01:35:06.255370"], ["updated_at", "2018-12-07 01:35:06.255370"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10340], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/7797” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7797"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7797], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7797')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10340], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.0ms | ActiveRecord: 0.8ms) Started POST “/appointments.7797” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10340], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7797 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7797], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10340], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 10340], ["room_id", 7797], ["created_at", "2018-12-07 01:35:06.284175"], ["updated_at", "2018-12-07 01:35:06.284175"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:35:06 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10340], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HOylFoJCvzAC95EOtqn37eaxQiRv.TgRrbKUQmDXQ2cNeLejtwsNu"], ["created_at", "2018-12-07 01:35:10.338154"], ["updated_at", "2018-12-07 01:35:10.338154"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nK616miN74ntp2ocKNiQ7.3vPxt2DAthVQNg.3YmRpmHQ85.JShUa"], ["created_at", "2018-12-07 01:35:10.342651"], ["updated_at", "2018-12-07 01:35:10.342651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.350049"], ["updated_at", "2018-12-07 01:35:10.350049"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7798], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10342], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10342], ["room_id", 7798], ["created_at", "2018-12-07 01:35:10.369088"], ["updated_at", "2018-12-07 01:35:10.369088"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4015"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4015], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7798], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10342], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 124.1ms Sent mail to 123@123.com (5.5ms) Date: Thu, 06 Dec 2018 23:35:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09ce4e7b8b4_44d92b049f7c05f058198@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce4e7aa7c_44d92b049f7c05f05804a";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce4e7aa7c_44d92b049f7c05f05804a Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09ce4e7aa7c_44d92b049f7c05f05804a Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce4e7aa7c_44d92b049f7c05f05804a–

Completed 302 Found in 134ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8fK2zgAQSrGNT0ubK3EINuhOYIRFfxVGtBYpXN7Qfs6..grZzl5CO"], ["created_at", "2018-12-07 01:35:10.512951"], ["updated_at", "2018-12-07 01:35:10.512951"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i3LRd0E9iYgfVsYjbgS.7.2umDttergH7EqeACyAcpdOSeQsjbkvi"], ["created_at", "2018-12-07 01:35:10.516001"], ["updated_at", "2018-12-07 01:35:10.516001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.517353"], ["updated_at", "2018-12-07 01:35:10.517353"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7799], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10344], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10344], ["room_id", 7799], ["created_at", "2018-12-07 01:35:10.520093"], ["updated_at", "2018-12-07 01:35:10.520093"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4016"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4016], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7799], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10344], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:35:10.524662"], ["id", 4016]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:35:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09ce4e810cb_44d92b049f7c05f058356@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce4e80b5b_44d92b049f7c05f0582ab";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce4e80b5b_44d92b049f7c05f0582ab Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09ce4e80b5b_44d92b049f7c05f0582ab Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce4e80b5b_44d92b049f7c05f0582ab–

Completed 302 Found in 8ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O3o.9PiCRgNa4oEY4xdBFeBYiESC/TaUNt2gba0mynYRLhgac/zwO"], ["created_at", "2018-12-07 01:35:10.533960"], ["updated_at", "2018-12-07 01:35:10.533960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$N52tRSOHAr2P1XDwLKntCuxbkDr3zJsxbYrjvqX9iPPWAy7K/unv6"], ["created_at", "2018-12-07 01:35:10.537188"], ["updated_at", "2018-12-07 01:35:10.537188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.538861"], ["updated_at", "2018-12-07 01:35:10.538861"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7800], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10346], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10346], ["room_id", 7800], ["created_at", "2018-12-07 01:35:10.542229"], ["updated_at", "2018-12-07 01:35:10.542229"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ot1R4Hjj5j8MXaDM4/KEUenN0fMkdL.N4r1irIb.zyay8F3XfPbRy"], ["created_at", "2018-12-07 01:35:10.549216"], ["updated_at", "2018-12-07 01:35:10.549216"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5WpC/3m/TCMo1Hrfx3rfKuoaLZcYcqy.NEcxR2s7xWuTYg3cdNM6y"], ["created_at", "2018-12-07 01:35:10.552341"], ["updated_at", "2018-12-07 01:35:10.552341"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.553855"], ["updated_at", "2018-12-07 01:35:10.553855"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7801], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10348], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10348], ["room_id", 7801], ["created_at", "2018-12-07 01:35:10.556865"], ["updated_at", "2018-12-07 01:35:10.556865"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4018], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$SBNTTvPqcYGugxYTPRU/z.B365P6W9Krfk.eNV5Xx6BnGS.iWty7a"], ["created_at", "2018-12-07 01:35:10.562054"], ["updated_at", "2018-12-07 01:35:10.562054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10349"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "fkovKkQJxAf6KisQ2xzyLA"], ["updated_at", "2018-12-07 01:35:10.565320"], ["id", 10349]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:35:10.566847"], ["reset_sent_at", "2018-12-07 01:35:10.566507"], ["id", 10349]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:35:10 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09ce4e8c284_44d92b049f7c05f05865b@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce4e8bc98_44d92b049f7c05f05858a";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce4e8bc98_44d92b049f7c05f05858a Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/fkovKkQJxAf6KisQ2xzyLA/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09ce4e8bc98_44d92b049f7c05f05858a Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/fkovKkQJxAf6KisQ2xzyLA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce4e8bc98_44d92b049f7c05f05858a–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$gq6qiI7Pci3z1GDtHh5f.eiyNN6.vExUbkaqSxDn.9TiEL1RM97/6"], ["created_at", "2018-12-07 01:35:10.579820"], ["updated_at", "2018-12-07 01:35:10.579820"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$VU6hhkxDzC/eh47txn0RkeU1FCR09x4X0U8F3lG3kSdhJSa4Vb7qe"], ["created_at", "2018-12-07 01:35:10.587015"], ["updated_at", "2018-12-07 01:35:10.587015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10351"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$uUtUNBh.6RtfWB4kEl2vu.6ORir2jYTJ8XmpbLr..ShwrkCMFdjXS"], ["updated_at", "2018-12-07 01:35:10.591155"], ["id", 10351]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$/qo91nkYSM5njWBKuD06e.hjnx2nX9tY4Db6qeCL3P8NpnzNUXvam"], ["created_at", "2018-12-07 01:35:10.595949"], ["updated_at", "2018-12-07 01:35:10.595949"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10352"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$wuEWhtZJwmudTZtjVLF6zuTsQS8gT1nwK2P11Oedawj6avBOK3lQS"], ["created_at", "2018-12-07 01:35:10.603582"], ["updated_at", "2018-12-07 01:35:10.603582"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10353"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vTCX2JcnIpRxGL6W2aVBYeOjiqVTftg94SwvSFvZvi5RgNvjU1yyK"], ["created_at", "2018-12-07 01:35:10.617098"], ["updated_at", "2018-12-07 01:35:10.617098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10354"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$RNJx48Aund9RjskHufxFjuj432ciIO9i678Vg68KsE354tAnwGNdG"], ["created_at", "2018-12-07 01:35:10.625412"], ["updated_at", "2018-12-07 01:35:10.625412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10355"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ozj11K40hYdyukgC04m/4ueJZXDn2zawzQwP/og7iT3D5gbF6OHca"], ["created_at", "2018-12-07 01:35:10.632814"], ["updated_at", "2018-12-07 01:35:10.632814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.1ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xvCzqMdvVsC5T1hOHnCGKunZRdbudAaypWT5OStg4gYzoGSLMh6wS"], ["created_at", "2018-12-07 01:35:10.640160"], ["updated_at", "2018-12-07 01:35:10.640160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$csEvwEmb2E4XpLUabMDnYe/KW4K.MSoUkPtuB1V8T0wquMJ9qnYTm"], ["created_at", "2018-12-07 01:35:10.647084"], ["updated_at", "2018-12-07 01:35:10.647084"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.648669"], ["updated_at", "2018-12-07 01:35:10.648669"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7802], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10358], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10358], ["room_id", 7802], ["created_at", "2018-12-07 01:35:10.651512"], ["updated_at", "2018-12-07 01:35:10.651512"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7bFTMyJsWK1XSPgwr1ytQ.PLuNIjVdaa8TLExRSR.CeIFLl3ZeoIm"], ["created_at", "2018-12-07 01:35:10.657636"], ["updated_at", "2018-12-07 01:35:10.657636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.659131"], ["updated_at", "2018-12-07 01:35:10.659131"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7803], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10359], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10359], ["room_id", 7803], ["created_at", "2018-12-07 01:35:10.662063"], ["updated_at", "2018-12-07 01:35:10.662063"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ycGYBJW1pHhWtzKwIGwJaOEZPAdTwpYnG4SJFZpx2D1/OwNrIKFEm"], ["created_at", "2018-12-07 01:35:10.684615"], ["updated_at", "2018-12-07 01:35:10.684615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.686190"], ["updated_at", "2018-12-07 01:35:10.686190"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.693079"], ["last_sign_in_at", "2018-12-07 01:35:10.693079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.693521"], ["id", 10360]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7804"}
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7804 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7804], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10360], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10360], ["room_id", 7804], ["created_at", "2018-12-07 01:35:10.701992"], ["updated_at", "2018-12-07 01:35:10.701992"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7804], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9WxH6oTSXIOTAALfCtmwh.7zuYTCVt1nhuEY1uBbup9Kf0N9lPZWm"], ["created_at", "2018-12-07 01:35:10.708330"], ["updated_at", "2018-12-07 01:35:10.708330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.709960"], ["updated_at", "2018-12-07 01:35:10.709960"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.711967"], ["last_sign_in_at", "2018-12-07 01:35:10.711967"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.712375"], ["id", 10361]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7805"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7805 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7805], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10361], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10361], ["room_id", 7805], ["created_at", "2018-12-07 01:35:10.716983"], ["updated_at", "2018-12-07 01:35:10.716983"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9jDNDp7lBgG9UTravziQOut/VgTOg7vFbJUjvJ0835D7IE8p8GQ7C"], ["created_at", "2018-12-07 01:35:10.722394"], ["updated_at", "2018-12-07 01:35:10.722394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.723901"], ["updated_at", "2018-12-07 01:35:10.723901"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.726163"], ["last_sign_in_at", "2018-12-07 01:35:10.726163"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.726572"], ["id", 10362]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7806", "user_id"=>"10362"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7806 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7806], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10362], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10362], ["room_id", 7806], ["created_at", "2018-12-07 01:35:10.731825"], ["updated_at", "2018-12-07 01:35:10.731825"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7806", "user_id"=>"10362"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10362], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7806 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7806], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10362], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10362], ["room_id", 7806], ["created_at", "2018-12-07 01:35:10.738672"], ["updated_at", "2018-12-07 01:35:10.738672"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pUOp4jFnkVGPjuAc/uKEY.jMziXUaVBv6n0qpt91PpT4ckG/pv..S"], ["created_at", "2018-12-07 01:35:10.744184"], ["updated_at", "2018-12-07 01:35:10.744184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.745754"], ["updated_at", "2018-12-07 01:35:10.745754"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.748120"], ["last_sign_in_at", "2018-12-07 01:35:10.748120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.748546"], ["id", 10363]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7807", "user_id"=>"10363"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7807 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7807], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10363], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10363], ["room_id", 7807], ["created_at", "2018-12-07 01:35:10.753268"], ["updated_at", "2018-12-07 01:35:10.753268"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7807", "user_id"=>"10363"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10363], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7807 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7807], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10363], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10363], ["room_id", 7807], ["created_at", "2018-12-07 01:35:10.759666"], ["updated_at", "2018-12-07 01:35:10.759666"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7807], ["user_id", 10363], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JvQ55vHdkRh0xok1uLfq6uChbforkkS/98JQE/VZTYCi.ioAeBLvG"], ["created_at", "2018-12-07 01:35:10.766558"], ["updated_at", "2018-12-07 01:35:10.766558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.768236"], ["updated_at", "2018-12-07 01:35:10.768236"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.770398"], ["last_sign_in_at", "2018-12-07 01:35:10.770398"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.770836"], ["id", 10364]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7808", "user_id"=>"10364"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7808 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7808], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10364], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10364], ["room_id", 7808], ["created_at", "2018-12-07 01:35:10.775655"], ["updated_at", "2018-12-07 01:35:10.775655"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7808", "user_id"=>"10364"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10364], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7808 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7808], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10364], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10364], ["room_id", 7808], ["created_at", "2018-12-07 01:35:10.782005"], ["updated_at", "2018-12-07 01:35:10.782005"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7808], ["user_id", 10364], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7ZX8Adg.g6yuKaaiOxDIneiQyd/WWZ1eWDUaiPeRPDAREGxQBrLt6"], ["created_at", "2018-12-07 01:35:10.787724"], ["updated_at", "2018-12-07 01:35:10.787724"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.789202"], ["updated_at", "2018-12-07 01:35:10.789202"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.791313"], ["last_sign_in_at", "2018-12-07 01:35:10.791313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.791801"], ["id", 10365]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7809"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7809], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$c9sK6qMlkesPv/3T7eiT.OKG9rCzgb.lRIS0SfC6d4AgmsRYL0Rhy"], ["created_at", "2018-12-07 01:35:10.804640"], ["updated_at", "2018-12-07 01:35:10.804640"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.806424"], ["updated_at", "2018-12-07 01:35:10.806424"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.808336"], ["last_sign_in_at", "2018-12-07 01:35:10.808336"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.808714"], ["id", 10366]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7810"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4ADUtvc22v8UhmedAVN3put/sl4AEN4eqH3HRLuEaui/8WQ.a4kPq"], ["created_at", "2018-12-07 01:35:10.815551"], ["updated_at", "2018-12-07 01:35:10.815551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:10.817074"], ["updated_at", "2018-12-07 01:35:10.817074"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7811], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10367], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10367], ["room_id", 7811], ["created_at", "2018-12-07 01:35:10.820022"], ["updated_at", "2018-12-07 01:35:10.820022"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7811” for 127.0.0.1 at 2018-12-06 23:35:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:10.821576"], ["last_sign_in_at", "2018-12-07 01:35:10.821576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:10.821958"], ["id", 10367]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7811"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7811], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7811')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 208ms (Views: 206.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HtW.bo0z2lOC2NTY00jRm.LvCPRSGDuyfq7e3QLnznfSXSbWYM4rm"], ["created_at", "2018-12-07 01:35:11.037289"], ["updated_at", "2018-12-07 01:35:11.037289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.039045"], ["updated_at", "2018-12-07 01:35:11.039045"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7812], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10368], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10368], ["room_id", 7812], ["created_at", "2018-12-07 01:35:11.042282"], ["updated_at", "2018-12-07 01:35:11.042282"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4030/edit” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.043849"], ["last_sign_in_at", "2018-12-07 01:35:11.043849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.044231"], ["id", 10368]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4030"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4030], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZRmeJDLI3j8VzUNa/qbQde9v3SxBkRcp8iOVAye9cEEOSQ9LZQ7Yu"], ["created_at", "2018-12-07 01:35:11.055974"], ["updated_at", "2018-12-07 01:35:11.055974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.057738"], ["last_sign_in_at", "2018-12-07 01:35:11.057738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.058143"], ["id", 10369]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5yXeSYhjD4dDNmgm/4VbHu2MnLQ4T7ovfk9Uttr.yd8BHF0CDxYV2"], ["created_at", "2018-12-07 01:35:11.069252"], ["updated_at", "2018-12-07 01:35:11.069252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.071046"], ["updated_at", "2018-12-07 01:35:11.071046"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7813], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10370], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10370], ["room_id", 7813], ["created_at", "2018-12-07 01:35:11.074102"], ["updated_at", "2018-12-07 01:35:11.074102"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7813], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10370], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10370], ["room_id", 7813], ["created_at", "2018-12-07 01:35:11.076835"], ["updated_at", "2018-12-07 01:35:11.076835"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.078322"], ["last_sign_in_at", "2018-12-07 01:35:11.078322"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.078689"], ["id", 10370]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10370]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EZkCe5HQr32lxMP/GNevTOpEIilhq/QIFDiEMKBc6cnLmTtQnzGOa"], ["created_at", "2018-12-07 01:35:11.093312"], ["updated_at", "2018-12-07 01:35:11.093312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.095505"], ["updated_at", "2018-12-07 01:35:11.095505"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7814], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10371], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10371], ["room_id", 7814], ["created_at", "2018-12-07 01:35:11.098637"], ["updated_at", "2018-12-07 01:35:11.098637"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7814], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10371], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10371], ["room_id", 7814], ["created_at", "2018-12-07 01:35:11.101410"], ["updated_at", "2018-12-07 01:35:11.101410"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.102921"], ["last_sign_in_at", "2018-12-07 01:35:11.102921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.103279"], ["id", 10371]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10371]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$66cTklwnQuAvChon6yh/VeSOYsaaNt/IFlNNWiuaXO7VwmX5BJRC."], ["created_at", "2018-12-07 01:35:11.112595"], ["updated_at", "2018-12-07 01:35:11.112595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.114172"], ["updated_at", "2018-12-07 01:35:11.114172"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7815], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10372], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10372], ["room_id", 7815], ["created_at", "2018-12-07 01:35:11.117004"], ["updated_at", "2018-12-07 01:35:11.117004"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4035” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.118509"], ["last_sign_in_at", "2018-12-07 01:35:11.118509"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.118877"], ["id", 10372]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4035"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4035], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4035]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.4WUY8hFUoE8dTre6gI0POZ2VhsXtRQ4u9UmYlcZvIUHpI5SM1kmO"], ["created_at", "2018-12-07 01:35:11.127947"], ["updated_at", "2018-12-07 01:35:11.127947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.129637"], ["updated_at", "2018-12-07 01:35:11.129637"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$weJC21ECrbnkxofLWp7m2uzTYhW.X5rGUrgaC1wEUUzxVKDF5SQL6"], ["created_at", "2018-12-07 01:35:11.132721"], ["updated_at", "2018-12-07 01:35:11.132721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7816], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10374], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10374], ["room_id", 7816], ["created_at", "2018-12-07 01:35:11.135699"], ["updated_at", "2018-12-07 01:35:11.135699"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4036” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.137592"], ["last_sign_in_at", "2018-12-07 01:35:11.137592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.137960"], ["id", 10373]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4036"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4036], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7816], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10374], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Qg634pMFgt4q/qbRttA32OAOTlpqelQS/sXIu9dn2wtFyxuUX7p0W"], ["created_at", "2018-12-07 01:35:11.147331"], ["updated_at", "2018-12-07 01:35:11.147331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.148891"], ["updated_at", "2018-12-07 01:35:11.148891"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AZbIaqYgUZSc9kLTgdwpUOjm.JN.DrDAjzFtNoJs2bYHC.QAlMLrO"], ["created_at", "2018-12-07 01:35:11.151864"], ["updated_at", "2018-12-07 01:35:11.151864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7817], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10376], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10376], ["room_id", 7817], ["created_at", "2018-12-07 01:35:11.154684"], ["updated_at", "2018-12-07 01:35:11.154684"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4037” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.156809"], ["last_sign_in_at", "2018-12-07 01:35:11.156809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.157327"], ["id", 10375]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4037"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4037], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7817], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10376], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FLjTuYOOQ2RWIeH/QYm3FubdwrC0ycJX0soGe0Hy2C7S0ImxJxB6S"], ["created_at", "2018-12-07 01:35:11.166804"], ["updated_at", "2018-12-07 01:35:11.166804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.168400"], ["updated_at", "2018-12-07 01:35:11.168400"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s49qrMQwCfBos5oTIjDKiuZwX6kyH.1RONzdYTt73paP3oykuqtei"], ["created_at", "2018-12-07 01:35:11.171673"], ["updated_at", "2018-12-07 01:35:11.171673"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7818], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10378], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10378], ["room_id", 7818], ["created_at", "2018-12-07 01:35:11.174708"], ["updated_at", "2018-12-07 01:35:11.174708"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4038” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.176583"], ["last_sign_in_at", "2018-12-07 01:35:11.176583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.176944"], ["id", 10377]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4038"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4038], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7818], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10378], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:35:11.180942"], ["id", 4038]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 23:35:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09ce4f2d164_44d92b049f7c05f059359@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09ce4f2cbcf_44d92b049f7c05f05927e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09ce4f2cbcf_44d92b049f7c05f05927e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09ce4f2cbcf_44d92b049f7c05f05927e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09ce4f2cbcf_44d92b049f7c05f05927e–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xOEIcJHqYj5iaEGG3aN9fOxms1BItNYICRx.wW95BznluUoUlMKC6"], ["created_at", "2018-12-07 01:35:11.191694"], ["updated_at", "2018-12-07 01:35:11.191694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.193581"], ["updated_at", "2018-12-07 01:35:11.193581"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8VXSB2/SGt9dvteaaNQZbuOQ8GNCnGmqGi7RGefX9/PIWAAd6W9em"], ["created_at", "2018-12-07 01:35:11.196886"], ["updated_at", "2018-12-07 01:35:11.196886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7819], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10380], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10380], ["room_id", 7819], ["created_at", "2018-12-07 01:35:11.199948"], ["updated_at", "2018-12-07 01:35:11.199948"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:35:11.201343"], ["id", 4039]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7819], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10380], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10380], ["room_id", 7819], ["created_at", "2018-12-07 01:35:11.203931"], ["updated_at", "2018-12-07 01:35:11.203931"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:35:11.205216"], ["id", 4040]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.206610"], ["last_sign_in_at", "2018-12-07 01:35:11.206610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.207038"], ["id", 10379]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10380], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7819], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10380], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7819], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8.WdAWFSmKhOrANnzPQtWut1VRWfCR4IXnzffUoxpAjxnkkmtoc0K"], ["created_at", "2018-12-07 01:35:11.219848"], ["updated_at", "2018-12-07 01:35:11.219848"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.221844"], ["updated_at", "2018-12-07 01:35:11.221844"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9oBYcOHWOH8dC5Cbzn1mOuajQyI.DFPmK9GY/8IRPAC1c6buaJkeG"], ["created_at", "2018-12-07 01:35:11.225240"], ["updated_at", "2018-12-07 01:35:11.225240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7820], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10382], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10382], ["room_id", 7820], ["created_at", "2018-12-07 01:35:11.228384"], ["updated_at", "2018-12-07 01:35:11.228384"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:35:11.229750"], ["id", 4041]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7820], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10382], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10382], ["room_id", 7820], ["created_at", "2018-12-07 01:35:11.232380"], ["updated_at", "2018-12-07 01:35:11.232380"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:35:11.233631"], ["id", 4042]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.235055"], ["last_sign_in_at", "2018-12-07 01:35:11.235055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.235407"], ["id", 10381]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10382], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7820], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10382], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7820], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i.jcOk6cd9E257SsWLBGXurNQ79aZFxq4dn45/1IXDDFUcU21wMlO"], ["created_at", "2018-12-07 01:35:11.247402"], ["updated_at", "2018-12-07 01:35:11.247402"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.249011"], ["last_sign_in_at", "2018-12-07 01:35:11.249011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.249339"], ["id", 10383]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D8rxPWuou2YKh8zUZ1osxO8NyUBWRjBLMkyr.DUuX2IP/xZdDgaEu"], ["created_at", "2018-12-07 01:35:11.262951"], ["updated_at", "2018-12-07 01:35:11.262951"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.264572"], ["last_sign_in_at", "2018-12-07 01:35:11.264572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.264928"], ["id", 10384]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IOdm/qpRCi8Gqul4DK7gH.GMW5N/7DgDZ2JVjiV21lGhO6jadRnjy"], ["created_at", "2018-12-07 01:35:11.270738"], ["updated_at", "2018-12-07 01:35:11.270738"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.272289"], ["last_sign_in_at", "2018-12-07 01:35:11.272289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.272623"], ["id", 10385]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZLJfCoP1/aE5BL/k5xIAM.cXhg9hAlWVwtkOiJM8hsu.ZtVYIfFsi"], ["created_at", "2018-12-07 01:35:11.282027"], ["updated_at", "2018-12-07 01:35:11.282027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.283955"], ["last_sign_in_at", "2018-12-07 01:35:11.283955"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.284456"], ["id", 10386]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9hlS4GbD8E5qe4zyYD3NHu9C92I0ljfdNjbs6NRbuyoH/KQLnBsHK"], ["created_at", "2018-12-07 01:35:11.298573"], ["updated_at", "2018-12-07 01:35:11.298573"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.300133"], ["updated_at", "2018-12-07 01:35:11.300133"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7821” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.301498"], ["last_sign_in_at", "2018-12-07 01:35:11.301498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.301892"], ["id", 10387]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7821"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7821], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8SSPZfUThWOuqTjrSD/XaeiEOvMCtCY7CpnHh8IDmbBOhV.p6Musq"], ["created_at", "2018-12-07 01:35:11.310746"], ["updated_at", "2018-12-07 01:35:11.310746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.312296"], ["updated_at", "2018-12-07 01:35:11.312296"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7822” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.313804"], ["last_sign_in_at", "2018-12-07 01:35:11.313804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.314248"], ["id", 10388]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7822"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7822], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.321400"], ["updated_at", "2018-12-07 01:35:11.321400"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7823” for 127.0.0.1 at 2018-12-06 23:35:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7823"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lpfyp/8pAeOmXXadKuFWnekiMF1OcJ2760mIobjYHNb2y8XY5hmQu"], ["created_at", "2018-12-07 01:35:11.327573"], ["updated_at", "2018-12-07 01:35:11.327573"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.329134"], ["updated_at", "2018-12-07 01:35:11.329134"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7824” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.330514"], ["last_sign_in_at", "2018-12-07 01:35:11.330514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.330878"], ["id", 10389]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7824"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.338582"], ["updated_at", "2018-12-07 01:35:11.338582"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7825” for 127.0.0.1 at 2018-12-06 23:35:11 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7825"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qCZhT4uA2oSGBhFioWylIOyY5ctyCX2BcN0cz4qwtfmMXUSMy2BQW"], ["created_at", "2018-12-07 01:35:11.344636"], ["updated_at", "2018-12-07 01:35:11.344636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.346489"], ["updated_at", "2018-12-07 01:35:11.346489"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7826/edit” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.348179"], ["last_sign_in_at", "2018-12-07 01:35:11.348179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.348681"], ["id", 10390]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7826"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7826], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q.FD7Lu0dmpbDeZxTkFmAOtSnca/P/t06b.zPspKV/g/ISaQRvoFW"], ["created_at", "2018-12-07 01:35:11.359382"], ["updated_at", "2018-12-07 01:35:11.359382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.360973"], ["updated_at", "2018-12-07 01:35:11.360973"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7827/edit” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.362390"], ["last_sign_in_at", "2018-12-07 01:35:11.362390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.362790"], ["id", 10391]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7827"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7827], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.370324"], ["updated_at", "2018-12-07 01:35:11.370324"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7828” for 127.0.0.1 at 2018-12-06 23:35:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7828"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9/PFdgeS6r1zrM9n4Aw8ne0PhuIXzEmHsK.6hDu0bqJN9w7Hwa5Qq"], ["created_at", "2018-12-07 01:35:11.376523"], ["updated_at", "2018-12-07 01:35:11.376523"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.378928"], ["last_sign_in_at", "2018-12-07 01:35:11.378928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.379366"], ["id", 10392]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.382390"], ["updated_at", "2018-12-07 01:35:11.382390"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I8w7LcrI7zVRJqCWinzir.1a6tB3QkVzbVYXtHxxCq0I0ZAdhoLhy"], ["created_at", "2018-12-07 01:35:11.388482"], ["updated_at", "2018-12-07 01:35:11.388482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.390496"], ["last_sign_in_at", "2018-12-07 01:35:11.390496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.390849"], ["id", 10393]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.393241"], ["updated_at", "2018-12-07 01:35:11.393241"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PwjNMcBYxDQgaIswRTcVg.raAEqv9uT02USdMywcTt9rWBJ6A.Pqq"], ["created_at", "2018-12-07 01:35:11.398359"], ["updated_at", "2018-12-07 01:35:11.398359"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.400320"], ["last_sign_in_at", "2018-12-07 01:35:11.400320"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.400657"], ["id", 10394]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7B8I8BwagYXiOoBjsCJqXesw4MRSNioh.hAVL0esvxyV.Xr8RAqTO"], ["created_at", "2018-12-07 01:35:11.408277"], ["updated_at", "2018-12-07 01:35:11.408277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.410534"], ["last_sign_in_at", "2018-12-07 01:35:11.410534"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.410931"], ["id", 10395]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d1.twpA8RX2oondF2K7kUefqawt/adzV8A4xzDMYyE1D55bYk2FtK"], ["created_at", "2018-12-07 01:35:11.419000"], ["updated_at", "2018-12-07 01:35:11.419000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.421067"], ["last_sign_in_at", "2018-12-07 01:35:11.421067"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.421412"], ["id", 10396]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$65B4ufPIWNoiUWkHJQgVtuyJHF/sPD7HD.WPyPoQCWv1VlytBvcu."], ["created_at", "2018-12-07 01:35:11.427228"], ["updated_at", "2018-12-07 01:35:11.427228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.428746"], ["updated_at", "2018-12-07 01:35:11.428746"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7831” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.430446"], ["last_sign_in_at", "2018-12-07 01:35:11.430446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.430813"], ["id", 10397]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7831"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7831], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:35:11.433609"], ["id", 7831]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7831 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$25NrTuUMDTP.u.6l/cSWoe6y7oR/I6V3hEnNucfl88l912Geh8qgC"], ["created_at", "2018-12-07 01:35:11.439119"], ["updated_at", "2018-12-07 01:35:11.439119"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.440701"], ["updated_at", "2018-12-07 01:35:11.440701"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7832” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.442759"], ["last_sign_in_at", "2018-12-07 01:35:11.442759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.443187"], ["id", 10398]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7832"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7832], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:35:11.446566"], ["id", 7832]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7832 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dd5fkMZq6ZMfkHKbgx2lfOnPeo4Xiofa093yUnrIFqMA0uKww78sa"], ["created_at", "2018-12-07 01:35:11.451997"], ["updated_at", "2018-12-07 01:35:11.451997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.453563"], ["updated_at", "2018-12-07 01:35:11.453563"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7833” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.455306"], ["last_sign_in_at", "2018-12-07 01:35:11.455306"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.455730"], ["id", 10399]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7833"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7833], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ptcXZzSnrMPLG/x/kOmZFuHUEQdrG2zxTBLvoI7tCtrd6zvq6jH4q"], ["created_at", "2018-12-07 01:35:11.466882"], ["updated_at", "2018-12-07 01:35:11.466882"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.468568"], ["updated_at", "2018-12-07 01:35:11.468568"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7834” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.470345"], ["last_sign_in_at", "2018-12-07 01:35:11.470345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.470708"], ["id", 10400]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7834"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7834], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9JUpOSDAtTBhVSoWFocEyugc7oUOQMFpKIFxuhumZJBc92EywhQXu"], ["created_at", "2018-12-07 01:35:11.482505"], ["updated_at", "2018-12-07 01:35:11.482505"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.484618"], ["last_sign_in_at", "2018-12-07 01:35:11.484618"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.484969"], ["id", 10401]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$09rA8skWSSFKIJMm3GB7c.XFkc7PR6CdmV4Pq/2XMVXZ3wXhy76z."], ["created_at", "2018-12-07 01:35:11.491080"], ["updated_at", "2018-12-07 01:35:11.491080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.492653"], ["updated_at", "2018-12-07 01:35:11.492653"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7835” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.494080"], ["last_sign_in_at", "2018-12-07 01:35:11.494080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.494515"], ["id", 10402]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7835"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7835], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7835]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rnmtMl0uHdle.64LlUX8MO.ykEl/zhvlSSZ0TylqLVGcJL4OvETQO"], ["created_at", "2018-12-07 01:35:11.502162"], ["updated_at", "2018-12-07 01:35:11.502162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.503695"], ["updated_at", "2018-12-07 01:35:11.503695"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7836” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.505355"], ["last_sign_in_at", "2018-12-07 01:35:11.505355"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.505812"], ["id", 10403]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7836"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7836], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7836]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Zx/RVF0Z74HP9QVkuYC33Oiw4FGfJeRZ4x0Fuz7oybsE1VAWOuECe"], ["created_at", "2018-12-07 01:35:11.514041"], ["updated_at", "2018-12-07 01:35:11.514041"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.515648"], ["updated_at", "2018-12-07 01:35:11.515648"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7837” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.517063"], ["last_sign_in_at", "2018-12-07 01:35:11.517063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.517458"], ["id", 10404]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7837"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xa.bhBCPYQRqovUpYqtqxOmjfwp9bbDzExHwNSomQh9eSHrPC6os6"], ["created_at", "2018-12-07 01:35:11.523589"], ["updated_at", "2018-12-07 01:35:11.523589"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.525101"], ["updated_at", "2018-12-07 01:35:11.525101"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7838” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.526431"], ["last_sign_in_at", "2018-12-07 01:35:11.526431"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.526813"], ["id", 10405]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7838"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BPn6DbN7.bZn0RpZoVvpG.72OfHODYsLsQjy8h0eTUq/yDupI3ISe"], ["created_at", "2018-12-07 01:35:11.532501"], ["updated_at", "2018-12-07 01:35:11.532501"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.534043"], ["last_sign_in_at", "2018-12-07 01:35:11.534043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.534381"], ["id", 10406]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GPCzSzHotsddd9eQRrDtvuEEM9gneqP89kx205bnPgIf4aLfXVe4G"], ["created_at", "2018-12-07 01:35:11.546386"], ["updated_at", "2018-12-07 01:35:11.546386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.547958"], ["updated_at", "2018-12-07 01:35:11.547958"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.549202"], ["updated_at", "2018-12-07 01:35:11.549202"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.550394"], ["updated_at", "2018-12-07 01:35:11.550394"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7839], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10407], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10407], ["room_id", 7839], ["created_at", "2018-12-07 01:35:11.553183"], ["updated_at", "2018-12-07 01:35:11.553183"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.554818"], ["last_sign_in_at", "2018-12-07 01:35:11.554818"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.555183"], ["id", 10407]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4wDcVfupRlm9Ba4ppEv.WeKu5fTZ.q5.eC42X4/B4hMaeNg3xQeHG"], ["created_at", "2018-12-07 01:35:11.571926"], ["updated_at", "2018-12-07 01:35:11.571926"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.573473"], ["updated_at", "2018-12-07 01:35:11.573473"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.574637"], ["updated_at", "2018-12-07 01:35:11.574637"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:35:11.575655"], ["updated_at", "2018-12-07 01:35:11.575655"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7842], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10408], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10408], ["room_id", 7842], ["created_at", "2018-12-07 01:35:11.578184"], ["updated_at", "2018-12-07 01:35:11.578184"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:35:11 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:35:11.579622"], ["last_sign_in_at", "2018-12-07 01:35:11.579622"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:35:11.579935"], ["id", 10408]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iIYZc5RGPsq4fogUC1oi1utS0AgWxJSOQZy85qgAV7Xa0OTLuwxDe"], ["created_at", "2018-12-07 01:45:33.402425"], ["updated_at", "2018-12-07 01:45:33.402425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$93Xrb64E70RwPy/.EVcueu2A8loOzpjC4rAOxhbLvV7YH/stcKj3G"], ["created_at", "2018-12-07 01:45:33.408245"], ["updated_at", "2018-12-07 01:45:33.408245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.421908"], ["updated_at", "2018-12-07 01:45:33.421908"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7845], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10410], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10410], ["room_id", 7845], ["created_at", "2018-12-07 01:45:33.455837"], ["updated_at", "2018-12-07 01:45:33.455837"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4045"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4045], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7845], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10410], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 129.0ms Sent mail to 123@123.com (5.4ms) Date: Thu, 06 Dec 2018 23:45:33 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d0bd961be_45d82ac937b146002965@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d0bd9536e_45d82ac937b1460029519";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d0bd9536e_45d82ac937b1460029519 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d0bd9536e_45d82ac937b1460029519 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d0bd9536e_45d82ac937b1460029519–

Completed 302 Found in 150ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1I8nlMSbDWS2K/9p1nieDedePJoZAAUl8Qwa1L5etiYRTkM/yvnsO"], ["created_at", "2018-12-07 01:45:33.621961"], ["updated_at", "2018-12-07 01:45:33.621961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$exypaPG0saGpPuf2mnik8.pn6m9DshyK75VsS.faCUTdOEYndlhmO"], ["created_at", "2018-12-07 01:45:33.625233"], ["updated_at", "2018-12-07 01:45:33.625233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.626624"], ["updated_at", "2018-12-07 01:45:33.626624"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7846], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10412], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10412], ["room_id", 7846], ["created_at", "2018-12-07 01:45:33.629615"], ["updated_at", "2018-12-07 01:45:33.629615"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4046"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4046], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7846], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10412], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:45:33.634188"], ["id", 4046]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:45:33 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d0bd9bc86_45d82ac937b14600298e3@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d0bd9b6ec_45d82ac937b1460029757";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d0bd9b6ec_45d82ac937b1460029757 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d0bd9b6ec_45d82ac937b1460029757 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d0bd9b6ec_45d82ac937b1460029757–

Completed 302 Found in 8ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$497ofJLbAFjKn7tDs7mAo.ulXVGLmIBiBG0gHCdHmS.kP/zztmWKW"], ["created_at", "2018-12-07 01:45:33.643688"], ["updated_at", "2018-12-07 01:45:33.643688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ERrkvObh.qyKqYy1K6i1aueqpuKBGYTR5JLCOrGhlC6RMwgG0EeOW"], ["created_at", "2018-12-07 01:45:33.647075"], ["updated_at", "2018-12-07 01:45:33.647075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.648765"], ["updated_at", "2018-12-07 01:45:33.648765"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7847], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10414], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10414], ["room_id", 7847], ["created_at", "2018-12-07 01:45:33.652157"], ["updated_at", "2018-12-07 01:45:33.652157"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a8.PqFL8X0qtSvXH864uWekCN2JxAc8sx21mBL21c/lJVFA2tg7IO"], ["created_at", "2018-12-07 01:45:33.658844"], ["updated_at", "2018-12-07 01:45:33.658844"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pgKdyEok6U4bK3TAPhqJ/.pf5K7Yft/eu8OnI2JsGt1rbPlrT89yi"], ["created_at", "2018-12-07 01:45:33.662018"], ["updated_at", "2018-12-07 01:45:33.662018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.663510"], ["updated_at", "2018-12-07 01:45:33.663510"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7848], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10416], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10416], ["room_id", 7848], ["created_at", "2018-12-07 01:45:33.666281"], ["updated_at", "2018-12-07 01:45:33.666281"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4048], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$MBnLMTnpOlBFYynphxI/0eNitTFfNgm1AuD8bvcQqTQz0S4fgs8uy"], ["created_at", "2018-12-07 01:45:33.671491"], ["updated_at", "2018-12-07 01:45:33.671491"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10417"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "tB99TGKffYFI8Rivo-Y0Vw"], ["updated_at", "2018-12-07 01:45:33.674648"], ["id", 10417]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:45:33.676168"], ["reset_sent_at", "2018-12-07 01:45:33.675830"], ["id", 10417]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:45:33 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d0bda6d92_45d82ac937b14600301d1@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d0bda679e_45d82ac937b146003009c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d0bda679e_45d82ac937b146003009c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/tB99TGKffYFI8Rivo-Y0Vw/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d0bda679e_45d82ac937b146003009c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/tB99TGKffYFI8Rivo-Y0Vw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d0bda679e_45d82ac937b146003009c–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$5xQitjtIvrUjHmQ752VcS.s0ROQrdUjuBjpNSYXxSaZXJU6nlxHgu"], ["created_at", "2018-12-07 01:45:33.689146"], ["updated_at", "2018-12-07 01:45:33.689146"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Q8atWwseOPKTgQoJ7FKctOpHVxlsvOK/uu.HfUJc81BzXpFrI8jYO"], ["created_at", "2018-12-07 01:45:33.696449"], ["updated_at", "2018-12-07 01:45:33.696449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10419"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$rX2jEs0alC1RwltPAUe6CeDh0PFu89EwDtnTyjFauVm1RGL3pyM8i"], ["updated_at", "2018-12-07 01:45:33.700576"], ["id", 10419]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$7NUuKc6TPM3XycCE7v1NKOkF09b709lHHujD2LoBStVdcnugRkF6W"], ["created_at", "2018-12-07 01:45:33.705466"], ["updated_at", "2018-12-07 01:45:33.705466"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10420"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$anl7rKR4KZVcQF00GEZALusFvs2uuzJUWFzd.jWdMpspFWDqDdQPe"], ["created_at", "2018-12-07 01:45:33.713589"], ["updated_at", "2018-12-07 01:45:33.713589"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10421"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Z1/R45EKhgTdeF9LkKdz4e6.iFCN1sr6edPAzSM1912NSDiguakZu"], ["created_at", "2018-12-07 01:45:33.726950"], ["updated_at", "2018-12-07 01:45:33.726950"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10422"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$NOfSHN9vibG8NTVFAepyLuZeXPeK823W2Yto3guynT2tDOziEndly"], ["created_at", "2018-12-07 01:45:33.735290"], ["updated_at", "2018-12-07 01:45:33.735290"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10423"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VZ36ZV9Iq3TI7Zg4sIIP3ulNPO5SXwDyQIFKHsan.k.AEHtJ0azmm"], ["created_at", "2018-12-07 01:45:33.743205"], ["updated_at", "2018-12-07 01:45:33.743205"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pgkFB/rJ2DS3Ch1wYTUImeB6ilfXwweGP.etS2hd3AfZ0asiigjhK"], ["created_at", "2018-12-07 01:45:33.749840"], ["updated_at", "2018-12-07 01:45:33.749840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CBQIahfDNLt8wcnQ5AmK..xLDjf9xh70VGJSq1RoywOykztnojcB2"], ["created_at", "2018-12-07 01:45:33.756603"], ["updated_at", "2018-12-07 01:45:33.756603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.758056"], ["updated_at", "2018-12-07 01:45:33.758056"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7849], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10426], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10426], ["room_id", 7849], ["created_at", "2018-12-07 01:45:33.760841"], ["updated_at", "2018-12-07 01:45:33.760841"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YcEQ6.6xHeyUc3GVJc1xHOPrxhFdGuR1C1Tx00SPsaFqlLOlQJa06"], ["created_at", "2018-12-07 01:45:33.767096"], ["updated_at", "2018-12-07 01:45:33.767096"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.768576"], ["updated_at", "2018-12-07 01:45:33.768576"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7850], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10427], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10427], ["room_id", 7850], ["created_at", "2018-12-07 01:45:33.771467"], ["updated_at", "2018-12-07 01:45:33.771467"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FGD6Y9vkbPNQTGNfPWe8EeAOnZ9VhgLwwqupJWhJHaRB/QMDHQYoi"], ["created_at", "2018-12-07 01:45:33.794019"], ["updated_at", "2018-12-07 01:45:33.794019"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.795750"], ["updated_at", "2018-12-07 01:45:33.795750"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.802622"], ["last_sign_in_at", "2018-12-07 01:45:33.802622"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.803012"], ["id", 10428]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7851"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7851 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 26ms (ActiveRecord: 0.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7851], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pcjUyNIkZmxRhYCpf59YeOfz75u0o/gNPtNFjapTLfG4gXsY0rYVS"], ["created_at", "2018-12-07 01:45:33.846945"], ["updated_at", "2018-12-07 01:45:33.846945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.848605"], ["updated_at", "2018-12-07 01:45:33.848605"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.850389"], ["last_sign_in_at", "2018-12-07 01:45:33.850389"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.850708"], ["id", 10429]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7852"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7852 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bQwqyLKKDC.dC0XZNErm0eqVNz6dg5cqLS9o2BjxQhpwqikrPeluC"], ["created_at", "2018-12-07 01:45:33.858142"], ["updated_at", "2018-12-07 01:45:33.858142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.859818"], ["updated_at", "2018-12-07 01:45:33.859818"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.862046"], ["last_sign_in_at", "2018-12-07 01:45:33.862046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.862453"], ["id", 10430]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7853", "user_id"=>"10430"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7853 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7853", "user_id"=>"10430"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10430], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7853 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NOIuVRUze8k2kwfSLpdBp.IfbLwESk3hAQFMzcjq0GwmyfX8jh9eC"], ["created_at", "2018-12-07 01:45:33.872979"], ["updated_at", "2018-12-07 01:45:33.872979"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.875029"], ["updated_at", "2018-12-07 01:45:33.875029"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.877462"], ["last_sign_in_at", "2018-12-07 01:45:33.877462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.877889"], ["id", 10431]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7854", "user_id"=>"10431"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7854 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7854", "user_id"=>"10431"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10431], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7854 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7854], ["user_id", 10431], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$spRQz09my2UGTA1wDYdSgO7V3yay8WS5bBk8p9Etri/pv5q4kwrVG"], ["created_at", "2018-12-07 01:45:33.889058"], ["updated_at", "2018-12-07 01:45:33.889058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.890585"], ["updated_at", "2018-12-07 01:45:33.890585"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.892668"], ["last_sign_in_at", "2018-12-07 01:45:33.892668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.893093"], ["id", 10432]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7855", "user_id"=>"10432"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7855 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7855", "user_id"=>"10432"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10432], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7855 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7855], ["user_id", 10432], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fI/sCHPaZhR2dzsVWESzFekWuvqgY4GWB/GdWvqQukIh00MtiP/lG"], ["created_at", "2018-12-07 01:45:33.903651"], ["updated_at", "2018-12-07 01:45:33.903651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.905786"], ["updated_at", "2018-12-07 01:45:33.905786"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.907864"], ["last_sign_in_at", "2018-12-07 01:45:33.907864"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.908245"], ["id", 10433]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7856"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7856], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VM59NujvCPAXwJLiiNM8seYV5JMpFLcu9TZKqafMRIfK2VrKzfIfu"], ["created_at", "2018-12-07 01:45:33.916371"], ["updated_at", "2018-12-07 01:45:33.916371"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.918022"], ["updated_at", "2018-12-07 01:45:33.918022"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.919893"], ["last_sign_in_at", "2018-12-07 01:45:33.919893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.920299"], ["id", 10434]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7857"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nYfvM4Ya0r0l06ezgGVrQOMediV9bLL/QOLhLI5rEH9ixdsS5MnBS"], ["created_at", "2018-12-07 01:45:33.926896"], ["updated_at", "2018-12-07 01:45:33.926896"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:33.928372"], ["updated_at", "2018-12-07 01:45:33.928372"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7858], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10435], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10435], ["room_id", 7858], ["created_at", "2018-12-07 01:45:33.931369"], ["updated_at", "2018-12-07 01:45:33.931369"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7858” for 127.0.0.1 at 2018-12-06 23:45:33 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:33.932854"], ["last_sign_in_at", "2018-12-07 01:45:33.932854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:33.933206"], ["id", 10435]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7858"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7858], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7858')
Rendered appointments/show.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-user.html.erb (4.4ms)

Completed 200 OK in 149ms (Views: 147.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$a0UNqCTY2OVin0FDuTSBxeKDgpj0H/0dW9fcLHliB1IeXalMiLI5m"], ["created_at", "2018-12-07 01:45:34.091977"], ["updated_at", "2018-12-07 01:45:34.091977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.094606"], ["updated_at", "2018-12-07 01:45:34.094606"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7859], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10436], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10436], ["room_id", 7859], ["created_at", "2018-12-07 01:45:34.101227"], ["updated_at", "2018-12-07 01:45:34.101227"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4052/edit” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.104091"], ["last_sign_in_at", "2018-12-07 01:45:34.104091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.106549"], ["id", 10436]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4052"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4052], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lsJ0s6bq10pWgted6G1tG.WSJodhK7zHHX48aZ9ZZ2sLcODH0hCKW"], ["created_at", "2018-12-07 01:45:34.128974"], ["updated_at", "2018-12-07 01:45:34.128974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.131560"], ["last_sign_in_at", "2018-12-07 01:45:34.131560"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.132048"], ["id", 10437]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (5.0ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 12ms (Views: 10.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q36QdTepKld9WofbSe9tIu1VNoAk8VoZhVVkNK0J/LLMTyfQmmEaC"], ["created_at", "2018-12-07 01:45:34.158516"], ["updated_at", "2018-12-07 01:45:34.158516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.162038"], ["updated_at", "2018-12-07 01:45:34.162038"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7860], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10438], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10438], ["room_id", 7860], ["created_at", "2018-12-07 01:45:34.167296"], ["updated_at", "2018-12-07 01:45:34.167296"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7860], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10438], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10438], ["room_id", 7860], ["created_at", "2018-12-07 01:45:34.172830"], ["updated_at", "2018-12-07 01:45:34.172830"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.175128"], ["last_sign_in_at", "2018-12-07 01:45:34.175128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.175578"], ["id", 10438]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10438]]
Rendered appointments/my_appointments.html.erb within layouts/application (12.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 23ms (Views: 15.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$g7tpogWot3ykwxjnfcBVleq8l2waSiSmLKot2VMQm3bfrZr26u5AO"], ["created_at", "2018-12-07 01:45:34.207142"], ["updated_at", "2018-12-07 01:45:34.207142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.209437"], ["updated_at", "2018-12-07 01:45:34.209437"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7861], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10439], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10439], ["room_id", 7861], ["created_at", "2018-12-07 01:45:34.213739"], ["updated_at", "2018-12-07 01:45:34.213739"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7861], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10439], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10439], ["room_id", 7861], ["created_at", "2018-12-07 01:45:34.217165"], ["updated_at", "2018-12-07 01:45:34.217165"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.218887"], ["last_sign_in_at", "2018-12-07 01:45:34.218887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.219283"], ["id", 10439]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10439]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aKlYsQlpd43/ILr9KduDfutXECydKVx11moUljhudk7Y1Bj8H7heO"], ["created_at", "2018-12-07 01:45:34.229630"], ["updated_at", "2018-12-07 01:45:34.229630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.231423"], ["updated_at", "2018-12-07 01:45:34.231423"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7862], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10440], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10440], ["room_id", 7862], ["created_at", "2018-12-07 01:45:34.234530"], ["updated_at", "2018-12-07 01:45:34.234530"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4057” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.236087"], ["last_sign_in_at", "2018-12-07 01:45:34.236087"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.236473"], ["id", 10440]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4057"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4057], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4057]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2Kg3Ym0XxW1sRz8PrQWFauN2WwpDsfqch7w8JZGbYHhmdqaGnVWrC"], ["created_at", "2018-12-07 01:45:34.246237"], ["updated_at", "2018-12-07 01:45:34.246237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.247971"], ["updated_at", "2018-12-07 01:45:34.247971"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p.ILaF2/p2cPBNwXErqGJ.eVUKiCXpkIkvYniMYddIM7Lnz0c1SA6"], ["created_at", "2018-12-07 01:45:34.251162"], ["updated_at", "2018-12-07 01:45:34.251162"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7863], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10442], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10442], ["room_id", 7863], ["created_at", "2018-12-07 01:45:34.254158"], ["updated_at", "2018-12-07 01:45:34.254158"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4058” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.256081"], ["last_sign_in_at", "2018-12-07 01:45:34.256081"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.256447"], ["id", 10441]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4058"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4058], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7863], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10442], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jKhklmnYtPF9XzP5PpF/u.bBEWPUxfk5wIUtuAswKkM5M4cgf1ZuW"], ["created_at", "2018-12-07 01:45:34.265965"], ["updated_at", "2018-12-07 01:45:34.265965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.267557"], ["updated_at", "2018-12-07 01:45:34.267557"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XR8rh18p50iW8mGALaHyD.ImquL9j/NRhSMOTxSiBoVkcgjQ79cle"], ["created_at", "2018-12-07 01:45:34.270635"], ["updated_at", "2018-12-07 01:45:34.270635"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7864], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10444], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10444], ["room_id", 7864], ["created_at", "2018-12-07 01:45:34.273911"], ["updated_at", "2018-12-07 01:45:34.273911"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4059” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.276579"], ["last_sign_in_at", "2018-12-07 01:45:34.276579"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.277061"], ["id", 10443]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4059"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4059], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7864], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10444], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sWvzMsD6EYL6ZlnCn1DWAe9l5Eq3xtbyuRUk81.jO/HBWBXFqpS6K"], ["created_at", "2018-12-07 01:45:34.286178"], ["updated_at", "2018-12-07 01:45:34.286178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.287768"], ["updated_at", "2018-12-07 01:45:34.287768"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pUbgmxXJUB8TppgBW0q4WOToGOAy3Gzs3p4Zg.BRsSWAda4ilemvu"], ["created_at", "2018-12-07 01:45:34.291020"], ["updated_at", "2018-12-07 01:45:34.291020"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7865], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10446], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10446], ["room_id", 7865], ["created_at", "2018-12-07 01:45:34.294102"], ["updated_at", "2018-12-07 01:45:34.294102"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4060” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.296001"], ["last_sign_in_at", "2018-12-07 01:45:34.296001"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.296390"], ["id", 10445]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4060"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4060], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7865], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10446], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:45:34.300512"], ["id", 4060]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms Sent mail to 123@123.com (2.7ms) Date: Thu, 06 Dec 2018 23:45:34 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d0be4a547_45d82ac937b146003087f@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d0be49f10_45d82ac937b14600307de";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d0be49f10_45d82ac937b14600307de Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d0be49f10_45d82ac937b14600307de Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d0be49f10_45d82ac937b14600307de–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l5CPkIzHU1gUVtjI3tXDp.OZHp2c287pglrjt8TmIqy4fykDzvf4C"], ["created_at", "2018-12-07 01:45:34.311526"], ["updated_at", "2018-12-07 01:45:34.311526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.313283"], ["updated_at", "2018-12-07 01:45:34.313283"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vnDL6cF76NDvcOQ1rCN.leEtnzvJ3zwvtW4Nt5zFINFCo90A0TMYS"], ["created_at", "2018-12-07 01:45:34.316485"], ["updated_at", "2018-12-07 01:45:34.316485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7866], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10448], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10448], ["room_id", 7866], ["created_at", "2018-12-07 01:45:34.319609"], ["updated_at", "2018-12-07 01:45:34.319609"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:45:34.320954"], ["id", 4061]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7866], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10448], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10448], ["room_id", 7866], ["created_at", "2018-12-07 01:45:34.323567"], ["updated_at", "2018-12-07 01:45:34.323567"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:45:34.324838"], ["id", 4062]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.326237"], ["last_sign_in_at", "2018-12-07 01:45:34.326237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.326614"], ["id", 10447]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10448], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7866], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10448], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7866], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B9NdSPi3RLOHW06O.WZLwOhTBVknu417djAp9mkF5uA/q3avyZG.a"], ["created_at", "2018-12-07 01:45:34.340287"], ["updated_at", "2018-12-07 01:45:34.340287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.342006"], ["updated_at", "2018-12-07 01:45:34.342006"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HxNausfIEh9UYQIfBpIzFelBJivCnEA8VgPH2E7MSPbWxQefMKPNO"], ["created_at", "2018-12-07 01:45:34.345166"], ["updated_at", "2018-12-07 01:45:34.345166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7867], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10450], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10450], ["room_id", 7867], ["created_at", "2018-12-07 01:45:34.348230"], ["updated_at", "2018-12-07 01:45:34.348230"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:45:34.349574"], ["id", 4063]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7867], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10450], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10450], ["room_id", 7867], ["created_at", "2018-12-07 01:45:34.352171"], ["updated_at", "2018-12-07 01:45:34.352171"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:45:34.353447"], ["id", 4064]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.354831"], ["last_sign_in_at", "2018-12-07 01:45:34.354831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.355183"], ["id", 10449]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10450], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7867], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10450], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7867], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vTCBEUt2Qz5MdMXZdZytw.PAS5nyUO1ju0Y9RsVTDHw4fWRzfjj7e"], ["created_at", "2018-12-07 01:45:34.368043"], ["updated_at", "2018-12-07 01:45:34.368043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.369901"], ["last_sign_in_at", "2018-12-07 01:45:34.369901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.370274"], ["id", 10451]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F0gcFWiNmvxPcMJ4QshtRuHq0yHKfLdUQICplHHOwq/6JwY8hBGXm"], ["created_at", "2018-12-07 01:45:34.383259"], ["updated_at", "2018-12-07 01:45:34.383259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.384930"], ["last_sign_in_at", "2018-12-07 01:45:34.384930"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.385268"], ["id", 10452]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$35WdLgrpHqSKYrGxJ.vmXe13i70hDRCl/rR9oFhGwfYVuVnXpDrA6"], ["created_at", "2018-12-07 01:45:34.391094"], ["updated_at", "2018-12-07 01:45:34.391094"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.392632"], ["last_sign_in_at", "2018-12-07 01:45:34.392632"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.392968"], ["id", 10453]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5abYF8XP.rtYEgafOV6VfO83RXyWEN7ES903AOs/MQK4fTrj0OaWS"], ["created_at", "2018-12-07 01:45:34.403163"], ["updated_at", "2018-12-07 01:45:34.403163"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.404802"], ["last_sign_in_at", "2018-12-07 01:45:34.404802"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.405160"], ["id", 10454]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CNVSxKM/4sXKuJeJmPd2Y.AXj1Yd5AM5UVjmN1onvNTr7Blew1xcC"], ["created_at", "2018-12-07 01:45:34.418878"], ["updated_at", "2018-12-07 01:45:34.418878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.420450"], ["updated_at", "2018-12-07 01:45:34.420450"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7868” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.421853"], ["last_sign_in_at", "2018-12-07 01:45:34.421853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.422210"], ["id", 10455]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7868"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7868], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N/nhGkArlzHFpG8UX.ZRTuu2hfEPF8Pily6pACQAlQG/mL..k/OJu"], ["created_at", "2018-12-07 01:45:34.431581"], ["updated_at", "2018-12-07 01:45:34.431581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.433278"], ["updated_at", "2018-12-07 01:45:34.433278"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7869” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.434803"], ["last_sign_in_at", "2018-12-07 01:45:34.434803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.435193"], ["id", 10456]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7869"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7869], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.441642"], ["updated_at", "2018-12-07 01:45:34.441642"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7870” for 127.0.0.1 at 2018-12-06 23:45:34 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7870"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bW4xv5Q5uM4aSGLWhNzjVuzPgtKCSycAyzl5I8fhQc54E2xC5QEZO"], ["created_at", "2018-12-07 01:45:34.447857"], ["updated_at", "2018-12-07 01:45:34.447857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.449440"], ["updated_at", "2018-12-07 01:45:34.449440"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7871” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.450844"], ["last_sign_in_at", "2018-12-07 01:45:34.450844"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.451202"], ["id", 10457]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7871"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.459046"], ["updated_at", "2018-12-07 01:45:34.459046"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7872” for 127.0.0.1 at 2018-12-06 23:45:34 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7872"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jtMKexomsO9FZtIkrAlnQOt02ce9fdoCDkUOqZuBPV.gtj09iW6TC"], ["created_at", "2018-12-07 01:45:34.466212"], ["updated_at", "2018-12-07 01:45:34.466212"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.467838"], ["updated_at", "2018-12-07 01:45:34.467838"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7873/edit” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.469274"], ["last_sign_in_at", "2018-12-07 01:45:34.469274"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.469650"], ["id", 10458]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7873"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7873], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wDCumwSOQQERIlJC0/7iwOSsJqGk2sUfvGAwRm0AJpv7F5tdoEJjO"], ["created_at", "2018-12-07 01:45:34.480176"], ["updated_at", "2018-12-07 01:45:34.480176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.481767"], ["updated_at", "2018-12-07 01:45:34.481767"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7874/edit” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.483226"], ["last_sign_in_at", "2018-12-07 01:45:34.483226"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.483632"], ["id", 10459]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7874"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7874], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.491395"], ["updated_at", "2018-12-07 01:45:34.491395"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7875” for 127.0.0.1 at 2018-12-06 23:45:34 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7875"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JTmE5B/O.PSfRrPj079N/usZ2IV86/BiongcngJDORFI1Ds67M05a"], ["created_at", "2018-12-07 01:45:34.498609"], ["updated_at", "2018-12-07 01:45:34.498609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.500752"], ["last_sign_in_at", "2018-12-07 01:45:34.500752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.501099"], ["id", 10460]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.503570"], ["updated_at", "2018-12-07 01:45:34.503570"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vEPr2lX7a1P9iI8K.z2MeOw5HVkpzjiscsKbovESVVvkIacljcXXu"], ["created_at", "2018-12-07 01:45:34.509218"], ["updated_at", "2018-12-07 01:45:34.509218"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.511222"], ["last_sign_in_at", "2018-12-07 01:45:34.511222"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.511566"], ["id", 10461]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.513868"], ["updated_at", "2018-12-07 01:45:34.513868"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cVb7dQBV9DlDXIR3E/5.lu/OEJyvbbDU6r3Q7RFjGREXOnsVlKpdy"], ["created_at", "2018-12-07 01:45:34.518907"], ["updated_at", "2018-12-07 01:45:34.518907"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.520908"], ["last_sign_in_at", "2018-12-07 01:45:34.520908"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.521252"], ["id", 10462]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YHwW.hx8qBiiKMjLGYp/ZOgNqkFRg1n9W.Ev5Kul.ysasIP4gUEH6"], ["created_at", "2018-12-07 01:45:34.529638"], ["updated_at", "2018-12-07 01:45:34.529638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.531733"], ["last_sign_in_at", "2018-12-07 01:45:34.531733"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.532102"], ["id", 10463]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kSeXuNMUtp3LHeD2ve8O.ubsIeue968AUBt97m5AdN0j1sS7XpLTG"], ["created_at", "2018-12-07 01:45:34.539645"], ["updated_at", "2018-12-07 01:45:34.539645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.541593"], ["last_sign_in_at", "2018-12-07 01:45:34.541593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.541935"], ["id", 10464]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cYOQ.V.UCMiXLgascMPzd.vWEVfklAMMKTK.mXgPR94qsl2lEIkKy"], ["created_at", "2018-12-07 01:45:34.547878"], ["updated_at", "2018-12-07 01:45:34.547878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.549408"], ["updated_at", "2018-12-07 01:45:34.549408"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7878” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.551126"], ["last_sign_in_at", "2018-12-07 01:45:34.551126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.551491"], ["id", 10465]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7878"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7878], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:45:34.554334"], ["id", 7878]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7878 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4LOMSIFlZd0COlUzSvCw.OgjlwegKFGTrkf8.TjDUR69QTxcA2j.W"], ["created_at", "2018-12-07 01:45:34.560802"], ["updated_at", "2018-12-07 01:45:34.560802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.562479"], ["updated_at", "2018-12-07 01:45:34.562479"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7879” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.564270"], ["last_sign_in_at", "2018-12-07 01:45:34.564270"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.564662"], ["id", 10466]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7879"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7879], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:45:34.567492"], ["id", 7879]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7879 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Pn8qyDB4apcV3NOhd/AyoeGIfqG4g3fZGM1aeNwaQrzA607xKfIC2"], ["created_at", "2018-12-07 01:45:34.572746"], ["updated_at", "2018-12-07 01:45:34.572746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.574366"], ["updated_at", "2018-12-07 01:45:34.574366"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7880” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.576125"], ["last_sign_in_at", "2018-12-07 01:45:34.576125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.576510"], ["id", 10467]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7880"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7880], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MfAmYK92xtSGXirIEyFOtugNQrECunSxwhiqgUGWMzgGTkF3Fa/T2"], ["created_at", "2018-12-07 01:45:34.588033"], ["updated_at", "2018-12-07 01:45:34.588033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.590125"], ["updated_at", "2018-12-07 01:45:34.590125"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7881” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.592100"], ["last_sign_in_at", "2018-12-07 01:45:34.592100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.592544"], ["id", 10468]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7881"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7881], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cUqhkjXrD.uJdpGwKtIZQeiYDvBQsLzvKTk1KIOVR.qRIa.xzDlda"], ["created_at", "2018-12-07 01:45:34.603946"], ["updated_at", "2018-12-07 01:45:34.603946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.606040"], ["last_sign_in_at", "2018-12-07 01:45:34.606040"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.606386"], ["id", 10469]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xahwWRp9feBkSCU7aNxoEOGdjRCKEXH1ePu9l/QYshhV1veEWuNK2"], ["created_at", "2018-12-07 01:45:34.612461"], ["updated_at", "2018-12-07 01:45:34.612461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.614062"], ["updated_at", "2018-12-07 01:45:34.614062"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7882” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.615492"], ["last_sign_in_at", "2018-12-07 01:45:34.615492"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.615902"], ["id", 10470]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7882"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7882], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7882]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pBY.i/M1kvOKxq2aNtNMuOa0dA6HWo4PuU3TCPkDq1EHnRmxwOwMq"], ["created_at", "2018-12-07 01:45:34.624688"], ["updated_at", "2018-12-07 01:45:34.624688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.626522"], ["updated_at", "2018-12-07 01:45:34.626522"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7883” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.628028"], ["last_sign_in_at", "2018-12-07 01:45:34.628028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.628450"], ["id", 10471]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7883"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7883], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7883]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5yoT/MxuOsOrYDMqwdFkLOwh8seDoqH6mkoymhEaKdb5jbxQEoySC"], ["created_at", "2018-12-07 01:45:34.635762"], ["updated_at", "2018-12-07 01:45:34.635762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.637300"], ["updated_at", "2018-12-07 01:45:34.637300"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7884” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.638656"], ["last_sign_in_at", "2018-12-07 01:45:34.638656"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.639009"], ["id", 10472]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7884"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TzqewuJJhVe87btt9eOtWu4iLVXUJ/2wvPKmUbDO3NN.OHA7fNKgu"], ["created_at", "2018-12-07 01:45:34.644977"], ["updated_at", "2018-12-07 01:45:34.644977"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.646472"], ["updated_at", "2018-12-07 01:45:34.646472"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7885” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.647782"], ["last_sign_in_at", "2018-12-07 01:45:34.647782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.648128"], ["id", 10473]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7885"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vHCCPFzkV7x8Z2R3MazTv.dB7KXr4aHzVP7wLyyXgk3jzftNtfEbW"], ["created_at", "2018-12-07 01:45:34.654657"], ["updated_at", "2018-12-07 01:45:34.654657"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.656375"], ["last_sign_in_at", "2018-12-07 01:45:34.656375"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.656719"], ["id", 10474]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0S3be6AHjT7OojKuTRdeoeJTetDyRovYNkIpkIVU.jOH7gshDKrWm"], ["created_at", "2018-12-07 01:45:34.668223"], ["updated_at", "2018-12-07 01:45:34.668223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.669780"], ["updated_at", "2018-12-07 01:45:34.669780"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.671095"], ["updated_at", "2018-12-07 01:45:34.671095"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.672277"], ["updated_at", "2018-12-07 01:45:34.672277"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7886], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10475], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10475], ["room_id", 7886], ["created_at", "2018-12-07 01:45:34.675078"], ["updated_at", "2018-12-07 01:45:34.675078"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.676654"], ["last_sign_in_at", "2018-12-07 01:45:34.676654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.677039"], ["id", 10475]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HHUs9JdjUSGCcJu089mTTultZputhQnY/SmOGIxLbotbyOW.XS4fq"], ["created_at", "2018-12-07 01:45:34.694311"], ["updated_at", "2018-12-07 01:45:34.694311"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.695947"], ["updated_at", "2018-12-07 01:45:34.695947"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.697184"], ["updated_at", "2018-12-07 01:45:34.697184"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:45:34.698469"], ["updated_at", "2018-12-07 01:45:34.698469"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7889], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10476], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10476], ["room_id", 7889], ["created_at", "2018-12-07 01:45:34.701271"], ["updated_at", "2018-12-07 01:45:34.701271"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:45:34 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:45:34.702887"], ["last_sign_in_at", "2018-12-07 01:45:34.702887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:45:34.703261"], ["id", 10476]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l0rYkhQv.qjoWLOELxsJauZV.QWm2STFvSwW.OAsc4HbwPgqlBQK2"], ["created_at", "2018-12-07 01:49:23.132391"], ["updated_at", "2018-12-07 01:49:23.132391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KQpqzwiWt3APaB4I/bz4De/Ig.3KNB8t3PVETHK/JaqfISWEmoTEO"], ["created_at", "2018-12-07 01:49:23.138134"], ["updated_at", "2018-12-07 01:49:23.138134"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.152757"], ["updated_at", "2018-12-07 01:49:23.152757"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7892], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10478], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10478], ["room_id", 7892], ["created_at", "2018-12-07 01:49:23.187509"], ["updated_at", "2018-12-07 01:49:23.187509"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4067"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4067], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7892], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10478], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 128.7ms Sent mail to 123@123.com (5.3ms) Date: Thu, 06 Dec 2018 23:49:23 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1a3542fd_466a2b0086e3a600816a5@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1a353528_466a2b0086e3a600815a0";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1a353528_466a2b0086e3a600815a0 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1a353528_466a2b0086e3a600815a0 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1a353528_466a2b0086e3a600815a0–

Completed 302 Found in 149ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZSBjYyDdJ2Wma4ybgULEaevEsIvVPdXjV6iYl.XuNxdMrgGouwbBy"], ["created_at", "2018-12-07 01:49:23.351852"], ["updated_at", "2018-12-07 01:49:23.351852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wvvCphrlq9Djf0nxXPwUfeheFYfCMxX8SRca1ddIQk99KraLw/N3a"], ["created_at", "2018-12-07 01:49:23.354919"], ["updated_at", "2018-12-07 01:49:23.354919"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.356258"], ["updated_at", "2018-12-07 01:49:23.356258"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7893], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10480], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10480], ["room_id", 7893], ["created_at", "2018-12-07 01:49:23.358823"], ["updated_at", "2018-12-07 01:49:23.358823"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4068"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4068], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7893], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10480], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:49:23.363697"], ["id", 4068]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:49:23 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1a359bc9_466a2b0086e3a600818f9@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1a359665_466a2b0086e3a6008172a";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1a359665_466a2b0086e3a6008172a Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1a359665_466a2b0086e3a6008172a Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1a359665_466a2b0086e3a6008172a–

Completed 302 Found in 9ms (ActiveRecord: 1.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ctOxSHUkrnedvKSDiGrkZOvIBNxV0ug1Tkk27tUIAhAhCuX1ldMCK"], ["created_at", "2018-12-07 01:49:23.372873"], ["updated_at", "2018-12-07 01:49:23.372873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1KLQt/yNowlZTt05U6ltEufELREkzJR2lg5ltT9ZaQcCREufCSCR."], ["created_at", "2018-12-07 01:49:23.376178"], ["updated_at", "2018-12-07 01:49:23.376178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.378270"], ["updated_at", "2018-12-07 01:49:23.378270"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7894], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10482], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10482], ["room_id", 7894], ["created_at", "2018-12-07 01:49:23.381874"], ["updated_at", "2018-12-07 01:49:23.381874"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$231GExBJfrc8.xJv.8kmmeM0QDu9pJrSZZcLRuXYlAUOKy6sQS9xe"], ["created_at", "2018-12-07 01:49:23.388380"], ["updated_at", "2018-12-07 01:49:23.388380"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.wphPJ0fRlPMMa16u6qdT.L6JQD6ecH49qvZJL/Zmhb78D9YcCPrm"], ["created_at", "2018-12-07 01:49:23.391529"], ["updated_at", "2018-12-07 01:49:23.391529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.393059"], ["updated_at", "2018-12-07 01:49:23.393059"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7895], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10484], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10484], ["room_id", 7895], ["created_at", "2018-12-07 01:49:23.395923"], ["updated_at", "2018-12-07 01:49:23.395923"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4070], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$QppajpQYajEjz9E1uoZeS.OMa/VNADVl7maOzkjuABJ05aSAKsfdy"], ["created_at", "2018-12-07 01:49:23.401306"], ["updated_at", "2018-12-07 01:49:23.401306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10485"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "aFtgmrsI4XDGLqojO4sA1g"], ["updated_at", "2018-12-07 01:49:23.404485"], ["id", 10485]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:49:23.405847"], ["reset_sent_at", "2018-12-07 01:49:23.405575"], ["id", 10485]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.4ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:49:23 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d1a364de2_466a2b0086e3a600821a9@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1a3647ed_466a2b0086e3a600820cb";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1a3647ed_466a2b0086e3a600820cb Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/aFtgmrsI4XDGLqojO4sA1g/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d1a3647ed_466a2b0086e3a600820cb Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/aFtgmrsI4XDGLqojO4sA1g/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1a3647ed_466a2b0086e3a600820cb–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$uYzfYHmJIU5FcdBlXDbPS.jSF.Hr7Nz8AVVJ2uBNEGekiOQzLkry."], ["created_at", "2018-12-07 01:49:23.418853"], ["updated_at", "2018-12-07 01:49:23.418853"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$TKxIPVrQK2U9GMwkRjh48OUnRUCrNRhUh5GeRhNRyoQtbo5ud0H22"], ["created_at", "2018-12-07 01:49:23.426088"], ["updated_at", "2018-12-07 01:49:23.426088"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10487"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$/UPcHqTja6IfeXFOMQBtKe6UNPW91jR9og2SBY/VtXB.zplbEj/sm"], ["updated_at", "2018-12-07 01:49:23.430054"], ["id", 10487]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$jVkaOnkGR1SVoYGGDZ0hueTC5Efgi0kdeMP1.JU0sYaStdS367RsO"], ["created_at", "2018-12-07 01:49:23.434753"], ["updated_at", "2018-12-07 01:49:23.434753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10488"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$sm8lovNSE.l00yWWDSwwjODZ2HbtiqmaefoxiN.Re921Wjs9WYSRa"], ["created_at", "2018-12-07 01:49:23.442661"], ["updated_at", "2018-12-07 01:49:23.442661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10489"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$.A0lTqpsWDcZKKw1p0moue9Rgh2ZYz4sNrN7yE/bBY0ibPQ/EYo9K"], ["created_at", "2018-12-07 01:49:23.455884"], ["updated_at", "2018-12-07 01:49:23.455884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10490"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$JlOGSYnA6j9WdZRI8JBDduSW/LDnbsh5T68DhIN01ZWIRmgEwRwwa"], ["created_at", "2018-12-07 01:49:23.463984"], ["updated_at", "2018-12-07 01:49:23.463984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10491"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7fEz57VuwJ6TeRqA453jzezw8U4h3lVmXuNVIXECr8cG2KUw/klfO"], ["created_at", "2018-12-07 01:49:23.471310"], ["updated_at", "2018-12-07 01:49:23.471310"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.2ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iJBJD61ebLJEKETnqQrI5eeiIZ7Uf2fs1WdcNtioq6VDfcHmm45mC"], ["created_at", "2018-12-07 01:49:23.478503"], ["updated_at", "2018-12-07 01:49:23.478503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$z2uDpbNcGuMqXrv7RFjO8.I4MBS4WayapeuLMMovJkR/TmhGbiI1u"], ["created_at", "2018-12-07 01:49:23.485236"], ["updated_at", "2018-12-07 01:49:23.485236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.486653"], ["updated_at", "2018-12-07 01:49:23.486653"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7896], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10494], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10494], ["room_id", 7896], ["created_at", "2018-12-07 01:49:23.489328"], ["updated_at", "2018-12-07 01:49:23.489328"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8mRkXr9DtMSGz6s6vkFT..nECfIAvdh.BPZ9VcLKb1BMJ5DF5y/Dq"], ["created_at", "2018-12-07 01:49:23.495404"], ["updated_at", "2018-12-07 01:49:23.495404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.496804"], ["updated_at", "2018-12-07 01:49:23.496804"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7897], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10495], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10495], ["room_id", 7897], ["created_at", "2018-12-07 01:49:23.499403"], ["updated_at", "2018-12-07 01:49:23.499403"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$I5Uz2lpZ/LF.TwAwNpkRhe5rnIiPMJCHdiS4GhMS6vmIFNU77QmQO"], ["created_at", "2018-12-07 01:49:23.521191"], ["updated_at", "2018-12-07 01:49:23.521191"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.522693"], ["updated_at", "2018-12-07 01:49:23.522693"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.529454"], ["last_sign_in_at", "2018-12-07 01:49:23.529454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.529807"], ["id", 10496]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7898"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7898 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7898], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10496], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10496], ["room_id", 7898], ["created_at", "2018-12-07 01:49:23.537817"], ["updated_at", "2018-12-07 01:49:23.537817"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7898], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pxmDEUvPky5GXbb3EUKkqu/ahX5Rm.rznFZxQpHGLpU30c567sTVS"], ["created_at", "2018-12-07 01:49:23.544202"], ["updated_at", "2018-12-07 01:49:23.544202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.545803"], ["updated_at", "2018-12-07 01:49:23.545803"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.547539"], ["last_sign_in_at", "2018-12-07 01:49:23.547539"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.547849"], ["id", 10497]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7899"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7899 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7899], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10497], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10497], ["room_id", 7899], ["created_at", "2018-12-07 01:49:23.552063"], ["updated_at", "2018-12-07 01:49:23.552063"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kcwAVJp23qNBEGHHTEMWcu8beagWIVa45MjSMxPoP/TBnmns/KxPu"], ["created_at", "2018-12-07 01:49:23.557035"], ["updated_at", "2018-12-07 01:49:23.557035"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.558510"], ["updated_at", "2018-12-07 01:49:23.558510"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.560646"], ["last_sign_in_at", "2018-12-07 01:49:23.560646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.561054"], ["id", 10498]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7900", "user_id"=>"10498"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7900 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7900], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10498], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10498], ["room_id", 7900], ["created_at", "2018-12-07 01:49:23.565482"], ["updated_at", "2018-12-07 01:49:23.565482"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7900", "user_id"=>"10498"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10498], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7900 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7900], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10498], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10498], ["room_id", 7900], ["created_at", "2018-12-07 01:49:23.573124"], ["updated_at", "2018-12-07 01:49:23.573124"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sL/VBI9uAzNfZCmIYwjfL.2G/F3qmOLUb0zLLqpqKXQ/pKeA6NuzO"], ["created_at", "2018-12-07 01:49:23.578502"], ["updated_at", "2018-12-07 01:49:23.578502"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.580000"], ["updated_at", "2018-12-07 01:49:23.580000"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.582085"], ["last_sign_in_at", "2018-12-07 01:49:23.582085"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.582433"], ["id", 10499]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7901", "user_id"=>"10499"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7901 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7901], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10499], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10499], ["room_id", 7901], ["created_at", "2018-12-07 01:49:23.586797"], ["updated_at", "2018-12-07 01:49:23.586797"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7901", "user_id"=>"10499"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10499], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7901 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7901], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10499], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10499], ["room_id", 7901], ["created_at", "2018-12-07 01:49:23.592759"], ["updated_at", "2018-12-07 01:49:23.592759"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7901], ["user_id", 10499], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5T0mAdXhexmUM8cPXdV7cOUo4pTf9laIRghRm1cdx6dvC/ZRoiDLG"], ["created_at", "2018-12-07 01:49:23.598663"], ["updated_at", "2018-12-07 01:49:23.598663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.600782"], ["updated_at", "2018-12-07 01:49:23.600782"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.603103"], ["last_sign_in_at", "2018-12-07 01:49:23.603103"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.603477"], ["id", 10500]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7902", "user_id"=>"10500"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7902 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7902], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10500], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10500], ["room_id", 7902], ["created_at", "2018-12-07 01:49:23.608096"], ["updated_at", "2018-12-07 01:49:23.608096"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7902", "user_id"=>"10500"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10500], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7902 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7902], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10500], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10500], ["room_id", 7902], ["created_at", "2018-12-07 01:49:23.614094"], ["updated_at", "2018-12-07 01:49:23.614094"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7902], ["user_id", 10500], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JJAVk4FfbIcN3aXn71S.QOAVqdG0WxEuHlj1XbTavNkiF5Vy36DUu"], ["created_at", "2018-12-07 01:49:23.619701"], ["updated_at", "2018-12-07 01:49:23.619701"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.621206"], ["updated_at", "2018-12-07 01:49:23.621206"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.623054"], ["last_sign_in_at", "2018-12-07 01:49:23.623054"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.623473"], ["id", 10501]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7903"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7903], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xIxlqf1VzyaBfiGNy/6GrOiYUYC/uEXTcJzPYsyVStDVXLze43I.q"], ["created_at", "2018-12-07 01:49:23.631291"], ["updated_at", "2018-12-07 01:49:23.631291"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.633215"], ["updated_at", "2018-12-07 01:49:23.633215"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.635148"], ["last_sign_in_at", "2018-12-07 01:49:23.635148"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.635571"], ["id", 10502]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7904"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CyuBsEWBUtHLORPPe6ylEuOOx/9S7EOb59X/yGEih.T5tAqrCssqy"], ["created_at", "2018-12-07 01:49:23.642532"], ["updated_at", "2018-12-07 01:49:23.642532"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.644148"], ["updated_at", "2018-12-07 01:49:23.644148"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7905], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10503], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10503], ["room_id", 7905], ["created_at", "2018-12-07 01:49:23.647254"], ["updated_at", "2018-12-07 01:49:23.647254"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7905” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.648902"], ["last_sign_in_at", "2018-12-07 01:49:23.648902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.649266"], ["id", 10503]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7905"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7905], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7905')
Rendered appointments/show.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (3.6ms)

Completed 200 OK in 149ms (Views: 147.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$txF8NwmZfqdqS34IaJMycO7GgihMVn4UObZvN6Gji7jWsHfS54tAu"], ["created_at", "2018-12-07 01:49:23.807709"], ["updated_at", "2018-12-07 01:49:23.807709"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.810303"], ["updated_at", "2018-12-07 01:49:23.810303"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7906], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10504], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10504], ["room_id", 7906], ["created_at", "2018-12-07 01:49:23.816019"], ["updated_at", "2018-12-07 01:49:23.816019"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4082/edit” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.820895"], ["last_sign_in_at", "2018-12-07 01:49:23.820895"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.821362"], ["id", 10504]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4082"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4082], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3awVEzpU6yuwJI/eglC62eCQCIrtrNXvZZt3JRMkbFyJ2RY4K.0vS"], ["created_at", "2018-12-07 01:49:23.843430"], ["updated_at", "2018-12-07 01:49:23.843430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.846418"], ["last_sign_in_at", "2018-12-07 01:49:23.846418"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.846919"], ["id", 10505]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 10.2ms | ActiveRecord: 0.3ms)

 (0.3ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3eXcU4c7Ly3VMNEdBN1SeO2ucrtHCnDSipWdzUIpr1dcApficB.HC"], ["created_at", "2018-12-07 01:49:23.872183"], ["updated_at", "2018-12-07 01:49:23.872183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.875550"], ["updated_at", "2018-12-07 01:49:23.875550"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.7ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7907], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10506], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10506], ["room_id", 7907], ["created_at", "2018-12-07 01:49:23.881631"], ["updated_at", "2018-12-07 01:49:23.881631"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7907], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10506], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10506], ["room_id", 7907], ["created_at", "2018-12-07 01:49:23.886963"], ["updated_at", "2018-12-07 01:49:23.886963"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.889116"], ["last_sign_in_at", "2018-12-07 01:49:23.889116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.889534"], ["id", 10506]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10506]]
Rendered appointments/my_appointments.html.erb within layouts/application (13.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 24ms (Views: 15.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qJ1Aw/zISZTabaUaIve5ROeFTOSRWTOER5HwK97F9U9A6nk3WFZ9G"], ["created_at", "2018-12-07 01:49:23.921836"], ["updated_at", "2018-12-07 01:49:23.921836"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.924023"], ["updated_at", "2018-12-07 01:49:23.924023"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7908], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10507], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10507], ["room_id", 7908], ["created_at", "2018-12-07 01:49:23.928308"], ["updated_at", "2018-12-07 01:49:23.928308"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7908], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10507], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10507], ["room_id", 7908], ["created_at", "2018-12-07 01:49:23.931874"], ["updated_at", "2018-12-07 01:49:23.931874"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.933637"], ["last_sign_in_at", "2018-12-07 01:49:23.933637"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.934073"], ["id", 10507]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10507]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$H//BfuMaeeoW1YV0HTfR6eKBUCwVh6SL11525zqd9G6lokcwQ6.qW"], ["created_at", "2018-12-07 01:49:23.944546"], ["updated_at", "2018-12-07 01:49:23.944546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.946429"], ["updated_at", "2018-12-07 01:49:23.946429"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7909], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10508], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10508], ["room_id", 7909], ["created_at", "2018-12-07 01:49:23.949678"], ["updated_at", "2018-12-07 01:49:23.949678"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4087” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.951231"], ["last_sign_in_at", "2018-12-07 01:49:23.951231"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.951628"], ["id", 10508]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4087"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4087], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4087]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J7QzD3LEuulzdMw//N2bN.KzG36iLsb659EQUpI6dYKEKUBZ8qDAC"], ["created_at", "2018-12-07 01:49:23.961248"], ["updated_at", "2018-12-07 01:49:23.961248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.963246"], ["updated_at", "2018-12-07 01:49:23.963246"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$q1Dt/kwNlW6aRTD7hGlF3enlPyZrHLLpR36kiO2IBINUm5yDkAB6q"], ["created_at", "2018-12-07 01:49:23.966649"], ["updated_at", "2018-12-07 01:49:23.966649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7910], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10510], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10510], ["room_id", 7910], ["created_at", "2018-12-07 01:49:23.969827"], ["updated_at", "2018-12-07 01:49:23.969827"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4088” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.971740"], ["last_sign_in_at", "2018-12-07 01:49:23.971740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.972127"], ["id", 10509]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4088"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4088], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7910], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10510], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kb.rHyrP2N/OS7La2ANWV..TE3aXYAs7/ATOfJJll60mK.WbqmqZC"], ["created_at", "2018-12-07 01:49:23.981786"], ["updated_at", "2018-12-07 01:49:23.981786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:23.983455"], ["updated_at", "2018-12-07 01:49:23.983455"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vUSTI1hPGaVN3waHmrJt6.ghuWS.R3GnPH7brjnhj80hzufaJhFv2"], ["created_at", "2018-12-07 01:49:23.986693"], ["updated_at", "2018-12-07 01:49:23.986693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7911], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10512], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10512], ["room_id", 7911], ["created_at", "2018-12-07 01:49:23.990339"], ["updated_at", "2018-12-07 01:49:23.990339"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4089” for 127.0.0.1 at 2018-12-06 23:49:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:23.992702"], ["last_sign_in_at", "2018-12-07 01:49:23.992702"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:23.993182"], ["id", 10511]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4089"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4089], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7911], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10512], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d19Vv9OKMUa1jQKxE9aVz.PxLCXSI0Vk5tX25Eymapfuvd8GbtJqq"], ["created_at", "2018-12-07 01:49:24.002277"], ["updated_at", "2018-12-07 01:49:24.002277"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.003898"], ["updated_at", "2018-12-07 01:49:24.003898"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$R.EOwl9kMudb73PfYxRDnuFBPNkX3kHklK3EY3kRobIOckx1xacJ6"], ["created_at", "2018-12-07 01:49:24.007173"], ["updated_at", "2018-12-07 01:49:24.007173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7912], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10514], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10514], ["room_id", 7912], ["created_at", "2018-12-07 01:49:24.010222"], ["updated_at", "2018-12-07 01:49:24.010222"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4090” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.012155"], ["last_sign_in_at", "2018-12-07 01:49:24.012155"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.012521"], ["id", 10513]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4090"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4090], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7912], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10514], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:49:24.016635"], ["id", 4090]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms Sent mail to 123@123.com (2.5ms) Date: Thu, 06 Dec 2018 23:49:24 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1a450b8_466a2b0086e3a600828ae@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1a44a7a_466a2b0086e3a600827f0";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1a44a7a_466a2b0086e3a600827f0 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1a44a7a_466a2b0086e3a600827f0 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1a44a7a_466a2b0086e3a600827f0–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BNSNXGWY3Rq6QGSwEcXZH.oXQLY2pMovQXnjF5BbFKfBbRXW24BvC"], ["created_at", "2018-12-07 01:49:24.027531"], ["updated_at", "2018-12-07 01:49:24.027531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.029300"], ["updated_at", "2018-12-07 01:49:24.029300"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KyC3w4oLMuKvs/qgCOMX2.RvDAnOmeQineRpOZ0mP5cml4rbkb2P."], ["created_at", "2018-12-07 01:49:24.032504"], ["updated_at", "2018-12-07 01:49:24.032504"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7913], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10516], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10516], ["room_id", 7913], ["created_at", "2018-12-07 01:49:24.035575"], ["updated_at", "2018-12-07 01:49:24.035575"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:49:24.036931"], ["id", 4091]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7913], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10516], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10516], ["room_id", 7913], ["created_at", "2018-12-07 01:49:24.039542"], ["updated_at", "2018-12-07 01:49:24.039542"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:49:24.040828"], ["id", 4092]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.042229"], ["last_sign_in_at", "2018-12-07 01:49:24.042229"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.042592"], ["id", 10515]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10516], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7913], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10516], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7913], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0VJgCLomNgMWdyMtiOkE9OWenRzYOp/P9.GlqZxrvE5sEKCv.Shrq"], ["created_at", "2018-12-07 01:49:24.056225"], ["updated_at", "2018-12-07 01:49:24.056225"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.057942"], ["updated_at", "2018-12-07 01:49:24.057942"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i0xQ5ES18EWEmuYZKrq7p.xNJPq32Cq9ilWlCJovqo5yD6zyikSyy"], ["created_at", "2018-12-07 01:49:24.061238"], ["updated_at", "2018-12-07 01:49:24.061238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7914], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10518], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10518], ["room_id", 7914], ["created_at", "2018-12-07 01:49:24.064281"], ["updated_at", "2018-12-07 01:49:24.064281"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:49:24.065634"], ["id", 4093]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7914], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10518], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10518], ["room_id", 7914], ["created_at", "2018-12-07 01:49:24.068274"], ["updated_at", "2018-12-07 01:49:24.068274"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:49:24.069543"], ["id", 4094]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.070940"], ["last_sign_in_at", "2018-12-07 01:49:24.070940"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.071311"], ["id", 10517]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10518], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7914], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10518], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7914], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JJ3rSrEtg4TJlIDTstBJruwpX8.QtPcxCFWYAmsfPtl4TV3h.X3q2"], ["created_at", "2018-12-07 01:49:24.083730"], ["updated_at", "2018-12-07 01:49:24.083730"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.085806"], ["last_sign_in_at", "2018-12-07 01:49:24.085806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.086245"], ["id", 10519]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.2ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4fVLvatcioE0lOQNlWLeWOSBVxRFVnnsVBch1fWpciQXBKHO1Exfy"], ["created_at", "2018-12-07 01:49:24.099647"], ["updated_at", "2018-12-07 01:49:24.099647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.101350"], ["last_sign_in_at", "2018-12-07 01:49:24.101350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.101706"], ["id", 10520]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gEHMLcXJYrxzg85H2HON9OEt5LKY2nMWMPmS3N/nNWSbbY/6tKgJu"], ["created_at", "2018-12-07 01:49:24.107692"], ["updated_at", "2018-12-07 01:49:24.107692"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.109206"], ["last_sign_in_at", "2018-12-07 01:49:24.109206"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.109539"], ["id", 10521]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eFJqUGSpKH2jPjWVed4qWesDj4C4v.6jgWSvgQh1W6KftjONgR/PS"], ["created_at", "2018-12-07 01:49:24.119749"], ["updated_at", "2018-12-07 01:49:24.119749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.121440"], ["last_sign_in_at", "2018-12-07 01:49:24.121440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.121855"], ["id", 10522]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L.8O7YS.jiE/MFj8gIa7DeNujD9C6UZqDq2KP6WjNCLXsnDr9HgbS"], ["created_at", "2018-12-07 01:49:24.135698"], ["updated_at", "2018-12-07 01:49:24.135698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.137291"], ["updated_at", "2018-12-07 01:49:24.137291"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7915” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.138763"], ["last_sign_in_at", "2018-12-07 01:49:24.138763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.139185"], ["id", 10523]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7915"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7915], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BDNC0G/Wvp/fdJtodtQ.FeNddGm9PFuA.RuCkpw/jH0l0sH7msJh."], ["created_at", "2018-12-07 01:49:24.148540"], ["updated_at", "2018-12-07 01:49:24.148540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.150468"], ["updated_at", "2018-12-07 01:49:24.150468"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7916” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.152068"], ["last_sign_in_at", "2018-12-07 01:49:24.152068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.152465"], ["id", 10524]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7916"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7916], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.159077"], ["updated_at", "2018-12-07 01:49:24.159077"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7917” for 127.0.0.1 at 2018-12-06 23:49:24 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7917"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iTeGUvtUnuAPOylWsjrUA.VX86LoOdvRyqFeHRYD.XHIcXPsErjJa"], ["created_at", "2018-12-07 01:49:24.165234"], ["updated_at", "2018-12-07 01:49:24.165234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.166865"], ["updated_at", "2018-12-07 01:49:24.166865"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7918” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.168269"], ["last_sign_in_at", "2018-12-07 01:49:24.168269"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.168621"], ["id", 10525]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7918"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.176496"], ["updated_at", "2018-12-07 01:49:24.176496"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7919” for 127.0.0.1 at 2018-12-06 23:49:24 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7919"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p2td0ImOUkaJHvEJ5fXhDeaD.oaMpIW/vhwX542WcHYTw.GvZVzgu"], ["created_at", "2018-12-07 01:49:24.183476"], ["updated_at", "2018-12-07 01:49:24.183476"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.185109"], ["updated_at", "2018-12-07 01:49:24.185109"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7920/edit” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.186616"], ["last_sign_in_at", "2018-12-07 01:49:24.186616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.187011"], ["id", 10526]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7920"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7920], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$thAPFyOdimlSemgwE2PWYuJl29mD0s6eFL3LV1iYww67MhBLbGE9a"], ["created_at", "2018-12-07 01:49:24.197649"], ["updated_at", "2018-12-07 01:49:24.197649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.199272"], ["updated_at", "2018-12-07 01:49:24.199272"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7921/edit” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.200699"], ["last_sign_in_at", "2018-12-07 01:49:24.200699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.201059"], ["id", 10527]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7921"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7921], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.208884"], ["updated_at", "2018-12-07 01:49:24.208884"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7922” for 127.0.0.1 at 2018-12-06 23:49:24 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7922"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4JsDg.FKHLUQAnyse/3f0umeP14h.ID0jX76mMVF4c/2X9EUgH8wy"], ["created_at", "2018-12-07 01:49:24.216096"], ["updated_at", "2018-12-07 01:49:24.216096"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.218296"], ["last_sign_in_at", "2018-12-07 01:49:24.218296"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.218652"], ["id", 10528]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.221132"], ["updated_at", "2018-12-07 01:49:24.221132"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KzKIUHZQia639jLL5z.2hOFyTL31vXcU4O2aYVWfLAHm1FYYRLVoO"], ["created_at", "2018-12-07 01:49:24.226976"], ["updated_at", "2018-12-07 01:49:24.226976"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.229017"], ["last_sign_in_at", "2018-12-07 01:49:24.229017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.229395"], ["id", 10529]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.231818"], ["updated_at", "2018-12-07 01:49:24.231818"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wF./F4qBLq8P4UMcwMRTJOMngTQ70o6g0zEnwnUG8kyncGFkn72Dm"], ["created_at", "2018-12-07 01:49:24.236957"], ["updated_at", "2018-12-07 01:49:24.236957"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.238987"], ["last_sign_in_at", "2018-12-07 01:49:24.238987"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.239333"], ["id", 10530]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R/VJeh/NjVdO51aMwUiG2ONZgBRDRtE8K67OkBn3O75rSzJg9Dg0m"], ["created_at", "2018-12-07 01:49:24.247965"], ["updated_at", "2018-12-07 01:49:24.247965"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.250064"], ["last_sign_in_at", "2018-12-07 01:49:24.250064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.250411"], ["id", 10531]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jYZE9RZ1bjhpmUYBBJ3kze48BQwhEHac6Hqssy9SBVM4y78VbxIOG"], ["created_at", "2018-12-07 01:49:24.257842"], ["updated_at", "2018-12-07 01:49:24.257842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.259836"], ["last_sign_in_at", "2018-12-07 01:49:24.259836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.260187"], ["id", 10532]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uXmwnNppDqvyRV9DwCO3g.a8gSC0oG9fZLvJBc7Soywge7IMo9eKy"], ["created_at", "2018-12-07 01:49:24.266336"], ["updated_at", "2018-12-07 01:49:24.266336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.267918"], ["updated_at", "2018-12-07 01:49:24.267918"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7925” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.269667"], ["last_sign_in_at", "2018-12-07 01:49:24.269667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.270062"], ["id", 10533]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7925"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7925], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:49:24.273166"], ["id", 7925]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7925 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JgwORPHHz1bGyfBQG1WpH.UyStsK9MXVrPUEKE7ADUha7TssuTwvu"], ["created_at", "2018-12-07 01:49:24.279767"], ["updated_at", "2018-12-07 01:49:24.279767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.281397"], ["updated_at", "2018-12-07 01:49:24.281397"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7926” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.283187"], ["last_sign_in_at", "2018-12-07 01:49:24.283187"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.283552"], ["id", 10534]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7926"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7926], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:49:24.286386"], ["id", 7926]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7926 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4vTyb11dWF6UG608/A8KwOoLnb4gzrXYvtzxlg6F4k/Ha7U9hwmjG"], ["created_at", "2018-12-07 01:49:24.291634"], ["updated_at", "2018-12-07 01:49:24.291634"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.293182"], ["updated_at", "2018-12-07 01:49:24.293182"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7927” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.294894"], ["last_sign_in_at", "2018-12-07 01:49:24.294894"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.295267"], ["id", 10535]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7927"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7927], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F8hOyyzc.m2LHImJRWNGnOjK5cqApu9oJAe3a..JfzC5l.gwu/gxO"], ["created_at", "2018-12-07 01:49:24.306964"], ["updated_at", "2018-12-07 01:49:24.306964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.308694"], ["updated_at", "2018-12-07 01:49:24.308694"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7928” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.310513"], ["last_sign_in_at", "2018-12-07 01:49:24.310513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.310896"], ["id", 10536]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7928"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7928], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$euAxcVMRBOANfcB0rl7YGeXkGE1BljhLDJ1IuqXPPHEJMurpBDJDS"], ["created_at", "2018-12-07 01:49:24.322120"], ["updated_at", "2018-12-07 01:49:24.322120"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.324248"], ["last_sign_in_at", "2018-12-07 01:49:24.324248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.324599"], ["id", 10537]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r0kpyiIkHU6FQM6Tbrq/KO1XgQ7eKc6.v/vsDwvJ0WvFkM9WkPg8a"], ["created_at", "2018-12-07 01:49:24.330613"], ["updated_at", "2018-12-07 01:49:24.330613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.332175"], ["updated_at", "2018-12-07 01:49:24.332175"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7929” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.333572"], ["last_sign_in_at", "2018-12-07 01:49:24.333572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.333927"], ["id", 10538]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7929"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7929], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7929]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WKlpFLidwZUawMBJ4IjLr.rWNjG9mHXemHP4oeSfLlTELXg6i2ZKy"], ["created_at", "2018-12-07 01:49:24.342788"], ["updated_at", "2018-12-07 01:49:24.342788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.344454"], ["updated_at", "2018-12-07 01:49:24.344454"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7930” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.345920"], ["last_sign_in_at", "2018-12-07 01:49:24.345920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.346312"], ["id", 10539]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7930"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7930], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7930]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$41V84geeV6ROguKVStlNnuDOSxe9sI3ehxB4p65A/4i.AOA7HMkvu"], ["created_at", "2018-12-07 01:49:24.353624"], ["updated_at", "2018-12-07 01:49:24.353624"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.355185"], ["updated_at", "2018-12-07 01:49:24.355185"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7931” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.356624"], ["last_sign_in_at", "2018-12-07 01:49:24.356624"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.356990"], ["id", 10540]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7931"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RckxFYtu.2NDUhW86FrqAerseu2LPLWZASHmsaIm/lkPW9ROgk9GC"], ["created_at", "2018-12-07 01:49:24.363256"], ["updated_at", "2018-12-07 01:49:24.363256"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.364839"], ["updated_at", "2018-12-07 01:49:24.364839"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7932” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.366249"], ["last_sign_in_at", "2018-12-07 01:49:24.366249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.366640"], ["id", 10541]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7932"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LcDe8Cw3FxzqKyOLkSJtNuiM3pcDHdtBlnnupTGC7NRoty3WiGnBC"], ["created_at", "2018-12-07 01:49:24.373432"], ["updated_at", "2018-12-07 01:49:24.373432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.375130"], ["last_sign_in_at", "2018-12-07 01:49:24.375130"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.375495"], ["id", 10542]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$moDRz/EnGo1F0xeZegKsyOhR3kNORbQtGA9DsLOh9JsseLPFN/2i."], ["created_at", "2018-12-07 01:49:24.387043"], ["updated_at", "2018-12-07 01:49:24.387043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.388594"], ["updated_at", "2018-12-07 01:49:24.388594"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.389864"], ["updated_at", "2018-12-07 01:49:24.389864"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.391059"], ["updated_at", "2018-12-07 01:49:24.391059"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7933], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10543], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10543], ["room_id", 7933], ["created_at", "2018-12-07 01:49:24.393829"], ["updated_at", "2018-12-07 01:49:24.393829"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.395392"], ["last_sign_in_at", "2018-12-07 01:49:24.395392"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.395753"], ["id", 10543]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GVuHZN/9nd43xSLR2adxwecp782Lh0tuYPD2q5Tjb/VHmRhIGzGd2"], ["created_at", "2018-12-07 01:49:24.413021"], ["updated_at", "2018-12-07 01:49:24.413021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.414696"], ["updated_at", "2018-12-07 01:49:24.414696"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.416014"], ["updated_at", "2018-12-07 01:49:24.416014"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:24.417187"], ["updated_at", "2018-12-07 01:49:24.417187"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7936], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10544], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10544], ["room_id", 7936], ["created_at", "2018-12-07 01:49:24.419993"], ["updated_at", "2018-12-07 01:49:24.419993"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:49:24 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:24.421555"], ["last_sign_in_at", "2018-12-07 01:49:24.421555"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:24.421908"], ["id", 10544]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$risVbq8AgiiZ4HW.wNkzKOA5ZIG/kaYMWPxMLwnVlcDLJpnBe8WRy"], ["created_at", "2018-12-07 01:49:44.177960"], ["updated_at", "2018-12-07 01:49:44.177960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/9QBRfkF5GecnWQv9K8edO8445WExg4MURV.XgSBiKlBapDkummTK"], ["created_at", "2018-12-07 01:49:44.183825"], ["updated_at", "2018-12-07 01:49:44.183825"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.197330"], ["updated_at", "2018-12-07 01:49:44.197330"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7939], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10546], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10546], ["room_id", 7939], ["created_at", "2018-12-07 01:49:44.230723"], ["updated_at", "2018-12-07 01:49:44.230723"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4097"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4097], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7939], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10546], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 130.2ms Sent mail to 123@123.com (6.0ms) Date: Thu, 06 Dec 2018 23:49:44 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1b85f759_46af2af12c03e60046198@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1b85e79a_46af2af12c03e600460c6";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1b85e79a_46af2af12c03e600460c6 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1b85e79a_46af2af12c03e600460c6 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1b85e79a_46af2af12c03e600460c6–

Completed 302 Found in 151ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2nhM/jNCwcNrDBoakOl2CO5GFcGJK6ZuJGyDJmpMHNs6ATmhGRnLK"], ["created_at", "2018-12-07 01:49:44.398247"], ["updated_at", "2018-12-07 01:49:44.398247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$e3.lcGfCSyLK1XD6BM3J6OfHXE0FX75C/5MreAKBXtTzabll/g4kG"], ["created_at", "2018-12-07 01:49:44.401306"], ["updated_at", "2018-12-07 01:49:44.401306"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.402676"], ["updated_at", "2018-12-07 01:49:44.402676"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7940], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10548], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10548], ["room_id", 7940], ["created_at", "2018-12-07 01:49:44.405408"], ["updated_at", "2018-12-07 01:49:44.405408"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4098"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4098], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7940], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10548], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:49:44.409781"], ["id", 4098]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:49:44 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1b86500b_46af2af12c03e600463c3@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1b864aa8_46af2af12c03e600462d9";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1b864aa8_46af2af12c03e600462d9 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1b864aa8_46af2af12c03e600462d9 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1b864aa8_46af2af12c03e600462d9–

Completed 302 Found in 8ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T4mYK3uNDGiuAVCUq8Z1VO/SRI.fsD5dm.VEvNMx0eOA4.pN0g5hy"], ["created_at", "2018-12-07 01:49:44.419038"], ["updated_at", "2018-12-07 01:49:44.419038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TOBYzOIOR34YeF96sbrRB.4vp87aUErXAuNrzTHn/eXYQ9X889cre"], ["created_at", "2018-12-07 01:49:44.422196"], ["updated_at", "2018-12-07 01:49:44.422196"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.423920"], ["updated_at", "2018-12-07 01:49:44.423920"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7941], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10550], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10550], ["room_id", 7941], ["created_at", "2018-12-07 01:49:44.427535"], ["updated_at", "2018-12-07 01:49:44.427535"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LU4olzeR6NDt1aF9.EqLFO6uvKSqlMekDNJhbUVeRR/A9uRhkH1pu"], ["created_at", "2018-12-07 01:49:44.433954"], ["updated_at", "2018-12-07 01:49:44.433954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/XEdWN0aRjegWDhG6Jo3S.mvbCQOzCru3rhMDjJ1U/mG2xHwlLLE2"], ["created_at", "2018-12-07 01:49:44.437145"], ["updated_at", "2018-12-07 01:49:44.437145"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.438660"], ["updated_at", "2018-12-07 01:49:44.438660"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7942], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10552], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10552], ["room_id", 7942], ["created_at", "2018-12-07 01:49:44.441524"], ["updated_at", "2018-12-07 01:49:44.441524"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4100], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$.hu2EA91R/dFOMy3gdu/Beu.QP05cKmsrHxjYNmPvALKdmVoZl7t."], ["created_at", "2018-12-07 01:49:44.446626"], ["updated_at", "2018-12-07 01:49:44.446626"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10553"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "I_N8iHgzQREQQPzF0jdc5Q"], ["updated_at", "2018-12-07 01:49:44.449686"], ["id", 10553]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:49:44.451006"], ["reset_sent_at", "2018-12-07 01:49:44.450739"], ["id", 10553]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.4ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:49:44 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d1b86fcef_46af2af12c03e60046683@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1b86f6f5_46af2af12c03e600465b8";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1b86f6f5_46af2af12c03e600465b8 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/I_N8iHgzQREQQPzF0jdc5Q/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d1b86f6f5_46af2af12c03e600465b8 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/I_N8iHgzQREQQPzF0jdc5Q/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1b86f6f5_46af2af12c03e600465b8–

Redirected to test.host/login Completed 302 Found in 11ms (ActiveRecord: 0.9ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$HA1ttDhIs9n9h3TrTp3btu1ktnFgeGS38IWMCAbJwIyTaKrdrv392"], ["created_at", "2018-12-07 01:49:44.463631"], ["updated_at", "2018-12-07 01:49:44.463631"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$BzjTE5qYMx3l49JTic0/xe4kqiddoC.XF8RP3S4AfJuzhGgS1XmXi"], ["created_at", "2018-12-07 01:49:44.470813"], ["updated_at", "2018-12-07 01:49:44.470813"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10555"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$c7LyRqGzmH0sfms0Miay2ehw5.tm44O5PZ6LIdCE0tdXWX7TYRpVG"], ["updated_at", "2018-12-07 01:49:44.474726"], ["id", 10555]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$2aNpCdwfVWo418WhhOf9quV74U3V8RleMtIhnHRdp8HGppeU9qK7K"], ["created_at", "2018-12-07 01:49:44.479429"], ["updated_at", "2018-12-07 01:49:44.479429"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10556"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$62QAurTEGDtDGdKMWigyveVUHjNYGp8Xz5vu.MSHuHC9KuF5dNr.W"], ["created_at", "2018-12-07 01:49:44.486735"], ["updated_at", "2018-12-07 01:49:44.486735"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10557"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$7S.0DyRMPitYqjeu/nKA9uTkWX3BKvDuDqxy4STEOBm1cbWVp9JA6"], ["created_at", "2018-12-07 01:49:44.500376"], ["updated_at", "2018-12-07 01:49:44.500376"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10558"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$udHAJuLqlCu9sPYUhPNl9.qYKw8thyf1Ou0iwqenU2vqDD4YeYTFi"], ["created_at", "2018-12-07 01:49:44.508698"], ["updated_at", "2018-12-07 01:49:44.508698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10559"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nyqvcV5FPgwlUuYsWHsVbe1A8YqxpaXu9gBjEcKRBaTMDExhvG7Oe"], ["created_at", "2018-12-07 01:49:44.515937"], ["updated_at", "2018-12-07 01:49:44.515937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$97LHnNy0o0czOFhHvTBbROnFW8O7vGH4JNVDxVOfyncJs1kGJ3pFK"], ["created_at", "2018-12-07 01:49:44.522981"], ["updated_at", "2018-12-07 01:49:44.522981"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h2/l8DCdqsa7ycpqi/Y05uG9LzBEXHp70uM2JWWf9jTUsul7jdFPu"], ["created_at", "2018-12-07 01:49:44.530005"], ["updated_at", "2018-12-07 01:49:44.530005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.531534"], ["updated_at", "2018-12-07 01:49:44.531534"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7943], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10562], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10562], ["room_id", 7943], ["created_at", "2018-12-07 01:49:44.534314"], ["updated_at", "2018-12-07 01:49:44.534314"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cgyd0ZKsahBBiQOfDhz3T.tOyT94CBEZbZNMlHb0gfBrOwqmXj81K"], ["created_at", "2018-12-07 01:49:44.540484"], ["updated_at", "2018-12-07 01:49:44.540484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.541935"], ["updated_at", "2018-12-07 01:49:44.541935"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7944], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10563], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10563], ["room_id", 7944], ["created_at", "2018-12-07 01:49:44.544616"], ["updated_at", "2018-12-07 01:49:44.544616"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fqacVgq6xHn8C.8UxZEu4.5W8DzxUGRc3e3296d2oVvDBZPCBXB02"], ["created_at", "2018-12-07 01:49:44.567075"], ["updated_at", "2018-12-07 01:49:44.567075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.568631"], ["updated_at", "2018-12-07 01:49:44.568631"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.575416"], ["last_sign_in_at", "2018-12-07 01:49:44.575416"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.575791"], ["id", 10564]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7945"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7945 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 25ms (ActiveRecord: 0.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7945], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MtDuS/rWwGybk1QACaEUkuoZe.mkSwhMpAoE/awBj0.eknt52tE8y"], ["created_at", "2018-12-07 01:49:44.616382"], ["updated_at", "2018-12-07 01:49:44.616382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.617826"], ["updated_at", "2018-12-07 01:49:44.617826"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.619551"], ["last_sign_in_at", "2018-12-07 01:49:44.619551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.619904"], ["id", 10565]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7946"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7946 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4hd7o595zfmtSAptxqij9.Zxk10jFXEkTdUSQu7.o/eHfggADOEay"], ["created_at", "2018-12-07 01:49:44.626412"], ["updated_at", "2018-12-07 01:49:44.626412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.628360"], ["updated_at", "2018-12-07 01:49:44.628360"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.630639"], ["last_sign_in_at", "2018-12-07 01:49:44.630639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.631033"], ["id", 10566]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7947", "user_id"=>"10566"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7947 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7947", "user_id"=>"10566"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10566], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7947 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q6kplGyrjJzuDVnsIUera.0lFzuPzZWayToQpzIbgfsQd0FUr3DVW"], ["created_at", "2018-12-07 01:49:44.641141"], ["updated_at", "2018-12-07 01:49:44.641141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.642904"], ["updated_at", "2018-12-07 01:49:44.642904"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.645370"], ["last_sign_in_at", "2018-12-07 01:49:44.645370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.645823"], ["id", 10567]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7948", "user_id"=>"10567"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7948 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7948", "user_id"=>"10567"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10567], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7948 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7948], ["user_id", 10567], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jhgq1aso7EoMLlfcqGD0vu.J.jVXjgWK1JuzX4cNveMqchW95IWe6"], ["created_at", "2018-12-07 01:49:44.656605"], ["updated_at", "2018-12-07 01:49:44.656605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.658107"], ["updated_at", "2018-12-07 01:49:44.658107"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.660147"], ["last_sign_in_at", "2018-12-07 01:49:44.660147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.660509"], ["id", 10568]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7949", "user_id"=>"10568"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7949 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7949", "user_id"=>"10568"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10568], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7949 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7949], ["user_id", 10568], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OnPwt7GzKyDEDZMdc5eukuj8jYRx/trroBvSN23FioQ4VLhrbxyRS"], ["created_at", "2018-12-07 01:49:44.670360"], ["updated_at", "2018-12-07 01:49:44.670360"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.671867"], ["updated_at", "2018-12-07 01:49:44.671867"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.673741"], ["last_sign_in_at", "2018-12-07 01:49:44.673741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.674143"], ["id", 10569]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7950"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 2ms (ActiveRecord: 0.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7950], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9NgxmOv3QJEkCfmLDJKXr.Ye1Y/vc26RYpY6dCDgLBhR4VkN4csmW"], ["created_at", "2018-12-07 01:49:44.682992"], ["updated_at", "2018-12-07 01:49:44.682992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.684529"], ["updated_at", "2018-12-07 01:49:44.684529"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.686345"], ["last_sign_in_at", "2018-12-07 01:49:44.686345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.686773"], ["id", 10570]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7951"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ddD/XhBS.K5gXIS.yyzDnu/3xtEODtJyhWn9YkrvSp0lCiR4yyES6"], ["created_at", "2018-12-07 01:49:44.693572"], ["updated_at", "2018-12-07 01:49:44.693572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.695036"], ["updated_at", "2018-12-07 01:49:44.695036"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7952], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10571], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10571], ["room_id", 7952], ["created_at", "2018-12-07 01:49:44.697889"], ["updated_at", "2018-12-07 01:49:44.697889"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7952” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.699374"], ["last_sign_in_at", "2018-12-07 01:49:44.699374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.699714"], ["id", 10571]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7952"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7952], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7952')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (4.3ms)

Completed 200 OK in 150ms (Views: 147.9ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eF6noDIhruL2SbJjmIae0OfruA57dd.gSStDrhIm55S8hXbjMJyjG"], ["created_at", "2018-12-07 01:49:44.858394"], ["updated_at", "2018-12-07 01:49:44.858394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.860847"], ["updated_at", "2018-12-07 01:49:44.860847"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7953], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10572], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10572], ["room_id", 7953], ["created_at", "2018-12-07 01:49:44.866628"], ["updated_at", "2018-12-07 01:49:44.866628"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4104/edit” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.869455"], ["last_sign_in_at", "2018-12-07 01:49:44.869455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.869924"], ["id", 10572]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4104"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4104], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 11ms (Views: 9.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YpZYgRgrE7smldYeGh.zwO8XgBB00aJmIJDw8hGUs5G3aEAB1iesC"], ["created_at", "2018-12-07 01:49:44.893038"], ["updated_at", "2018-12-07 01:49:44.893038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.895464"], ["last_sign_in_at", "2018-12-07 01:49:44.895464"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.895898"], ["id", 10573]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zY6mUNu7ceHsUEfIkZYwu.phb7.9J1eHr4Ul2Q5QR8Vgv8NRptl1O"], ["created_at", "2018-12-07 01:49:44.920675"], ["updated_at", "2018-12-07 01:49:44.920675"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.924074"], ["updated_at", "2018-12-07 01:49:44.924074"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7954], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10574], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10574], ["room_id", 7954], ["created_at", "2018-12-07 01:49:44.929783"], ["updated_at", "2018-12-07 01:49:44.929783"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7954], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10574], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10574], ["room_id", 7954], ["created_at", "2018-12-07 01:49:44.935460"], ["updated_at", "2018-12-07 01:49:44.935460"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.937722"], ["last_sign_in_at", "2018-12-07 01:49:44.937722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.938153"], ["id", 10574]]
 (0.5ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10574]]
Rendered appointments/my_appointments.html.erb within layouts/application (12.2ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 23ms (Views: 14.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cbhPweb4X4ewSPO37FZPBOgZMilJhId5ErCaHr8yEaAXZ10B.vXim"], ["created_at", "2018-12-07 01:49:44.968909"], ["updated_at", "2018-12-07 01:49:44.968909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.970806"], ["updated_at", "2018-12-07 01:49:44.970806"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7955], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10575], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10575], ["room_id", 7955], ["created_at", "2018-12-07 01:49:44.974039"], ["updated_at", "2018-12-07 01:49:44.974039"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7955], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10575], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10575], ["room_id", 7955], ["created_at", "2018-12-07 01:49:44.977742"], ["updated_at", "2018-12-07 01:49:44.977742"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.979671"], ["last_sign_in_at", "2018-12-07 01:49:44.979671"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.980108"], ["id", 10575]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10575]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IcY6LRL51UpflJrkp0TNEOUGdiOOyKz6b58XSpJyJoA9oTwDkumby"], ["created_at", "2018-12-07 01:49:44.990549"], ["updated_at", "2018-12-07 01:49:44.990549"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:44.992274"], ["updated_at", "2018-12-07 01:49:44.992274"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7956], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10576], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10576], ["room_id", 7956], ["created_at", "2018-12-07 01:49:44.995377"], ["updated_at", "2018-12-07 01:49:44.995377"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4109” for 127.0.0.1 at 2018-12-06 23:49:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:44.996938"], ["last_sign_in_at", "2018-12-07 01:49:44.996938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:44.997325"], ["id", 10576]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4109"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4109], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4109]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cqTyzW5H.p3aQ3ktij8HfOc2dPVMlEe9q.BhGitzZjhsVdITbIbPS"], ["created_at", "2018-12-07 01:49:45.006017"], ["updated_at", "2018-12-07 01:49:45.006017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.007660"], ["updated_at", "2018-12-07 01:49:45.007660"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eQcg.hI2enbn3dQmsWf47OvWJUKmY2mDh7DuJsRuc2krLBBE.lCl."], ["created_at", "2018-12-07 01:49:45.011511"], ["updated_at", "2018-12-07 01:49:45.011511"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7957], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10578], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10578], ["room_id", 7957], ["created_at", "2018-12-07 01:49:45.014908"], ["updated_at", "2018-12-07 01:49:45.014908"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4110” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.016902"], ["last_sign_in_at", "2018-12-07 01:49:45.016902"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.017321"], ["id", 10577]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4110"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4110], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7957], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10578], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6SxVS1mdMIKbAke6HXfkqOhfR9LU2cmz/0rWf7wX9DG0yuQQzyzO6"], ["created_at", "2018-12-07 01:49:45.027003"], ["updated_at", "2018-12-07 01:49:45.027003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.028558"], ["updated_at", "2018-12-07 01:49:45.028558"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DfNImPICN3k6w.n2HBsIC.xsLHdkCSebWMxDnF8nyXQHNKgsZdQ.6"], ["created_at", "2018-12-07 01:49:45.031556"], ["updated_at", "2018-12-07 01:49:45.031556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7958], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10580], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10580], ["room_id", 7958], ["created_at", "2018-12-07 01:49:45.034382"], ["updated_at", "2018-12-07 01:49:45.034382"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4111” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.036143"], ["last_sign_in_at", "2018-12-07 01:49:45.036143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.036457"], ["id", 10579]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4111"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4111], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7958], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10580], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$x7i2qJaiYOA2rmzWXtuJcu0FGLrOCPbSKoIKM/oUKNUJyD5Zvn6ry"], ["created_at", "2018-12-07 01:49:45.045746"], ["updated_at", "2018-12-07 01:49:45.045746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.047400"], ["updated_at", "2018-12-07 01:49:45.047400"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JeUmmCFDnXQC1Gfu.W.Zcel5wMKrNz5MTOdpKLey6jpALZlTdBerC"], ["created_at", "2018-12-07 01:49:45.050462"], ["updated_at", "2018-12-07 01:49:45.050462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7959], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10582], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10582], ["room_id", 7959], ["created_at", "2018-12-07 01:49:45.053451"], ["updated_at", "2018-12-07 01:49:45.053451"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4112” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.055356"], ["last_sign_in_at", "2018-12-07 01:49:45.055356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.055746"], ["id", 10581]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4112"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4112], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7959], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10582], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:49:45.059886"], ["id", 4112]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 23:49:45 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1b9f8d2_46af2af12c03e600473dc@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1b9f307_46af2af12c03e600472e1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1b9f307_46af2af12c03e600472e1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1b9f307_46af2af12c03e600472e1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1b9f307_46af2af12c03e600472e1–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ARP0GuFWtmRVd6rZnNCeP.8sgQahusgeOWEmRn6HslM3Zw3d.Cdsy"], ["created_at", "2018-12-07 01:49:45.069996"], ["updated_at", "2018-12-07 01:49:45.069996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.071716"], ["updated_at", "2018-12-07 01:49:45.071716"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DRWkiHO0AoUqeUUb67mNp.dXwY8UnEKKYJyKpQMXGgOoJV.AM9a4W"], ["created_at", "2018-12-07 01:49:45.075421"], ["updated_at", "2018-12-07 01:49:45.075421"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7960], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10584], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10584], ["room_id", 7960], ["created_at", "2018-12-07 01:49:45.078587"], ["updated_at", "2018-12-07 01:49:45.078587"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:49:45.079997"], ["id", 4113]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7960], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10584], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10584], ["room_id", 7960], ["created_at", "2018-12-07 01:49:45.082692"], ["updated_at", "2018-12-07 01:49:45.082692"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:49:45.083964"], ["id", 4114]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.085360"], ["last_sign_in_at", "2018-12-07 01:49:45.085360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.085725"], ["id", 10583]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10584], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7960], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10584], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7960], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ft7/BGmx09G3jCw8E4DsuOxCm3huWsatXrSKIcp.1U657sOcJnq4y"], ["created_at", "2018-12-07 01:49:45.098340"], ["updated_at", "2018-12-07 01:49:45.098340"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.099940"], ["updated_at", "2018-12-07 01:49:45.099940"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7Ycw.Wh3BGXk3Yab6dSKj.S6TLICgaVQ5Tsisg.CwXjqI.je8I5Su"], ["created_at", "2018-12-07 01:49:45.102972"], ["updated_at", "2018-12-07 01:49:45.102972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7961], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10586], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10586], ["room_id", 7961], ["created_at", "2018-12-07 01:49:45.106427"], ["updated_at", "2018-12-07 01:49:45.106427"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:49:45.108113"], ["id", 4115]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7961], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10586], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10586], ["room_id", 7961], ["created_at", "2018-12-07 01:49:45.110878"], ["updated_at", "2018-12-07 01:49:45.110878"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:49:45.112180"], ["id", 4116]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.113558"], ["last_sign_in_at", "2018-12-07 01:49:45.113558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.113907"], ["id", 10585]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10586], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7961], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10586], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7961], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/iWIUywnSFVUYVkcpNEsgu/65mP4eXi1aoi3BsB9RIojFmRzSuePW"], ["created_at", "2018-12-07 01:49:45.126047"], ["updated_at", "2018-12-07 01:49:45.126047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.127563"], ["last_sign_in_at", "2018-12-07 01:49:45.127563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.127867"], ["id", 10587]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.3ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mIri0LUEbBHOvf3DlwW4r.y7OedbFG7UIwYR8.Hr4OHN4bDa3nzRC"], ["created_at", "2018-12-07 01:49:45.140926"], ["updated_at", "2018-12-07 01:49:45.140926"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.142616"], ["last_sign_in_at", "2018-12-07 01:49:45.142616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.142992"], ["id", 10588]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oSIXAjivH4lUSaqkgG81YewO3MFI9n9Z5NDi8GfKvTWq6gpA5K0zi"], ["created_at", "2018-12-07 01:49:45.148894"], ["updated_at", "2018-12-07 01:49:45.148894"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.150453"], ["last_sign_in_at", "2018-12-07 01:49:45.150453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.150794"], ["id", 10589]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jzcezaiuAWH0OE0SRS75BuJgftHxOSk8Jqav5V6xXuh43fFEG/z4."], ["created_at", "2018-12-07 01:49:45.160182"], ["updated_at", "2018-12-07 01:49:45.160182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.161756"], ["last_sign_in_at", "2018-12-07 01:49:45.161756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.162109"], ["id", 10590]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0dYL8i.kOCSdqI0KwvSlOOsvcZ5Nl0qh2lN4L.JWnnL1u2agQP.r6"], ["created_at", "2018-12-07 01:49:45.176532"], ["updated_at", "2018-12-07 01:49:45.176532"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.178093"], ["updated_at", "2018-12-07 01:49:45.178093"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7962” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.179541"], ["last_sign_in_at", "2018-12-07 01:49:45.179541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.179941"], ["id", 10591]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7962"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7962], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9cSXE4bp0LhYdALwNEIjWe/IiSBbDdCg.FrFwQpfIoAS417DN/KaO"], ["created_at", "2018-12-07 01:49:45.188719"], ["updated_at", "2018-12-07 01:49:45.188719"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.190259"], ["updated_at", "2018-12-07 01:49:45.190259"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7963” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.191712"], ["last_sign_in_at", "2018-12-07 01:49:45.191712"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.192101"], ["id", 10592]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"7963"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7963], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.198875"], ["updated_at", "2018-12-07 01:49:45.198875"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7964” for 127.0.0.1 at 2018-12-06 23:49:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7964"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SoaGHfvMUDfraGzUweTfm.7lfobFREk60WQcI0Ajbj4urKt3OOPZu"], ["created_at", "2018-12-07 01:49:45.205466"], ["updated_at", "2018-12-07 01:49:45.205466"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.207118"], ["updated_at", "2018-12-07 01:49:45.207118"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7965” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.208574"], ["last_sign_in_at", "2018-12-07 01:49:45.208574"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.208998"], ["id", 10593]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7965"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.216960"], ["updated_at", "2018-12-07 01:49:45.216960"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/7966” for 127.0.0.1 at 2018-12-06 23:49:45 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"7966"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8w8/YLFBehA9FNWc2ILo6uZ4k1UX7Ce8pAldj7x6YVmD4DZc5dFLa"], ["created_at", "2018-12-07 01:49:45.223053"], ["updated_at", "2018-12-07 01:49:45.223053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.224613"], ["updated_at", "2018-12-07 01:49:45.224613"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7967/edit” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.225988"], ["last_sign_in_at", "2018-12-07 01:49:45.225988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.226349"], ["id", 10594]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7967"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7967], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1003w5r4S0cBCBTQWpDlyOUMAVex8ngGIAEz9hoFo7iaH05VDfCmm"], ["created_at", "2018-12-07 01:49:45.237546"], ["updated_at", "2018-12-07 01:49:45.237546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.239226"], ["updated_at", "2018-12-07 01:49:45.239226"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7968/edit” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.240650"], ["last_sign_in_at", "2018-12-07 01:49:45.240650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.241020"], ["id", 10595]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"7968"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7968], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.248730"], ["updated_at", "2018-12-07 01:49:45.248730"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/7969” for 127.0.0.1 at 2018-12-06 23:49:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"7969"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jaxQN70oYoJgfdvmI3wapOFuZRjt78hJ.Dgb92znjofV.rAx6y6Zu"], ["created_at", "2018-12-07 01:49:45.254971"], ["updated_at", "2018-12-07 01:49:45.254971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.257046"], ["last_sign_in_at", "2018-12-07 01:49:45.257046"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.257384"], ["id", 10596]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.259981"], ["updated_at", "2018-12-07 01:49:45.259981"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$k5DGsr9CdwqbstA6lpRkOeDrWJwYqlEIDvet6Qt.Xh7CidpXmygoG"], ["created_at", "2018-12-07 01:49:45.266612"], ["updated_at", "2018-12-07 01:49:45.266612"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.268700"], ["last_sign_in_at", "2018-12-07 01:49:45.268700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.269044"], ["id", 10597]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.271374"], ["updated_at", "2018-12-07 01:49:45.271374"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PQTLY3RLXiqFeHYm27aXgei.qDFuLL498SyPA.nwc59/LaS64Md2G"], ["created_at", "2018-12-07 01:49:45.276437"], ["updated_at", "2018-12-07 01:49:45.276437"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.278447"], ["last_sign_in_at", "2018-12-07 01:49:45.278447"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.278799"], ["id", 10598]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yH6q5j9mBMwmw6tiRYqgZurYyR3Pw5nuNz6ofZk0IMnZDr4KYmeGu"], ["created_at", "2018-12-07 01:49:45.286283"], ["updated_at", "2018-12-07 01:49:45.286283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.288247"], ["last_sign_in_at", "2018-12-07 01:49:45.288247"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.288608"], ["id", 10599]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bABvwP8blJB5Et5bzQw.ieYt6b1YBqCsPyMXhNDG7q3iQ7htxS906"], ["created_at", "2018-12-07 01:49:45.296583"], ["updated_at", "2018-12-07 01:49:45.296583"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.298747"], ["last_sign_in_at", "2018-12-07 01:49:45.298747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.299095"], ["id", 10600]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4k9Phq6hF7VJW9qHxphKDOLavM2WVMFBl6hK5d23VIZuTi7BuXFM."], ["created_at", "2018-12-07 01:49:45.305132"], ["updated_at", "2018-12-07 01:49:45.305132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.306695"], ["updated_at", "2018-12-07 01:49:45.306695"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7972” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.308471"], ["last_sign_in_at", "2018-12-07 01:49:45.308471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.308858"], ["id", 10601]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7972"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7972], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:49:45.311810"], ["id", 7972]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7972 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Tyq7mY5cRCc.a8DWx.HiBOLI5nMbAQvlWCkUyhN/WRzdEyr/pVsXC"], ["created_at", "2018-12-07 01:49:45.317437"], ["updated_at", "2018-12-07 01:49:45.317437"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.318997"], ["updated_at", "2018-12-07 01:49:45.318997"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7973” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.320749"], ["last_sign_in_at", "2018-12-07 01:49:45.320749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.321154"], ["id", 10602]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7973"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7973], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:49:45.324229"], ["id", 7973]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/7973 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wE1SdwHQp7eN5uFBS0mnReUWnf/N8VMmove.CF5LBR7oRwV2VEieG"], ["created_at", "2018-12-07 01:49:45.330174"], ["updated_at", "2018-12-07 01:49:45.330174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.331741"], ["updated_at", "2018-12-07 01:49:45.331741"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7974” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.333440"], ["last_sign_in_at", "2018-12-07 01:49:45.333440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.333779"], ["id", 10603]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7974"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7974], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4w5y0QInYZuUvXtqBmbCAeubxn64tZo1R13JwJkmMhazVEcJYKnOC"], ["created_at", "2018-12-07 01:49:45.344763"], ["updated_at", "2018-12-07 01:49:45.344763"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.346290"], ["updated_at", "2018-12-07 01:49:45.346290"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/7975” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.348005"], ["last_sign_in_at", "2018-12-07 01:49:45.348005"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.348364"], ["id", 10604]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"7975"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7975], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cMKVKgxVtzwe2swAd/m7y.oAqodlZvvTvGYSEeh4a/uN5Au3gPRCu"], ["created_at", "2018-12-07 01:49:45.359805"], ["updated_at", "2018-12-07 01:49:45.359805"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.361958"], ["last_sign_in_at", "2018-12-07 01:49:45.361958"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.362283"], ["id", 10605]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eaMXU3VS5fKGe5XX/eSBVednIuZP913khGDgDttKxBQTBAMyF394q"], ["created_at", "2018-12-07 01:49:45.368085"], ["updated_at", "2018-12-07 01:49:45.368085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.369548"], ["updated_at", "2018-12-07 01:49:45.369548"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7976” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.370869"], ["last_sign_in_at", "2018-12-07 01:49:45.370869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.371197"], ["id", 10606]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7976"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7976], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7976]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6JHDYmZm/DAAJwtHicNP8uU2l3uEedye2IgmItqeAFWuYZzAMziJK"], ["created_at", "2018-12-07 01:49:45.378383"], ["updated_at", "2018-12-07 01:49:45.378383"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.379849"], ["updated_at", "2018-12-07 01:49:45.379849"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7977” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.381159"], ["last_sign_in_at", "2018-12-07 01:49:45.381159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.381507"], ["id", 10607]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7977"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7977], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 7977]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Udju3qON7Stq9uUDZW7u4OLwu5mxo4hx9eaTIX5kJndLrtJ26N6zG"], ["created_at", "2018-12-07 01:49:45.388992"], ["updated_at", "2018-12-07 01:49:45.388992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.390668"], ["updated_at", "2018-12-07 01:49:45.390668"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7978” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.392049"], ["last_sign_in_at", "2018-12-07 01:49:45.392049"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.392380"], ["id", 10608]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7978"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nEqGIlZXtAnZN.glNjMd8eIhNUHdJZvAVSBET2DyHqQZcBJawlbNC"], ["created_at", "2018-12-07 01:49:45.398463"], ["updated_at", "2018-12-07 01:49:45.398463"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.399919"], ["updated_at", "2018-12-07 01:49:45.399919"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/7979” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.401215"], ["last_sign_in_at", "2018-12-07 01:49:45.401215"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.401539"], ["id", 10609]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"7979"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$z8iwJmY.SaDL8Cwyylp/MOYX441BLggPUbhRrg0CZTWKtx1PBcFuO"], ["created_at", "2018-12-07 01:49:45.407116"], ["updated_at", "2018-12-07 01:49:45.407116"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.408613"], ["last_sign_in_at", "2018-12-07 01:49:45.408613"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.408910"], ["id", 10610]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MXzCAN9QLKqRymM0voo2Iuux9eNNbbdSBpFGGgSUwe2lfXrjSwp2G"], ["created_at", "2018-12-07 01:49:45.420551"], ["updated_at", "2018-12-07 01:49:45.420551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.422164"], ["updated_at", "2018-12-07 01:49:45.422164"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.423370"], ["updated_at", "2018-12-07 01:49:45.423370"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.424475"], ["updated_at", "2018-12-07 01:49:45.424475"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7980], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10611], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10611], ["room_id", 7980], ["created_at", "2018-12-07 01:49:45.427225"], ["updated_at", "2018-12-07 01:49:45.427225"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.428788"], ["last_sign_in_at", "2018-12-07 01:49:45.428788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.429141"], ["id", 10611]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TPhJBjhn9776ALdjom1KF.hZY9stA7d5f63XFm/IA0bj6jJAiQfS6"], ["created_at", "2018-12-07 01:49:45.445112"], ["updated_at", "2018-12-07 01:49:45.445112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.446632"], ["updated_at", "2018-12-07 01:49:45.446632"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.447800"], ["updated_at", "2018-12-07 01:49:45.447800"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:45.448890"], ["updated_at", "2018-12-07 01:49:45.448890"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7983], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10612], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10612], ["room_id", 7983], ["created_at", "2018-12-07 01:49:45.451901"], ["updated_at", "2018-12-07 01:49:45.451901"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:49:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:45.453686"], ["last_sign_in_at", "2018-12-07 01:49:45.453686"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:45.454057"], ["id", 10612]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9dQHbjAN1cAn87Gn/wI/EeEGU8jTEuKsaTKQBrewB99u/wlcPOYT6"], ["created_at", "2018-12-07 01:49:51.054674"], ["updated_at", "2018-12-07 01:49:51.054674"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OOAbekYYXzGv3hFldyhg/.1sZIXEA.5Pq1D2UMp8YI485ftPyyWda"], ["created_at", "2018-12-07 01:49:51.060470"], ["updated_at", "2018-12-07 01:49:51.060470"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.075026"], ["updated_at", "2018-12-07 01:49:51.075026"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7986], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10614], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10614], ["room_id", 7986], ["created_at", "2018-12-07 01:49:51.109800"], ["updated_at", "2018-12-07 01:49:51.109800"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4119"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4119], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7986], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10614], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 130.2ms Sent mail to 123@123.com (5.4ms) Date: Thu, 06 Dec 2018 23:49:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1bf4199d_46d62b27460c65f0208fa@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1bf40b59_46d62b27460c65f0207b";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1bf40b59_46d62b27460c65f0207b Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1bf40b59_46d62b27460c65f0207b Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1bf40b59_46d62b27460c65f0207b–

Completed 302 Found in 151ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h1BKKB265HpPGeln/6TzLuolOpESrPRFJSKEivZ3hNGwN8UK54HXy"], ["created_at", "2018-12-07 01:49:51.275878"], ["updated_at", "2018-12-07 01:49:51.275878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o5CmRVuuXpl4EQvnTb3r8upYXxGLr.8Rkf7yhF0Bj0yB1itbHUCy."], ["created_at", "2018-12-07 01:49:51.279035"], ["updated_at", "2018-12-07 01:49:51.279035"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.280452"], ["updated_at", "2018-12-07 01:49:51.280452"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7987], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10616], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10616], ["room_id", 7987], ["created_at", "2018-12-07 01:49:51.283138"], ["updated_at", "2018-12-07 01:49:51.283138"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4120"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4120], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7987], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10616], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:49:51.287801"], ["id", 4120]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:49:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1bf47353_46d62b27460c65f02106b@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1bf46ddd_46d62b27460c65f0209ed";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1bf46ddd_46d62b27460c65f0209ed Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1bf46ddd_46d62b27460c65f0209ed Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1bf46ddd_46d62b27460c65f0209ed–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZtnxgazPTnHza/hGBnHgn.px.fQ5.61PwMgc43updwaypoPJx5zoW"], ["created_at", "2018-12-07 01:49:51.297139"], ["updated_at", "2018-12-07 01:49:51.297139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mDGu6WEN0eEneKcAsRkYd..Zi4wsi19OnnxoqWi08NivSqJlw2zXe"], ["created_at", "2018-12-07 01:49:51.300555"], ["updated_at", "2018-12-07 01:49:51.300555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.302610"], ["updated_at", "2018-12-07 01:49:51.302610"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7988], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10618], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10618], ["room_id", 7988], ["created_at", "2018-12-07 01:49:51.306103"], ["updated_at", "2018-12-07 01:49:51.306103"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2CakUDHgePt4dss.JXJFM.v75gXoCVUFKrfjnSWBSiBYi2TukI.Ui"], ["created_at", "2018-12-07 01:49:51.312753"], ["updated_at", "2018-12-07 01:49:51.312753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bSfCecorxYkauW0D/O2lyusu/1NLP/K70/8fA/CeQ3lUmf.wSGsZW"], ["created_at", "2018-12-07 01:49:51.315869"], ["updated_at", "2018-12-07 01:49:51.315869"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.317219"], ["updated_at", "2018-12-07 01:49:51.317219"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7989], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10620], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10620], ["room_id", 7989], ["created_at", "2018-12-07 01:49:51.319926"], ["updated_at", "2018-12-07 01:49:51.319926"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4122], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$qc/V6Pb0vSnoV0Y4BWXUpO3PiC4t56muweYfo3sHUd1lUps0Xb/dC"], ["created_at", "2018-12-07 01:49:51.324790"], ["updated_at", "2018-12-07 01:49:51.324790"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10621"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "i32TzWNg6F2TEi0MCvdAjg"], ["updated_at", "2018-12-07 01:49:51.327911"], ["id", 10621]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:49:51.329369"], ["reset_sent_at", "2018-12-07 01:49:51.329023"], ["id", 10621]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:49:51 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d1bf522e1_46d62b27460c65f021353@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1bf51d0d_46d62b27460c65f021279";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1bf51d0d_46d62b27460c65f021279 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/i32TzWNg6F2TEi0MCvdAjg/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d1bf51d0d_46d62b27460c65f021279 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/i32TzWNg6F2TEi0MCvdAjg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1bf51d0d_46d62b27460c65f021279–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$2zPcZngvPDVt2TvfJ/XjVuAIeTpwvYWl76mEb6LFyWTxgXn78Vzp2"], ["created_at", "2018-12-07 01:49:51.342268"], ["updated_at", "2018-12-07 01:49:51.342268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Zo0g7.gGNDcdvIsYWguZAe2dKQxA757nfkaDNxPFZBIAAvr8Zl7SG"], ["created_at", "2018-12-07 01:49:51.349514"], ["updated_at", "2018-12-07 01:49:51.349514"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10623"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$0phImvGzYTzS7jMBfPNgsOswnTchnVMPNHSoIgDbCt0easltO.8KG"], ["updated_at", "2018-12-07 01:49:51.353473"], ["id", 10623]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ZHN3ZWYTP3V2CySMwoNvuuRPkq/puXkk9NGfZ3RNmxwGNfJ1bXgqe"], ["created_at", "2018-12-07 01:49:51.358201"], ["updated_at", "2018-12-07 01:49:51.358201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10624"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$A8VQ4awIjfy77oRtKAVp2.x3ANdbuRhTqs7PLvrqtnyrtwGIzzOn6"], ["created_at", "2018-12-07 01:49:51.366636"], ["updated_at", "2018-12-07 01:49:51.366636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10625"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$QF/HtbclGUruG0qD41KAPO03ydq1z8TnvUYk/nUNk6L4gleWTulE6"], ["created_at", "2018-12-07 01:49:51.380202"], ["updated_at", "2018-12-07 01:49:51.380202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10626"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$edXkpGQ/i4BEJKgCzEulRuqcnWgFHETuHYx9WC5ZCNufD4gO7Z.Ga"], ["created_at", "2018-12-07 01:49:51.388531"], ["updated_at", "2018-12-07 01:49:51.388531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10627"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PRiCpT18OjD8ROGBh2BTe.2erLhExI/WZWgDT.u4AR3HRtQHMsPF2"], ["created_at", "2018-12-07 01:49:51.396494"], ["updated_at", "2018-12-07 01:49:51.396494"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z96hrU7aAKrTsTp1PFUm3.uVS7v0CkBP9H5t9E6SdWkRMmTfuSfcm"], ["created_at", "2018-12-07 01:49:51.403221"], ["updated_at", "2018-12-07 01:49:51.403221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sSnMkzeLEYrfykBHSdNR1.ibawRmYxCwey6fZxHajUnweypesJv4u"], ["created_at", "2018-12-07 01:49:51.410046"], ["updated_at", "2018-12-07 01:49:51.410046"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.411501"], ["updated_at", "2018-12-07 01:49:51.411501"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7990], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10630], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10630], ["room_id", 7990], ["created_at", "2018-12-07 01:49:51.414263"], ["updated_at", "2018-12-07 01:49:51.414263"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/qtf7fWErUoT41rFnIs/JuRgTbITvD2qvamAUzsfvIXgICRH0tRp2"], ["created_at", "2018-12-07 01:49:51.420477"], ["updated_at", "2018-12-07 01:49:51.420477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.421960"], ["updated_at", "2018-12-07 01:49:51.421960"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7991], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10631], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10631], ["room_id", 7991], ["created_at", "2018-12-07 01:49:51.424830"], ["updated_at", "2018-12-07 01:49:51.424830"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vPmnB/bqKwvM0SD4qc8JzuIhCYMzVp5SXKRF4HAi.oMWeSfBPJGB6"], ["created_at", "2018-12-07 01:49:51.447504"], ["updated_at", "2018-12-07 01:49:51.447504"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.449076"], ["updated_at", "2018-12-07 01:49:51.449076"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.455914"], ["last_sign_in_at", "2018-12-07 01:49:51.455914"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.456337"], ["id", 10632]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7992"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7992 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7992], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10632], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10632], ["room_id", 7992], ["created_at", "2018-12-07 01:49:51.464445"], ["updated_at", "2018-12-07 01:49:51.464445"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7992], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dNCuESHvhewdjl/YRkvPNexBoHWJJ5wP3grI/UTTY10IRzf.W6kg2"], ["created_at", "2018-12-07 01:49:51.470462"], ["updated_at", "2018-12-07 01:49:51.470462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.471981"], ["updated_at", "2018-12-07 01:49:51.471981"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.473770"], ["last_sign_in_at", "2018-12-07 01:49:51.473770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.474124"], ["id", 10633]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7993"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7993 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7993], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10633], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10633], ["room_id", 7993], ["created_at", "2018-12-07 01:49:51.478489"], ["updated_at", "2018-12-07 01:49:51.478489"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NBMryJT4SDoR0HoDrv2f1ORaDMj6yxZAiwCuHaxiq2Wk97C8OUzKy"], ["created_at", "2018-12-07 01:49:51.483785"], ["updated_at", "2018-12-07 01:49:51.483785"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.485273"], ["updated_at", "2018-12-07 01:49:51.485273"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.487433"], ["last_sign_in_at", "2018-12-07 01:49:51.487433"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.487890"], ["id", 10634]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7994", "user_id"=>"10634"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7994 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7994], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10634], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10634], ["room_id", 7994], ["created_at", "2018-12-07 01:49:51.493097"], ["updated_at", "2018-12-07 01:49:51.493097"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7994", "user_id"=>"10634"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10634], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7994 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7994], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10634], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10634], ["room_id", 7994], ["created_at", "2018-12-07 01:49:51.499786"], ["updated_at", "2018-12-07 01:49:51.499786"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ULvHDque8LDm/zvm0XjivuNo.emGluILjotylJT6MImgrqqUAGCQO"], ["created_at", "2018-12-07 01:49:51.504962"], ["updated_at", "2018-12-07 01:49:51.504962"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.506608"], ["updated_at", "2018-12-07 01:49:51.506608"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.509045"], ["last_sign_in_at", "2018-12-07 01:49:51.509045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.509444"], ["id", 10635]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7995", "user_id"=>"10635"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7995 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7995], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10635], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10635], ["room_id", 7995], ["created_at", "2018-12-07 01:49:51.513947"], ["updated_at", "2018-12-07 01:49:51.513947"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7995", "user_id"=>"10635"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10635], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7995 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7995], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10635], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10635], ["room_id", 7995], ["created_at", "2018-12-07 01:49:51.520003"], ["updated_at", "2018-12-07 01:49:51.520003"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7995], ["user_id", 10635], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TDcpfY11MxoM/5HMCOFGX.pdzhn3WZVL1/PX64jJOkoDKQRBetKyO"], ["created_at", "2018-12-07 01:49:51.526630"], ["updated_at", "2018-12-07 01:49:51.526630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.528239"], ["updated_at", "2018-12-07 01:49:51.528239"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.530385"], ["last_sign_in_at", "2018-12-07 01:49:51.530385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.530762"], ["id", 10636]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7996", "user_id"=>"10636"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7996 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7996], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10636], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10636], ["room_id", 7996], ["created_at", "2018-12-07 01:49:51.535157"], ["updated_at", "2018-12-07 01:49:51.535157"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"7996", "user_id"=>"10636"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10636], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 7996 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7996], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10636], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10636], ["room_id", 7996], ["created_at", "2018-12-07 01:49:51.541479"], ["updated_at", "2018-12-07 01:49:51.541479"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 7996], ["user_id", 10636], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PrqpogfyFWLb745xlkdku.MRh4Cv8u2kWywFgA2iZFg4f6mysJ5uW"], ["created_at", "2018-12-07 01:49:51.547204"], ["updated_at", "2018-12-07 01:49:51.547204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.548743"], ["updated_at", "2018-12-07 01:49:51.548743"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.550714"], ["last_sign_in_at", "2018-12-07 01:49:51.550714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.551176"], ["id", 10637]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7997"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 7997], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1m1nxwqEOYYaiN2M/M3btu9NoGSDTmAsWEwkvs.BTavvzbJj91Gmi"], ["created_at", "2018-12-07 01:49:51.559391"], ["updated_at", "2018-12-07 01:49:51.559391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.561041"], ["updated_at", "2018-12-07 01:49:51.561041"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.562932"], ["last_sign_in_at", "2018-12-07 01:49:51.562932"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.563353"], ["id", 10638]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"7998"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$exVMiEAzmEFSD9r2SPONa.raejwg9nykdEBNkIF5VgLEUEfrXDxJe"], ["created_at", "2018-12-07 01:49:51.570242"], ["updated_at", "2018-12-07 01:49:51.570242"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.571763"], ["updated_at", "2018-12-07 01:49:51.571763"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7999], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10639], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10639], ["room_id", 7999], ["created_at", "2018-12-07 01:49:51.574819"], ["updated_at", "2018-12-07 01:49:51.574819"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/7999” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.576347"], ["last_sign_in_at", "2018-12-07 01:49:51.576347"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.576703"], ["id", 10639]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"7999"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 7999], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '7999')
Rendered appointments/show.html.erb within layouts/application (6.7ms)
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 152ms (Views: 150.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FBD4ny/2Z5qXavSs4M8ohuOnrc83mCiXyqbDY8bZLRhHA8o4wQbK."], ["created_at", "2018-12-07 01:49:51.737817"], ["updated_at", "2018-12-07 01:49:51.737817"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.740904"], ["updated_at", "2018-12-07 01:49:51.740904"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8000], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10640], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10640], ["room_id", 8000], ["created_at", "2018-12-07 01:49:51.747888"], ["updated_at", "2018-12-07 01:49:51.747888"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4134/edit” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.751514"], ["last_sign_in_at", "2018-12-07 01:49:51.751514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.752034"], ["id", 10640]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4134"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4134], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JnELqj79MDZ9MD6lbqh9HevgVFdlOrW2zWP.M6xGdPjBygwpWB4/i"], ["created_at", "2018-12-07 01:49:51.774023"], ["updated_at", "2018-12-07 01:49:51.774023"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.776536"], ["last_sign_in_at", "2018-12-07 01:49:51.776536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.777401"], ["id", 10641]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.8ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 10.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (1.0ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2kgc2SNjBuaEqreHKYpwg.5HCqvV.EnjzublIVSUVZq2yXnueOgrK"], ["created_at", "2018-12-07 01:49:51.803571"], ["updated_at", "2018-12-07 01:49:51.803571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (1.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.807107"], ["updated_at", "2018-12-07 01:49:51.807107"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8001], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10642], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10642], ["room_id", 8001], ["created_at", "2018-12-07 01:49:51.813054"], ["updated_at", "2018-12-07 01:49:51.813054"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8001], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10642], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10642], ["room_id", 8001], ["created_at", "2018-12-07 01:49:51.818438"], ["updated_at", "2018-12-07 01:49:51.818438"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.820740"], ["last_sign_in_at", "2018-12-07 01:49:51.820740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.821651"], ["id", 10642]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10642]]
Rendered appointments/my_appointments.html.erb within layouts/application (13.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 24ms (Views: 15.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KRyjPhUPaMHWgKxkwOJ3B.6oBdU/JALJfc4NS6FqPaLOyIYyAJIlq"], ["created_at", "2018-12-07 01:49:51.853653"], ["updated_at", "2018-12-07 01:49:51.853653"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.856111"], ["updated_at", "2018-12-07 01:49:51.856111"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8002], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10643], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10643], ["room_id", 8002], ["created_at", "2018-12-07 01:49:51.860531"], ["updated_at", "2018-12-07 01:49:51.860531"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8002], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10643], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10643], ["room_id", 8002], ["created_at", "2018-12-07 01:49:51.864056"], ["updated_at", "2018-12-07 01:49:51.864056"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.865819"], ["last_sign_in_at", "2018-12-07 01:49:51.865819"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.866273"], ["id", 10643]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10643]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YSdococXmCBMjlciXy6iousof7joNJLOJGpO7quPCnV/2TaFTjab2"], ["created_at", "2018-12-07 01:49:51.877130"], ["updated_at", "2018-12-07 01:49:51.877130"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.879100"], ["updated_at", "2018-12-07 01:49:51.879100"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8003], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10644], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10644], ["room_id", 8003], ["created_at", "2018-12-07 01:49:51.882488"], ["updated_at", "2018-12-07 01:49:51.882488"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4139” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.884088"], ["last_sign_in_at", "2018-12-07 01:49:51.884088"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.884500"], ["id", 10644]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4139"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4139], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4139]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0Qkgew4uTFHl0Nc7dDUrSOFRqf9y.SJT/yfRBvd2hLSByStT6gjti"], ["created_at", "2018-12-07 01:49:51.895061"], ["updated_at", "2018-12-07 01:49:51.895061"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.896817"], ["updated_at", "2018-12-07 01:49:51.896817"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$V/Azem05v2mjfOAOZjAg2eSk.QKkctK5.KktBEoK.hWorEqtT1VJ."], ["created_at", "2018-12-07 01:49:51.900121"], ["updated_at", "2018-12-07 01:49:51.900121"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8004], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10646], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10646], ["room_id", 8004], ["created_at", "2018-12-07 01:49:51.903215"], ["updated_at", "2018-12-07 01:49:51.903215"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4140” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.905169"], ["last_sign_in_at", "2018-12-07 01:49:51.905169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.905569"], ["id", 10645]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4140"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4140], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8004], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10646], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wIA.R8Vm/gk9Mj9HNdf48eoybyO5/R8SStWdH/MsollUa.R3S32Ji"], ["created_at", "2018-12-07 01:49:51.915143"], ["updated_at", "2018-12-07 01:49:51.915143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.916703"], ["updated_at", "2018-12-07 01:49:51.916703"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aoSBKq/ZlmIwA8BfpRMAyeSGY9ENjGBBGV4bxHHHlVyG.R3mAmI82"], ["created_at", "2018-12-07 01:49:51.920355"], ["updated_at", "2018-12-07 01:49:51.920355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8005], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10648], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10648], ["room_id", 8005], ["created_at", "2018-12-07 01:49:51.923690"], ["updated_at", "2018-12-07 01:49:51.923690"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4141” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.925604"], ["last_sign_in_at", "2018-12-07 01:49:51.925604"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.925993"], ["id", 10647]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4141"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4141], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8005], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10648], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dao2pNh6Ck1cqzRbqlyXeucAj93fEuo8ea1YyCW7pundX82oWSJ.W"], ["created_at", "2018-12-07 01:49:51.934856"], ["updated_at", "2018-12-07 01:49:51.934856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.936455"], ["updated_at", "2018-12-07 01:49:51.936455"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1HkBbTOilNalUBJETjp50uIctjjSdZIlp1xcK4STdgXCSykfoFa0C"], ["created_at", "2018-12-07 01:49:51.939592"], ["updated_at", "2018-12-07 01:49:51.939592"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8006], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10650], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10650], ["room_id", 8006], ["created_at", "2018-12-07 01:49:51.942550"], ["updated_at", "2018-12-07 01:49:51.942550"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4142” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.944485"], ["last_sign_in_at", "2018-12-07 01:49:51.944485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.944913"], ["id", 10649]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4142"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4142], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8006], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10650], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:49:51.949181"], ["id", 4142]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.1ms Sent mail to 123@123.com (2.4ms) Date: Thu, 06 Dec 2018 23:49:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d1bfe8cc0_46d62b27460c65f0220bc@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d1bfe86c0_46d62b27460c65f021970";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d1bfe86c0_46d62b27460c65f021970 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d1bfe86c0_46d62b27460c65f021970 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d1bfe86c0_46d62b27460c65f021970–

Completed 302 Found in 9ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JoP.xYEA5u35JYETMh/hR.S9.EHaXR2ibgDfzGNCrqiyvhc.iawXO"], ["created_at", "2018-12-07 01:49:51.960206"], ["updated_at", "2018-12-07 01:49:51.960206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.961840"], ["updated_at", "2018-12-07 01:49:51.961840"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hgnPVgErAMUo6VzvfFRDEuL1oniUdbpFQDsv2BKl9JNb4uLXG8GD2"], ["created_at", "2018-12-07 01:49:51.964935"], ["updated_at", "2018-12-07 01:49:51.964935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8007], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10652], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10652], ["room_id", 8007], ["created_at", "2018-12-07 01:49:51.967940"], ["updated_at", "2018-12-07 01:49:51.967940"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:49:51.969337"], ["id", 4143]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8007], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10652], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10652], ["room_id", 8007], ["created_at", "2018-12-07 01:49:51.972021"], ["updated_at", "2018-12-07 01:49:51.972021"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:49:51.973298"], ["id", 4144]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:49:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:51.974699"], ["last_sign_in_at", "2018-12-07 01:49:51.974699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:51.975069"], ["id", 10651]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10652], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8007], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10652], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8007], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 6.0ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F9TYpdAqL2dIRoWsxeYcP.4R1OgsT4XzQNhO2DqlDnGNN9fTVhlc."], ["created_at", "2018-12-07 01:49:51.988798"], ["updated_at", "2018-12-07 01:49:51.988798"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:51.990469"], ["updated_at", "2018-12-07 01:49:51.990469"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8USeN00vW3j2EAwI7DfVZ.QVSg6S6JI9zWm2Uap27Km0x6MqK17.O"], ["created_at", "2018-12-07 01:49:51.993572"], ["updated_at", "2018-12-07 01:49:51.993572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8008], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10654], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10654], ["room_id", 8008], ["created_at", "2018-12-07 01:49:51.996529"], ["updated_at", "2018-12-07 01:49:51.996529"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:49:51.997944"], ["id", 4145]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8008], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10654], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10654], ["room_id", 8008], ["created_at", "2018-12-07 01:49:52.000636"], ["updated_at", "2018-12-07 01:49:52.000636"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:49:52.001906"], ["id", 4146]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.003293"], ["last_sign_in_at", "2018-12-07 01:49:52.003293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.003657"], ["id", 10653]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10654], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8008], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10654], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8008], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RycmT/CJz.mptXZtGCon2u30rUOpNWgJgP8ruFpiVJ9jW3jIcBXNy"], ["created_at", "2018-12-07 01:49:52.016710"], ["updated_at", "2018-12-07 01:49:52.016710"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.018547"], ["last_sign_in_at", "2018-12-07 01:49:52.018547"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.018903"], ["id", 10655]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.sxoIgMJFY5qKRjtt9xxsuO6wloYC3omwe/JQ5F96QP7AKEsD8f6e"], ["created_at", "2018-12-07 01:49:52.031874"], ["updated_at", "2018-12-07 01:49:52.031874"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.033496"], ["last_sign_in_at", "2018-12-07 01:49:52.033496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.033864"], ["id", 10656]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bA6zTE1C68Jwqg3ZMwEPb.S4bStotvlapBogsDXCuMT/GZD/CQ.7e"], ["created_at", "2018-12-07 01:49:52.039681"], ["updated_at", "2018-12-07 01:49:52.039681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.041178"], ["last_sign_in_at", "2018-12-07 01:49:52.041178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.041509"], ["id", 10657]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KWex8J3S2mXvM3DeAxntfuxH28dD5c79e/CGpfFCqmfAaxWIbtnyu"], ["created_at", "2018-12-07 01:49:52.051815"], ["updated_at", "2018-12-07 01:49:52.051815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.053461"], ["last_sign_in_at", "2018-12-07 01:49:52.053461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.053861"], ["id", 10658]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XRZ5BSJ1XxYFtvp1opiMGeYsVg7HX.pmzmhaDne.quA3YvH/H0Qnq"], ["created_at", "2018-12-07 01:49:52.067595"], ["updated_at", "2018-12-07 01:49:52.067595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.069197"], ["updated_at", "2018-12-07 01:49:52.069197"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8009” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.070688"], ["last_sign_in_at", "2018-12-07 01:49:52.070688"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.071105"], ["id", 10659]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8009"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8009], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AEw83nKI4ie3nbjmQZ0/LOQ0qIdVkuFZSbrdalzXHG06dOn2RN3Tm"], ["created_at", "2018-12-07 01:49:52.080893"], ["updated_at", "2018-12-07 01:49:52.080893"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.082549"], ["updated_at", "2018-12-07 01:49:52.082549"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8010” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.084035"], ["last_sign_in_at", "2018-12-07 01:49:52.084035"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.084397"], ["id", 10660]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8010"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8010], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.090877"], ["updated_at", "2018-12-07 01:49:52.090877"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8011” for 127.0.0.1 at 2018-12-06 23:49:52 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8011"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s54Jh8a.vZsJUOzxjlgJHOVdmYDmvyaxpjFcV2knkASaKa4HJoD/e"], ["created_at", "2018-12-07 01:49:52.096992"], ["updated_at", "2018-12-07 01:49:52.096992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.098606"], ["updated_at", "2018-12-07 01:49:52.098606"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8012” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.100019"], ["last_sign_in_at", "2018-12-07 01:49:52.100019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.100409"], ["id", 10661]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8012"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.108574"], ["updated_at", "2018-12-07 01:49:52.108574"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8013” for 127.0.0.1 at 2018-12-06 23:49:52 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8013"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kVa.Sw/ZieVFjmN.kehiv.SoObcZG9exXhshj/HjzJGrRkNMAO9G2"], ["created_at", "2018-12-07 01:49:52.115335"], ["updated_at", "2018-12-07 01:49:52.115335"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.116912"], ["updated_at", "2018-12-07 01:49:52.116912"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8014/edit” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.118369"], ["last_sign_in_at", "2018-12-07 01:49:52.118369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.118747"], ["id", 10662]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8014"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8014], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u29ht82GLgnJ6GoK9FRKI.H2/Msw.AhHjQJyIF12KSu9M7eVkQILy"], ["created_at", "2018-12-07 01:49:52.129221"], ["updated_at", "2018-12-07 01:49:52.129221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.130820"], ["updated_at", "2018-12-07 01:49:52.130820"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8015/edit” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.132287"], ["last_sign_in_at", "2018-12-07 01:49:52.132287"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.132647"], ["id", 10663]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8015"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8015], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.140779"], ["updated_at", "2018-12-07 01:49:52.140779"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8016” for 127.0.0.1 at 2018-12-06 23:49:52 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8016"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.IlNWDFzTE3zsqisDL02NObhV9UU8IUVHBCL7J8W5LyWTfbdoBlSe"], ["created_at", "2018-12-07 01:49:52.147482"], ["updated_at", "2018-12-07 01:49:52.147482"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.149502"], ["last_sign_in_at", "2018-12-07 01:49:52.149502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.149853"], ["id", 10664]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.152379"], ["updated_at", "2018-12-07 01:49:52.152379"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T6jf2/UMJglgCt8p6SFVZea9UHgK3hG/C8hN3ur7pwflp7dkN47Q."], ["created_at", "2018-12-07 01:49:52.158136"], ["updated_at", "2018-12-07 01:49:52.158136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.160108"], ["last_sign_in_at", "2018-12-07 01:49:52.160108"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.160450"], ["id", 10665]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.162802"], ["updated_at", "2018-12-07 01:49:52.162802"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jiTvG.8IVN9zF.86582pDexM.W82BI8IWtOdS6CcGagq.EX7JNUbG"], ["created_at", "2018-12-07 01:49:52.167838"], ["updated_at", "2018-12-07 01:49:52.167838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.169981"], ["last_sign_in_at", "2018-12-07 01:49:52.169981"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.170387"], ["id", 10666]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rpZsiIhJqb/XuxOgaz9Yz.cJSN3UWnocn4zCt0HXONUbY4ri3yk9a"], ["created_at", "2018-12-07 01:49:52.178967"], ["updated_at", "2018-12-07 01:49:52.178967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.181008"], ["last_sign_in_at", "2018-12-07 01:49:52.181008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.181314"], ["id", 10667]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wibukZPTHkymegViGDdIHucy1j8q.TC25ZE5Z9cO1bH9FMcIFqJHu"], ["created_at", "2018-12-07 01:49:52.188652"], ["updated_at", "2018-12-07 01:49:52.188652"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.190672"], ["last_sign_in_at", "2018-12-07 01:49:52.190672"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.191018"], ["id", 10668]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gNcOFG3CocIJ2/xd.QYJruHuS1D6eyLsNelE6uwFT0jX9HVG5IRDK"], ["created_at", "2018-12-07 01:49:52.197047"], ["updated_at", "2018-12-07 01:49:52.197047"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.198680"], ["updated_at", "2018-12-07 01:49:52.198680"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8019” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.200670"], ["last_sign_in_at", "2018-12-07 01:49:52.200670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.201126"], ["id", 10669]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8019"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8019], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:49:52.204730"], ["id", 8019]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8019 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EftXo2m7UUHGi3EF6jKpLOtrxeZABQiIdptanxcIdZhK2TZnWdLTi"], ["created_at", "2018-12-07 01:49:52.210783"], ["updated_at", "2018-12-07 01:49:52.210783"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.212382"], ["updated_at", "2018-12-07 01:49:52.212382"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8020” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.214153"], ["last_sign_in_at", "2018-12-07 01:49:52.214153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.214529"], ["id", 10670]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8020"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8020], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:49:52.217370"], ["id", 8020]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8020 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wABWNBYEKt4lGIPcDGF2OunJzTRWPeCMTzUmvYJPxM4C2XEnOoTKm"], ["created_at", "2018-12-07 01:49:52.222683"], ["updated_at", "2018-12-07 01:49:52.222683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.224264"], ["updated_at", "2018-12-07 01:49:52.224264"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8021” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.225996"], ["last_sign_in_at", "2018-12-07 01:49:52.225996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.226379"], ["id", 10671]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8021"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8021], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.3ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pR7slbYbRIVGf2rM7lbkHuRXwHwOugfhSzBcTjJF43wAOhazcrE4q"], ["created_at", "2018-12-07 01:49:52.238469"], ["updated_at", "2018-12-07 01:49:52.238469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.240121"], ["updated_at", "2018-12-07 01:49:52.240121"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8022” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.241884"], ["last_sign_in_at", "2018-12-07 01:49:52.241884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.242264"], ["id", 10672]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8022"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8022], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7yfAMr/Mh1OKWksTnb6OreHZa/1SE5uvlEl03OPa9pHkCBuk2y91i"], ["created_at", "2018-12-07 01:49:52.253352"], ["updated_at", "2018-12-07 01:49:52.253352"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.255462"], ["last_sign_in_at", "2018-12-07 01:49:52.255462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.255816"], ["id", 10673]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DZX76IQFwP9UbL77ycnwmuNlV.3lYKoktcbuw8Ms4OYNDZzGI/B46"], ["created_at", "2018-12-07 01:49:52.261779"], ["updated_at", "2018-12-07 01:49:52.261779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.263342"], ["updated_at", "2018-12-07 01:49:52.263342"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8023” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.264988"], ["last_sign_in_at", "2018-12-07 01:49:52.264988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.265421"], ["id", 10674]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8023"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8023], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8023]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Al68mrPZqZIJ5Bj9YrZd3ex/c4XKQSSZe3XMs4Uk/QO6H4h3UAB7y"], ["created_at", "2018-12-07 01:49:52.273832"], ["updated_at", "2018-12-07 01:49:52.273832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.275441"], ["updated_at", "2018-12-07 01:49:52.275441"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8024” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.276852"], ["last_sign_in_at", "2018-12-07 01:49:52.276852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.277234"], ["id", 10675]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8024"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8024], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8024]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nRTlwAyaVYOCt3PfnWnvoum7sEOFgupEk/Gr/rPMO8C8waYeyNvXW"], ["created_at", "2018-12-07 01:49:52.284392"], ["updated_at", "2018-12-07 01:49:52.284392"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.285969"], ["updated_at", "2018-12-07 01:49:52.285969"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8025” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.287381"], ["last_sign_in_at", "2018-12-07 01:49:52.287381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.287734"], ["id", 10676]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8025"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gDlC46aKaLgfNwUPEdIru.EDVUd0TX93844gXiLO2AYXSWgWuC3xe"], ["created_at", "2018-12-07 01:49:52.293897"], ["updated_at", "2018-12-07 01:49:52.293897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.295550"], ["updated_at", "2018-12-07 01:49:52.295550"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8026” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.297142"], ["last_sign_in_at", "2018-12-07 01:49:52.297142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.297635"], ["id", 10677]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8026"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TFVNHezE1VeBQUI5UhMBwucottZxoYN0Xfnr8PmZT2cU45YIk/YzS"], ["created_at", "2018-12-07 01:49:52.304204"], ["updated_at", "2018-12-07 01:49:52.304204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.305840"], ["last_sign_in_at", "2018-12-07 01:49:52.305840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.306198"], ["id", 10678]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RseTZdEQYQccVDplREYFlO4ujA90LtlOtYe8hysG136iLboUadDeK"], ["created_at", "2018-12-07 01:49:52.317662"], ["updated_at", "2018-12-07 01:49:52.317662"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.319252"], ["updated_at", "2018-12-07 01:49:52.319252"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.320504"], ["updated_at", "2018-12-07 01:49:52.320504"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.321634"], ["updated_at", "2018-12-07 01:49:52.321634"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8027], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10679], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10679], ["room_id", 8027], ["created_at", "2018-12-07 01:49:52.324396"], ["updated_at", "2018-12-07 01:49:52.324396"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.325985"], ["last_sign_in_at", "2018-12-07 01:49:52.325985"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.326394"], ["id", 10679]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.0ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6TmPqBliW7fz77aorTdB.uDReK7KzgdUvMbG0bV5ccaRk7vFNFfm2"], ["created_at", "2018-12-07 01:49:52.343694"], ["updated_at", "2018-12-07 01:49:52.343694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.345226"], ["updated_at", "2018-12-07 01:49:52.345226"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.346392"], ["updated_at", "2018-12-07 01:49:52.346392"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:49:52.347635"], ["updated_at", "2018-12-07 01:49:52.347635"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8030], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10680], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10680], ["room_id", 8030], ["created_at", "2018-12-07 01:49:52.350394"], ["updated_at", "2018-12-07 01:49:52.350394"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:49:52 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:49:52.351951"], ["last_sign_in_at", "2018-12-07 01:49:52.351951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:49:52.352263"], ["id", 10680]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RFI7tb2ZhDUjo3Z67pvEaO9vHuSIEYYG889cqNgGhF.XdLwAVP5j2"], ["created_at", "2018-12-07 01:51:19.015337"], ["updated_at", "2018-12-07 01:51:19.015337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ena8MwZGv23CLiSp8GlsKOWuNwEAMPaBNwKzlcFw5l0aMyu59vZ42"], ["created_at", "2018-12-07 01:51:19.021098"], ["updated_at", "2018-12-07 01:51:19.021098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.035644"], ["updated_at", "2018-12-07 01:51:19.035644"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8033], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10682], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10682], ["room_id", 8033], ["created_at", "2018-12-07 01:51:19.070183"], ["updated_at", "2018-12-07 01:51:19.070183"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4149"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4149], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8033], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10682], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 134.1ms Sent mail to 123@123.com (5.7ms) Date: Thu, 06 Dec 2018 23:51:19 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d217393f8_47522ac99b1de5f46989e@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d2173852d_47522ac99b1de5f4697fb";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d2173852d_47522ac99b1de5f4697fb Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d2173852d_47522ac99b1de5f4697fb Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d2173852d_47522ac99b1de5f4697fb–

Completed 302 Found in 156ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qO0DzuYaIiGRwU6hs3Yd8uEioX6lWan8yjnT0C83aXl04.hB5u7y6"], ["created_at", "2018-12-07 01:51:19.241813"], ["updated_at", "2018-12-07 01:51:19.241813"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SQO585QicpfgXFOr6tBXEu0Y.jtSDHw3d8RyEowBolk0owg9Kqv9S"], ["created_at", "2018-12-07 01:51:19.244944"], ["updated_at", "2018-12-07 01:51:19.244944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.246326"], ["updated_at", "2018-12-07 01:51:19.246326"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8034], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10684], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10684], ["room_id", 8034], ["created_at", "2018-12-07 01:51:19.249140"], ["updated_at", "2018-12-07 01:51:19.249140"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4150"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4150], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8034], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10684], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:51:19.253934"], ["id", 4150]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:51:19 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d2173ef8f_47522ac99b1de5f4700fe@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d2173ea14_47522ac99b1de5f469935";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d2173ea14_47522ac99b1de5f469935 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d2173ea14_47522ac99b1de5f469935 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d2173ea14_47522ac99b1de5f469935–

Completed 302 Found in 9ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gzcDLgVFJbEGIwiPdBB1duTrBP6uyV6zSXmat817FJGLxLgfE2VRO"], ["created_at", "2018-12-07 01:51:19.263365"], ["updated_at", "2018-12-07 01:51:19.263365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kdjQskcLjur/lyYnU/tMK.46gLo5E2jYZu7QqixxcLNQhI65NjzpC"], ["created_at", "2018-12-07 01:51:19.266704"], ["updated_at", "2018-12-07 01:51:19.266704"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.268595"], ["updated_at", "2018-12-07 01:51:19.268595"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8035], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10686], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10686], ["room_id", 8035], ["created_at", "2018-12-07 01:51:19.271976"], ["updated_at", "2018-12-07 01:51:19.271976"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u4tAioCS83d1C21JxBLT0Ockyc/zRsFC87ONxRN0zQsnLaEz/.naG"], ["created_at", "2018-12-07 01:51:19.278589"], ["updated_at", "2018-12-07 01:51:19.278589"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$utE1kzAehdRWNYEPjlJAMOxBApG1qQK..5SBSvOESB9/jPinnvT2G"], ["created_at", "2018-12-07 01:51:19.281714"], ["updated_at", "2018-12-07 01:51:19.281714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.283197"], ["updated_at", "2018-12-07 01:51:19.283197"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8036], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10688], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10688], ["room_id", 8036], ["created_at", "2018-12-07 01:51:19.286134"], ["updated_at", "2018-12-07 01:51:19.286134"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4152], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$pRufHsoRoAJK94tcGwGpJefWTAVF.p2inFZZC/giAZBkyAc2WZ6Aq"], ["created_at", "2018-12-07 01:51:19.291313"], ["updated_at", "2018-12-07 01:51:19.291313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10689"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "Jmubh_I0EhQ2uE0OJkzvAQ"], ["updated_at", "2018-12-07 01:51:19.294523"], ["id", 10689]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:51:19.295861"], ["reset_sent_at", "2018-12-07 01:51:19.295582"], ["id", 10689]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.3ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:51:19 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d2174a052_47522ac99b1de5f470350@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d21749a69_47522ac99b1de5f4702dc";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d21749a69_47522ac99b1de5f4702dc Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/Jmubh_I0EhQ2uE0OJkzvAQ/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d21749a69_47522ac99b1de5f4702dc Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/Jmubh_I0EhQ2uE0OJkzvAQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d21749a69_47522ac99b1de5f4702dc–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$r.N/PFk3wuwaUNOFWb7nEeXuX7waanVrFBEzj.bk0zARJJ/bMNIf6"], ["created_at", "2018-12-07 01:51:19.308834"], ["updated_at", "2018-12-07 01:51:19.308834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$TbqL/9iq2Ckinz8Vh5iBgOLdBjmLfvXt/aoTUhqcQXMf/4mTrBx1m"], ["created_at", "2018-12-07 01:51:19.316067"], ["updated_at", "2018-12-07 01:51:19.316067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10691"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$41.eeHBBDKDcT9WmChDRp.jNcOggc9HV9xywIGYZvKsmkt4E0zCvy"], ["updated_at", "2018-12-07 01:51:19.319980"], ["id", 10691]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$g3WC2kgK/hoA4rWNhCaf6ejbySAERxFAsHWvf2vAOHdULR.JCdPia"], ["created_at", "2018-12-07 01:51:19.324712"], ["updated_at", "2018-12-07 01:51:19.324712"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10692"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$We8fNcB3ozGR3KP0gCcDZ.GcBlfe7VR5OxSU8rCzDWSJfSTGrKcpC"], ["created_at", "2018-12-07 01:51:19.333072"], ["updated_at", "2018-12-07 01:51:19.333072"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10693"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$2STOkb09W22N4s5ie8UAjutweCdOqbgClpMsFjBN489XtXN9DaT3S"], ["created_at", "2018-12-07 01:51:19.346765"], ["updated_at", "2018-12-07 01:51:19.346765"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10694"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$oasBWo7YxhOgwXrwRkcnS.qbG1Gio/jRUmSS3WdSU4rZCP/.H2BgC"], ["created_at", "2018-12-07 01:51:19.355019"], ["updated_at", "2018-12-07 01:51:19.355019"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10695"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gZ2HRlE3burKkLevRAsm0uxQJ4gmvohj2.B7SSZcvWizye.nHLPTG"], ["created_at", "2018-12-07 01:51:19.362960"], ["updated_at", "2018-12-07 01:51:19.362960"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nAs6KkeMn0RBFAHE1xPZ5ONAUzRX7xI3wIUQkuYiF6BkdEf96d2h6"], ["created_at", "2018-12-07 01:51:19.369558"], ["updated_at", "2018-12-07 01:51:19.369558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sNKmCyYkJXD/O06TIzMVBOVXFIHH1UYZxZ2ejLD7o5zPGtplwtnsW"], ["created_at", "2018-12-07 01:51:19.376234"], ["updated_at", "2018-12-07 01:51:19.376234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.377698"], ["updated_at", "2018-12-07 01:51:19.377698"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8037], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10698], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10698], ["room_id", 8037], ["created_at", "2018-12-07 01:51:19.380539"], ["updated_at", "2018-12-07 01:51:19.380539"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gyhIIxwOxBxIRV2AKQZIRuoZMgcFbZI7Q4RbMn7UkvONwXwfHLMiO"], ["created_at", "2018-12-07 01:51:19.386755"], ["updated_at", "2018-12-07 01:51:19.386755"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.388219"], ["updated_at", "2018-12-07 01:51:19.388219"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8038], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10699], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10699], ["room_id", 8038], ["created_at", "2018-12-07 01:51:19.390924"], ["updated_at", "2018-12-07 01:51:19.390924"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.2ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Vx09B.IZQRNVgQV1UKsN9O0oH0sfhzCVmeZQEU5rsuCyBcUstCvWm"], ["created_at", "2018-12-07 01:51:19.413694"], ["updated_at", "2018-12-07 01:51:19.413694"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.415273"], ["updated_at", "2018-12-07 01:51:19.415273"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.422202"], ["last_sign_in_at", "2018-12-07 01:51:19.422202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.422604"], ["id", 10700]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8039"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8039 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8039], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10700], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10700], ["room_id", 8039], ["created_at", "2018-12-07 01:51:19.431216"], ["updated_at", "2018-12-07 01:51:19.431216"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8039], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GzqR7RH3WWEIjzuXLa43fOxxQ3njIieK2DTbfWVJnc/R7io7/eQ5m"], ["created_at", "2018-12-07 01:51:19.437275"], ["updated_at", "2018-12-07 01:51:19.437275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.438744"], ["updated_at", "2018-12-07 01:51:19.438744"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.440528"], ["last_sign_in_at", "2018-12-07 01:51:19.440528"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.440889"], ["id", 10701]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8040"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8040 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8040], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10701], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10701], ["room_id", 8040], ["created_at", "2018-12-07 01:51:19.445242"], ["updated_at", "2018-12-07 01:51:19.445242"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i6G7qe0pfCgkWY5xO1U3M.TEoP8nTIFoid27kQ7qH6zZcNva3GdbW"], ["created_at", "2018-12-07 01:51:19.450355"], ["updated_at", "2018-12-07 01:51:19.450355"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.451812"], ["updated_at", "2018-12-07 01:51:19.451812"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.453859"], ["last_sign_in_at", "2018-12-07 01:51:19.453859"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.454202"], ["id", 10702]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8041", "user_id"=>"10702"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8041 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8041], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10702], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10702], ["room_id", 8041], ["created_at", "2018-12-07 01:51:19.459590"], ["updated_at", "2018-12-07 01:51:19.459590"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8041", "user_id"=>"10702"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10702], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8041 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8041], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10702], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10702], ["room_id", 8041], ["created_at", "2018-12-07 01:51:19.466200"], ["updated_at", "2018-12-07 01:51:19.466200"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6Zy.Ip/yr5OzMuSCuAcBe.UEToZyjE5tUy2AzuhKS6dG4qOg111CC"], ["created_at", "2018-12-07 01:51:19.471903"], ["updated_at", "2018-12-07 01:51:19.471903"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.473428"], ["updated_at", "2018-12-07 01:51:19.473428"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.475535"], ["last_sign_in_at", "2018-12-07 01:51:19.475535"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.475897"], ["id", 10703]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8042", "user_id"=>"10703"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8042 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8042], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10703], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10703], ["room_id", 8042], ["created_at", "2018-12-07 01:51:19.480261"], ["updated_at", "2018-12-07 01:51:19.480261"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8042", "user_id"=>"10703"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10703], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8042 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8042], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10703], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10703], ["room_id", 8042], ["created_at", "2018-12-07 01:51:19.486171"], ["updated_at", "2018-12-07 01:51:19.486171"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8042], ["user_id", 10703], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Yi6FdLc1qdBkR1kJjpZPge2UHhz2udCLaZiPejs4knylTDYlGJVni"], ["created_at", "2018-12-07 01:51:19.493914"], ["updated_at", "2018-12-07 01:51:19.493914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.495597"], ["updated_at", "2018-12-07 01:51:19.495597"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.497789"], ["last_sign_in_at", "2018-12-07 01:51:19.497789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.498155"], ["id", 10704]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8043", "user_id"=>"10704"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8043 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8043], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10704], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10704], ["room_id", 8043], ["created_at", "2018-12-07 01:51:19.502574"], ["updated_at", "2018-12-07 01:51:19.502574"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8043", "user_id"=>"10704"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10704], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8043 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8043], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10704], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10704], ["room_id", 8043], ["created_at", "2018-12-07 01:51:19.508524"], ["updated_at", "2018-12-07 01:51:19.508524"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8043], ["user_id", 10704], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LX5leuAEijSSByhCvtcz4OMzM3qJWqGeKISCivrOrKfYFl/el3N5y"], ["created_at", "2018-12-07 01:51:19.514679"], ["updated_at", "2018-12-07 01:51:19.514679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.516187"], ["updated_at", "2018-12-07 01:51:19.516187"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.518044"], ["last_sign_in_at", "2018-12-07 01:51:19.518044"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.518450"], ["id", 10705]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8044"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8044], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oHut8w5peyR5Lc1w6E71DeqrT88Tq62mGNcrZvXqmdsGzaSxeJNJ6"], ["created_at", "2018-12-07 01:51:19.526526"], ["updated_at", "2018-12-07 01:51:19.526526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.528100"], ["updated_at", "2018-12-07 01:51:19.528100"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.529928"], ["last_sign_in_at", "2018-12-07 01:51:19.529928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.530305"], ["id", 10706]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8045"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NGiTzkxuInS1Q053xOX2F.re2oyf8C0b7HennbO5mSTsdVnRmw4Ia"], ["created_at", "2018-12-07 01:51:19.537024"], ["updated_at", "2018-12-07 01:51:19.537024"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.538560"], ["updated_at", "2018-12-07 01:51:19.538560"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8046], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10707], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10707], ["room_id", 8046], ["created_at", "2018-12-07 01:51:19.541463"], ["updated_at", "2018-12-07 01:51:19.541463"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8046” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.543013"], ["last_sign_in_at", "2018-12-07 01:51:19.543013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.543379"], ["id", 10707]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8046"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8046], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8046')
Rendered appointments/show.html.erb within layouts/application (7.0ms)
Rendered layouts/_header-user.html.erb (3.2ms)

Completed 200 OK in 155ms (Views: 153.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MpxuXd9XRrUJ9mKTn3198uGG5PKExn0.t75O5pFGM3O/H4GrI99n."], ["created_at", "2018-12-07 01:51:19.706749"], ["updated_at", "2018-12-07 01:51:19.706749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.709938"], ["updated_at", "2018-12-07 01:51:19.709938"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8047], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10708], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10708], ["room_id", 8047], ["created_at", "2018-12-07 01:51:19.717262"], ["updated_at", "2018-12-07 01:51:19.717262"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4164/edit” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.720652"], ["last_sign_in_at", "2018-12-07 01:51:19.720652"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.721115"], ["id", 10708]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4164"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4164], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 12ms (Views: 9.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1TALBBjLVRyBHv6Y4VHXD.pQ4LugXzOzpNFBj994fRBN/PI6IOilC"], ["created_at", "2018-12-07 01:51:19.742912"], ["updated_at", "2018-12-07 01:51:19.742912"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.745318"], ["last_sign_in_at", "2018-12-07 01:51:19.745318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.746131"], ["id", 10709]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.9ms)

Completed 200 OK in 10ms (Views: 9.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Tuqo2c3wJ5mS7M9VpOSxaO38dSTQxSp1EK1TUSOVoBELzJEo/.LoO"], ["created_at", "2018-12-07 01:51:19.771111"], ["updated_at", "2018-12-07 01:51:19.771111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.774407"], ["updated_at", "2018-12-07 01:51:19.774407"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8048], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10710], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10710], ["room_id", 8048], ["created_at", "2018-12-07 01:51:19.780085"], ["updated_at", "2018-12-07 01:51:19.780085"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8048], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10710], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10710], ["room_id", 8048], ["created_at", "2018-12-07 01:51:19.785574"], ["updated_at", "2018-12-07 01:51:19.785574"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.788549"], ["last_sign_in_at", "2018-12-07 01:51:19.788549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.789075"], ["id", 10710]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10710]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 24ms (Views: 15.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Gs3eVa/KBiMo6YuSEtbMYeKfMllCjr30AGi7yIr6a7Tgofl.Ivd7e"], ["created_at", "2018-12-07 01:51:19.821605"], ["updated_at", "2018-12-07 01:51:19.821605"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.824114"], ["updated_at", "2018-12-07 01:51:19.824114"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8049], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10711], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10711], ["room_id", 8049], ["created_at", "2018-12-07 01:51:19.828638"], ["updated_at", "2018-12-07 01:51:19.828638"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8049], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10711], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10711], ["room_id", 8049], ["created_at", "2018-12-07 01:51:19.832323"], ["updated_at", "2018-12-07 01:51:19.832323"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.834158"], ["last_sign_in_at", "2018-12-07 01:51:19.834158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.834614"], ["id", 10711]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10711]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KZJ.WUuUBynqbCHgMcEcf.Yw6lxufb4Ft1.sjDPuxO3atprsYao0O"], ["created_at", "2018-12-07 01:51:19.845442"], ["updated_at", "2018-12-07 01:51:19.845442"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.847283"], ["updated_at", "2018-12-07 01:51:19.847283"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8050], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10712], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10712], ["room_id", 8050], ["created_at", "2018-12-07 01:51:19.850640"], ["updated_at", "2018-12-07 01:51:19.850640"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4169” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.852296"], ["last_sign_in_at", "2018-12-07 01:51:19.852296"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.852674"], ["id", 10712]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4169"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4169], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4169]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DebFlJoBhWv25dz5qKkB.Ot8uA7OO/wDHiyUI0l.2LcoMvV0goGPa"], ["created_at", "2018-12-07 01:51:19.863399"], ["updated_at", "2018-12-07 01:51:19.863399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.865175"], ["updated_at", "2018-12-07 01:51:19.865175"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7W5T3xKgI3.B4aRD.KmpDOOxd1K7U4FWJC0sv.lVoQ9MJWgZJHEa6"], ["created_at", "2018-12-07 01:51:19.868594"], ["updated_at", "2018-12-07 01:51:19.868594"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8051], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10714], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10714], ["room_id", 8051], ["created_at", "2018-12-07 01:51:19.871766"], ["updated_at", "2018-12-07 01:51:19.871766"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4170” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.873672"], ["last_sign_in_at", "2018-12-07 01:51:19.873672"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.874055"], ["id", 10713]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4170"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4170], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8051], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10714], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cROTpdpMDmxp9u8S9aE4Lu2jaubjYl3xN.Tx6kNWIJlBNHN8oHNaG"], ["created_at", "2018-12-07 01:51:19.883837"], ["updated_at", "2018-12-07 01:51:19.883837"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.885404"], ["updated_at", "2018-12-07 01:51:19.885404"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$J9cDVz7FsEsHte7bkQ6dyusRBgUfNtavR4i55J23ykXS.0U2Y/kwa"], ["created_at", "2018-12-07 01:51:19.888938"], ["updated_at", "2018-12-07 01:51:19.888938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8052], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10716], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10716], ["room_id", 8052], ["created_at", "2018-12-07 01:51:19.892829"], ["updated_at", "2018-12-07 01:51:19.892829"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4171” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.894835"], ["last_sign_in_at", "2018-12-07 01:51:19.894835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.895209"], ["id", 10715]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4171"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4171], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8052], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10716], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xl.y3Sfxwj878HuVL5h1zuP1V5ybdfsONT4Qwwk3WKVezDX.gVbVK"], ["created_at", "2018-12-07 01:51:19.904130"], ["updated_at", "2018-12-07 01:51:19.904130"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.905718"], ["updated_at", "2018-12-07 01:51:19.905718"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7N8SLMfxoaegAwieDh2he.3b7GvHbVrBo.i56SLxQI52hI/8oYaDu"], ["created_at", "2018-12-07 01:51:19.908904"], ["updated_at", "2018-12-07 01:51:19.908904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8053], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10718], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10718], ["room_id", 8053], ["created_at", "2018-12-07 01:51:19.911920"], ["updated_at", "2018-12-07 01:51:19.911920"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4172” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.913813"], ["last_sign_in_at", "2018-12-07 01:51:19.913813"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.914208"], ["id", 10717]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4172"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4172], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8053], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10718], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:51:19.918586"], ["id", 4172]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.1ms Sent mail to 123@123.com (2.4ms) Date: Thu, 06 Dec 2018 23:51:19 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d217e15d1_47522ac99b1de5f4710eb@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d217e0fe5_47522ac99b1de5f470933";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d217e0fe5_47522ac99b1de5f470933 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d217e0fe5_47522ac99b1de5f470933 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d217e0fe5_47522ac99b1de5f470933–

Completed 302 Found in 9ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Si/uudF5xvwPVDD0FCJwhuBB66thF7P3XuDn0Dgih1/f9YzUhrD2q"], ["created_at", "2018-12-07 01:51:19.929782"], ["updated_at", "2018-12-07 01:51:19.929782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.931411"], ["updated_at", "2018-12-07 01:51:19.931411"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4z6Zq21T2sap/t8i0dKM2eUUNuzjnCNxBpmNWtxDcKRA5r7.sviM6"], ["created_at", "2018-12-07 01:51:19.934499"], ["updated_at", "2018-12-07 01:51:19.934499"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8054], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10720], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10720], ["room_id", 8054], ["created_at", "2018-12-07 01:51:19.937498"], ["updated_at", "2018-12-07 01:51:19.937498"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:51:19.938930"], ["id", 4173]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8054], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10720], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10720], ["room_id", 8054], ["created_at", "2018-12-07 01:51:19.941594"], ["updated_at", "2018-12-07 01:51:19.941594"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:51:19.942876"], ["id", 4174]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.944282"], ["last_sign_in_at", "2018-12-07 01:51:19.944282"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.944633"], ["id", 10719]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10720], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8054], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10720], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8054], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/jFNmBz3QtkNE1s1syfEdu9lcekDoUbLOaCQearPzmc3bE//totnS"], ["created_at", "2018-12-07 01:51:19.958868"], ["updated_at", "2018-12-07 01:51:19.958868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:19.960573"], ["updated_at", "2018-12-07 01:51:19.960573"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VlTtFVRDnbfFHqYZ28RxFeuwJBBXwMwnW4/yzeCAJET4gNj7Qt.DC"], ["created_at", "2018-12-07 01:51:19.963673"], ["updated_at", "2018-12-07 01:51:19.963673"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8055], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10722], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10722], ["room_id", 8055], ["created_at", "2018-12-07 01:51:19.966805"], ["updated_at", "2018-12-07 01:51:19.966805"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:51:19.968196"], ["id", 4175]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8055], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10722], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10722], ["room_id", 8055], ["created_at", "2018-12-07 01:51:19.970862"], ["updated_at", "2018-12-07 01:51:19.970862"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:51:19.972135"], ["id", 4176]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.973514"], ["last_sign_in_at", "2018-12-07 01:51:19.973514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.973892"], ["id", 10721]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10722], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8055], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10722], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8055], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NdqDLtHG6h6aDP64NUq4b.qk9tGEUS6m8xOgCMJXvBHAWjxZaFdtm"], ["created_at", "2018-12-07 01:51:19.987105"], ["updated_at", "2018-12-07 01:51:19.987105"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:51:19 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:19.988878"], ["last_sign_in_at", "2018-12-07 01:51:19.988878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:19.989229"], ["id", 10723]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tWr/bFxiAaGSY3kVI/s6MuwhDwuCNvOORLhO8mrqZZsmFN/vSRfJ2"], ["created_at", "2018-12-07 01:51:20.002268"], ["updated_at", "2018-12-07 01:51:20.002268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.003958"], ["last_sign_in_at", "2018-12-07 01:51:20.003958"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.004299"], ["id", 10724]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dGeer.UN82jz1KvxGQkQLujT4dlRJjHVP.lCHuPEAo6chgNYv9B2m"], ["created_at", "2018-12-07 01:51:20.010206"], ["updated_at", "2018-12-07 01:51:20.010206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.011800"], ["last_sign_in_at", "2018-12-07 01:51:20.011800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.012135"], ["id", 10725]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P0Y9BZ1XObHnBUxE26AEHOrITi27XK/zVJSAu.TK.yta8hwcDwp/m"], ["created_at", "2018-12-07 01:51:20.022756"], ["updated_at", "2018-12-07 01:51:20.022756"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.024387"], ["last_sign_in_at", "2018-12-07 01:51:20.024387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.024751"], ["id", 10726]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LffcvlpfksnZpGqWSeKqBeww0Hs65kae1EpzED6UG.PwoNh3jklHW"], ["created_at", "2018-12-07 01:51:20.038650"], ["updated_at", "2018-12-07 01:51:20.038650"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.040233"], ["updated_at", "2018-12-07 01:51:20.040233"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8056” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.041624"], ["last_sign_in_at", "2018-12-07 01:51:20.041624"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.041985"], ["id", 10727]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8056"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8056], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4KRF1sZA5bE/GxtsOpcDH.4vUY968fMUarqvblfD8qyrqazyf25q6"], ["created_at", "2018-12-07 01:51:20.051766"], ["updated_at", "2018-12-07 01:51:20.051766"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.053359"], ["updated_at", "2018-12-07 01:51:20.053359"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8057” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.054841"], ["last_sign_in_at", "2018-12-07 01:51:20.054841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.055232"], ["id", 10728]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8057"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8057], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.061712"], ["updated_at", "2018-12-07 01:51:20.061712"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8058” for 127.0.0.1 at 2018-12-06 23:51:20 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8058"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AU/oNodvt7ITHlUQDG8JwuGHL0/jFnMyU8jin81WIbimGQLonUIka"], ["created_at", "2018-12-07 01:51:20.067893"], ["updated_at", "2018-12-07 01:51:20.067893"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.069537"], ["updated_at", "2018-12-07 01:51:20.069537"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8059” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.070997"], ["last_sign_in_at", "2018-12-07 01:51:20.070997"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.071415"], ["id", 10729]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8059"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.080336"], ["updated_at", "2018-12-07 01:51:20.080336"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8060” for 127.0.0.1 at 2018-12-06 23:51:20 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8060"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CAbg7/4HnrqXDfQMT4Fnze3Ysx4oyQBFI7bdmE1emHoYsMXItqR1K"], ["created_at", "2018-12-07 01:51:20.086853"], ["updated_at", "2018-12-07 01:51:20.086853"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.088485"], ["updated_at", "2018-12-07 01:51:20.088485"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8061/edit” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.089961"], ["last_sign_in_at", "2018-12-07 01:51:20.089961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.090401"], ["id", 10730]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8061"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8061], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yL87eBHJsxBbVyIrt.flXO2yBwZobtfutMta.TMOn/4kMYSdhhCxO"], ["created_at", "2018-12-07 01:51:20.101167"], ["updated_at", "2018-12-07 01:51:20.101167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.102770"], ["updated_at", "2018-12-07 01:51:20.102770"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8062/edit” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.104191"], ["last_sign_in_at", "2018-12-07 01:51:20.104191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.104572"], ["id", 10731]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8062"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8062], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.113238"], ["updated_at", "2018-12-07 01:51:20.113238"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8063” for 127.0.0.1 at 2018-12-06 23:51:20 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8063"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6bpwJj4m3za70papV0olRuy9fplR/OzOWazG7iBaZA7Tumsq5S3Re"], ["created_at", "2018-12-07 01:51:20.119653"], ["updated_at", "2018-12-07 01:51:20.119653"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.121705"], ["last_sign_in_at", "2018-12-07 01:51:20.121705"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.122053"], ["id", 10732]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.124506"], ["updated_at", "2018-12-07 01:51:20.124506"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3ly2Dw.iH.cvMyyvwJ6c/.t5JLqaVExNk4IFoRGv3JYCn4mJwGjK6"], ["created_at", "2018-12-07 01:51:20.130200"], ["updated_at", "2018-12-07 01:51:20.130200"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.132230"], ["last_sign_in_at", "2018-12-07 01:51:20.132230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.132576"], ["id", 10733]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.134913"], ["updated_at", "2018-12-07 01:51:20.134913"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2yaO1Mx2C84rOekIN8xeM.XM.jRA5AyjRYh9fXbb1vtcQqLRJ5laO"], ["created_at", "2018-12-07 01:51:20.140312"], ["updated_at", "2018-12-07 01:51:20.140312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.142944"], ["last_sign_in_at", "2018-12-07 01:51:20.142944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.143353"], ["id", 10734]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dCeZKSUnZTh0oIKiYNqVs.8WYJkVBSwki14NEtlhtDSbEIQ7QLfIq"], ["created_at", "2018-12-07 01:51:20.151288"], ["updated_at", "2018-12-07 01:51:20.151288"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.153387"], ["last_sign_in_at", "2018-12-07 01:51:20.153387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.153736"], ["id", 10735]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$I1vX5N1Q4CqrXXe5LR859u12BJpX0eLF4jRX5ypK2gK5t/9g/.qlW"], ["created_at", "2018-12-07 01:51:20.161148"], ["updated_at", "2018-12-07 01:51:20.161148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.163141"], ["last_sign_in_at", "2018-12-07 01:51:20.163141"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.163490"], ["id", 10736]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2czpuoes4At4MQmLVWox6OzpQA9Lzj.coqYM56rF61VtR3LS8xgtq"], ["created_at", "2018-12-07 01:51:20.169434"], ["updated_at", "2018-12-07 01:51:20.169434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.171346"], ["updated_at", "2018-12-07 01:51:20.171346"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8066” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.173699"], ["last_sign_in_at", "2018-12-07 01:51:20.173699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.174216"], ["id", 10737]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8066"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8066], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:51:20.177618"], ["id", 8066]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8066 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Dq1PRHy.Y5.vrbLDnYh2VeJs7KZ7bJR70mUmo9yCjMbjximxoohiW"], ["created_at", "2018-12-07 01:51:20.183493"], ["updated_at", "2018-12-07 01:51:20.183493"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.185073"], ["updated_at", "2018-12-07 01:51:20.185073"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8067” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.186911"], ["last_sign_in_at", "2018-12-07 01:51:20.186911"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.187353"], ["id", 10738]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8067"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8067], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:51:20.190356"], ["id", 8067]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8067 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hMS6P13O3VhwYfU6n8A.yew5XvwcjRZEg6ERMJjK5z.Ia77SIJhta"], ["created_at", "2018-12-07 01:51:20.195696"], ["updated_at", "2018-12-07 01:51:20.195696"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.197311"], ["updated_at", "2018-12-07 01:51:20.197311"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8068” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.199146"], ["last_sign_in_at", "2018-12-07 01:51:20.199146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.199564"], ["id", 10739]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8068"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8068], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Vmjjeq6Buw/5VFGoFMHFfezXw4k.K0KnNxyDd8k18viwv2M7ovoGa"], ["created_at", "2018-12-07 01:51:20.212019"], ["updated_at", "2018-12-07 01:51:20.212019"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.213779"], ["updated_at", "2018-12-07 01:51:20.213779"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8069” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.215633"], ["last_sign_in_at", "2018-12-07 01:51:20.215633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.216073"], ["id", 10740]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8069"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8069], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iBHns5s2Q4ox1Dp4pnEq8u11LCIIsSXNfLFiz8RXcl0Z2tTbWFTei"], ["created_at", "2018-12-07 01:51:20.227317"], ["updated_at", "2018-12-07 01:51:20.227317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.229395"], ["last_sign_in_at", "2018-12-07 01:51:20.229395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.229739"], ["id", 10741]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VYfTqN/OkZKEw21Z0lO/.egSGot5dpQHy3I3Lmz43GJ9o8c0wwqv6"], ["created_at", "2018-12-07 01:51:20.236484"], ["updated_at", "2018-12-07 01:51:20.236484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.238334"], ["updated_at", "2018-12-07 01:51:20.238334"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8070” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.239887"], ["last_sign_in_at", "2018-12-07 01:51:20.239887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.240336"], ["id", 10742]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8070"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8070], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8070]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mEtJAtXfA6JqJRO2Q8zrdOGWApQ8tDt1OwXLnYCFemQc2b4id7bgW"], ["created_at", "2018-12-07 01:51:20.248357"], ["updated_at", "2018-12-07 01:51:20.248357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.249909"], ["updated_at", "2018-12-07 01:51:20.249909"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8071” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.251345"], ["last_sign_in_at", "2018-12-07 01:51:20.251345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.251761"], ["id", 10743]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8071"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8071], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8071]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2cM.5zmXrfFtgegOIWDgJOpyYoRKILsldirkia4E/RXlLksTIUXJ."], ["created_at", "2018-12-07 01:51:20.259188"], ["updated_at", "2018-12-07 01:51:20.259188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.260799"], ["updated_at", "2018-12-07 01:51:20.260799"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8072” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.262267"], ["last_sign_in_at", "2018-12-07 01:51:20.262267"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.262683"], ["id", 10744]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8072"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5PUXl0D5mJ6xapkPODE2luDOjlFmSQAiYsjefylr0Na.Ghc8MuwKi"], ["created_at", "2018-12-07 01:51:20.269797"], ["updated_at", "2018-12-07 01:51:20.269797"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.271672"], ["updated_at", "2018-12-07 01:51:20.271672"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8073” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.273228"], ["last_sign_in_at", "2018-12-07 01:51:20.273228"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.273652"], ["id", 10745]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8073"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gjaIgmbkaRm2FNkOHna3.udmexGXdMyIATG0jebzujeeYQw4wNKvm"], ["created_at", "2018-12-07 01:51:20.279916"], ["updated_at", "2018-12-07 01:51:20.279916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.281582"], ["last_sign_in_at", "2018-12-07 01:51:20.281582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.281923"], ["id", 10746]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aHQCuAM9HWuSqc/SgQ/hPu1iHurwLU6NQRqsqNPe2F2TwgFRSYjqG"], ["created_at", "2018-12-07 01:51:20.293433"], ["updated_at", "2018-12-07 01:51:20.293433"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.294979"], ["updated_at", "2018-12-07 01:51:20.294979"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.296238"], ["updated_at", "2018-12-07 01:51:20.296238"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.297815"], ["updated_at", "2018-12-07 01:51:20.297815"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8074], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10747], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10747], ["room_id", 8074], ["created_at", "2018-12-07 01:51:20.301214"], ["updated_at", "2018-12-07 01:51:20.301214"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.302984"], ["last_sign_in_at", "2018-12-07 01:51:20.302984"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.303383"], ["id", 10747]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EzjWe/wPpZl9/TdDcR9kaeoLhCWOEp01gkSTQkslnFGBEZNkgIVTS"], ["created_at", "2018-12-07 01:51:20.319870"], ["updated_at", "2018-12-07 01:51:20.319870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.321479"], ["updated_at", "2018-12-07 01:51:20.321479"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.322716"], ["updated_at", "2018-12-07 01:51:20.322716"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:51:20.323963"], ["updated_at", "2018-12-07 01:51:20.323963"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8077], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10748], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10748], ["room_id", 8077], ["created_at", "2018-12-07 01:51:20.326703"], ["updated_at", "2018-12-07 01:51:20.326703"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:51:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:51:20.328533"], ["last_sign_in_at", "2018-12-07 01:51:20.328533"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:51:20.328921"], ["id", 10748]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wzAABcNE4EMOWmfkJSKaHu1JsMrelrPoLeAgMHKG2XUzSv2ZwOIIG"], ["created_at", "2018-12-07 01:52:06.679835"], ["updated_at", "2018-12-07 01:52:06.679835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1dUORuP0FEwZTq0CVZbJRO.MrC73YISR.VOoSYcdX8iJc8Y6IAKdC"], ["created_at", "2018-12-07 01:52:06.685508"], ["updated_at", "2018-12-07 01:52:06.685508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:06.699778"], ["updated_at", "2018-12-07 01:52:06.699778"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8080], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10750], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10750], ["room_id", 8080], ["created_at", "2018-12-07 01:52:06.735272"], ["updated_at", "2018-12-07 01:52:06.735272"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4179"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4179], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8080], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10750], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 128.1ms Sent mail to 123@123.com (5.3ms) Date: Thu, 06 Dec 2018 23:52:06 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d246d95f9_47a42aac7b90a5f456761@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d246d8811_47a42aac7b90a5f45666d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d246d8811_47a42aac7b90a5f45666d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d246d8811_47a42aac7b90a5f45666d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d246d8811_47a42aac7b90a5f45666d–

Completed 302 Found in 148ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RIdHQfdkZJFhdiP9DQv4jO3HzAo.6yEvSUNwnkd/ej.NBHEB5Tzw2"], ["created_at", "2018-12-07 01:52:06.897292"], ["updated_at", "2018-12-07 01:52:06.897292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$thFdhAXs/rjN7AxsrQF6ce7id6B653kacrH6iQ8zkJCBwZenNvwt6"], ["created_at", "2018-12-07 01:52:06.900279"], ["updated_at", "2018-12-07 01:52:06.900279"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:06.901547"], ["updated_at", "2018-12-07 01:52:06.901547"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8081], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10752], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10752], ["room_id", 8081], ["created_at", "2018-12-07 01:52:06.904195"], ["updated_at", "2018-12-07 01:52:06.904195"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4180"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4180], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8081], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10752], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:52:06.908797"], ["id", 4180]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:52:06 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d246ded6f_47a42aac7b90a5f45695e@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d246de7fc_47a42aac7b90a5f4568e6";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d246de7fc_47a42aac7b90a5f4568e6 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d246de7fc_47a42aac7b90a5f4568e6 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d246de7fc_47a42aac7b90a5f4568e6–

Completed 302 Found in 9ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JhaR4Z69b8DkME4BwVvzI.Wa.oEFu2aQZ4dkuhzG/jWTFij..3Tja"], ["created_at", "2018-12-07 01:52:06.918191"], ["updated_at", "2018-12-07 01:52:06.918191"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jpGR2/q6nuh2fXMGWUW.M.W0z4q.BUCdO8XSV2JU35vTk3sdx4Ew."], ["created_at", "2018-12-07 01:52:06.921515"], ["updated_at", "2018-12-07 01:52:06.921515"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:06.923167"], ["updated_at", "2018-12-07 01:52:06.923167"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8082], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10754], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10754], ["room_id", 8082], ["created_at", "2018-12-07 01:52:06.926604"], ["updated_at", "2018-12-07 01:52:06.926604"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rKtJOfh9kZVoZlhUDtQ9bOhaYqF.UuFL5NbCM6HeaYkOzLnX8K52i"], ["created_at", "2018-12-07 01:52:06.933113"], ["updated_at", "2018-12-07 01:52:06.933113"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Op.N0EU2T48UXNlGhCVN.ufZul/4W76JtL.mww/oINw7h1Vchv43K"], ["created_at", "2018-12-07 01:52:06.936383"], ["updated_at", "2018-12-07 01:52:06.936383"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:06.937719"], ["updated_at", "2018-12-07 01:52:06.937719"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8083], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10756], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10756], ["room_id", 8083], ["created_at", "2018-12-07 01:52:06.940553"], ["updated_at", "2018-12-07 01:52:06.940553"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4182], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Hg1w5LM22LdVcJOAnf/4vOFB68LEeUE3tO4.AXPPQC1teDx0gROuq"], ["created_at", "2018-12-07 01:52:06.945779"], ["updated_at", "2018-12-07 01:52:06.945779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10757"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "jbo17oE_Pqu7fuhAB5wLAw"], ["updated_at", "2018-12-07 01:52:06.948939"], ["id", 10757]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:52:06.950406"], ["reset_sent_at", "2018-12-07 01:52:06.950064"], ["id", 10757]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.6ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:52:06 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d246e9dfe_47a42aac7b90a5f45724c@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d246e981f_47a42aac7b90a5f457187";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d246e981f_47a42aac7b90a5f457187 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/jbo17oE_Pqu7fuhAB5wLAw/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d246e981f_47a42aac7b90a5f457187 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/jbo17oE_Pqu7fuhAB5wLAw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d246e981f_47a42aac7b90a5f457187–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$pxYTQBm3LyJZJYvflZJof.CkB69wnfUf/.SFxcOHTR7WHExXeCiuq"], ["created_at", "2018-12-07 01:52:06.963598"], ["updated_at", "2018-12-07 01:52:06.963598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$DY/sJJZX6jGATG3WdP7wueNuMZaQPKN2RYizqkcca0cDjrfRvs9o."], ["created_at", "2018-12-07 01:52:06.970813"], ["updated_at", "2018-12-07 01:52:06.970813"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10759"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$h337fXK.mMMpuFQjx6wc7.Yp/Fl4mZ4ujAd4/1Zzr0ZjgOngMi8u."], ["updated_at", "2018-12-07 01:52:06.974791"], ["id", 10759]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$LsrM13CcLoSCZgL5O8pw9OL2QuJSOERG.rZwj6a.JYoIwmoMgdJci"], ["created_at", "2018-12-07 01:52:06.979503"], ["updated_at", "2018-12-07 01:52:06.979503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10760"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$YmFNHn8Gmuuy1YjXfDCKS.3OG9JbyuMJnZl60.1RR8KUVQa5tlr2y"], ["created_at", "2018-12-07 01:52:06.987559"], ["updated_at", "2018-12-07 01:52:06.987559"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10761"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$D9M7qpvhHMYvu2m9P40fgeltDhQag1Dhxbl981FQP5uidWo5SdHqG"], ["created_at", "2018-12-07 01:52:07.001066"], ["updated_at", "2018-12-07 01:52:07.001066"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10762"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ZF2GXU7kpKMnpc/wAqWNv.rEg4pBkkB0ghpq.X74.p8pmyXU8KWW2"], ["created_at", "2018-12-07 01:52:07.009477"], ["updated_at", "2018-12-07 01:52:07.009477"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10763"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NmA8kthkCo1t5j/smTEtiuhsn/rIcvvaWYoaV.fEPr4QbaRnM3qGm"], ["created_at", "2018-12-07 01:52:07.017003"], ["updated_at", "2018-12-07 01:52:07.017003"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2Yj0iB2a5S7NYmQ7wjg2u.JFQeRQhJCV5t77lQQqxP2CDXYnQ5.o."], ["created_at", "2018-12-07 01:52:07.024366"], ["updated_at", "2018-12-07 01:52:07.024366"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JDDbswNuzx2fqR.yK8XLHOOkNvNlSJnwMhrqnkXL8e0wn0usQ5.oW"], ["created_at", "2018-12-07 01:52:07.031136"], ["updated_at", "2018-12-07 01:52:07.031136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.032631"], ["updated_at", "2018-12-07 01:52:07.032631"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8084], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10766], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10766], ["room_id", 8084], ["created_at", "2018-12-07 01:52:07.035481"], ["updated_at", "2018-12-07 01:52:07.035481"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xUlnVr9vwInnHR9/TzulveivNpy7spIlpGGY/d9csmvtj73Eb65wq"], ["created_at", "2018-12-07 01:52:07.041687"], ["updated_at", "2018-12-07 01:52:07.041687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.043228"], ["updated_at", "2018-12-07 01:52:07.043228"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8085], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10767], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10767], ["room_id", 8085], ["created_at", "2018-12-07 01:52:07.046185"], ["updated_at", "2018-12-07 01:52:07.046185"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/IONXI0dmnkNAORatDKwQ..V.OqGZZkOe6JPIG0c0UYxg7MwJ4Mxy"], ["created_at", "2018-12-07 01:52:07.068664"], ["updated_at", "2018-12-07 01:52:07.068664"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.070264"], ["updated_at", "2018-12-07 01:52:07.070264"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.077196"], ["last_sign_in_at", "2018-12-07 01:52:07.077196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.077635"], ["id", 10768]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8086"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8086 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8086], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10768], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10768], ["room_id", 8086], ["created_at", "2018-12-07 01:52:07.086158"], ["updated_at", "2018-12-07 01:52:07.086158"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8086], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ywwi5eXv1BgFQI8GL3aX/uem4Ah4Z75ulWZTAbgHimq83RaXJ4ViO"], ["created_at", "2018-12-07 01:52:07.092292"], ["updated_at", "2018-12-07 01:52:07.092292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.093774"], ["updated_at", "2018-12-07 01:52:07.093774"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.095632"], ["last_sign_in_at", "2018-12-07 01:52:07.095632"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.096050"], ["id", 10769]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8087"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8087 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8087], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10769], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10769], ["room_id", 8087], ["created_at", "2018-12-07 01:52:07.100588"], ["updated_at", "2018-12-07 01:52:07.100588"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IGe7eblZyIqYnUKO4B2TfOg1EJirEQDXwZsVZVetofe9QnyT3u5TK"], ["created_at", "2018-12-07 01:52:07.105800"], ["updated_at", "2018-12-07 01:52:07.105800"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.107268"], ["updated_at", "2018-12-07 01:52:07.107268"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.109389"], ["last_sign_in_at", "2018-12-07 01:52:07.109389"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.109822"], ["id", 10770]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8088", "user_id"=>"10770"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8088 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8088], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10770], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10770], ["room_id", 8088], ["created_at", "2018-12-07 01:52:07.115290"], ["updated_at", "2018-12-07 01:52:07.115290"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8088", "user_id"=>"10770"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10770], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8088 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ub3M0u2XT/VHVN/STz.XxeqwYcle.Va9vsP3z1aX5Htltv1hY/q6a"], ["created_at", "2018-12-07 01:52:07.133072"], ["updated_at", "2018-12-07 01:52:07.133072"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.134642"], ["updated_at", "2018-12-07 01:52:07.134642"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.136768"], ["last_sign_in_at", "2018-12-07 01:52:07.136768"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.137177"], ["id", 10771]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8089", "user_id"=>"10771"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8089 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8089], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10771], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10771], ["room_id", 8089], ["created_at", "2018-12-07 01:52:07.141783"], ["updated_at", "2018-12-07 01:52:07.141783"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8089", "user_id"=>"10771"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10771], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8089 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eBisKN1Jtr097elk8b3ymOU5GpLpwW.W64WPexijPZ1VSoDvg9FpC"], ["created_at", "2018-12-07 01:52:07.160291"], ["updated_at", "2018-12-07 01:52:07.160291"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.161946"], ["updated_at", "2018-12-07 01:52:07.161946"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.164098"], ["last_sign_in_at", "2018-12-07 01:52:07.164098"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.164506"], ["id", 10772]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8090", "user_id"=>"10772"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8090 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8090], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10772], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10772], ["room_id", 8090], ["created_at", "2018-12-07 01:52:07.168993"], ["updated_at", "2018-12-07 01:52:07.168993"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8090", "user_id"=>"10772"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10772], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8090 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4YnmMzI.blXiFXohqM4XjueU0A.3rA57BCm05jrXdsj5vdLimvdgO"], ["created_at", "2018-12-07 01:52:07.187332"], ["updated_at", "2018-12-07 01:52:07.187332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.188875"], ["updated_at", "2018-12-07 01:52:07.188875"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.190701"], ["last_sign_in_at", "2018-12-07 01:52:07.190701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.191122"], ["id", 10773]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8091"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8091], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HNAEI7KxkyAnllvary7nFODYTldTpTdAiQo4GTOuezOgqam0lgP0u"], ["created_at", "2018-12-07 01:52:07.198249"], ["updated_at", "2018-12-07 01:52:07.198249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.199779"], ["updated_at", "2018-12-07 01:52:07.199779"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.201540"], ["last_sign_in_at", "2018-12-07 01:52:07.201540"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.201921"], ["id", 10774]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8092"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QP3nnnsduUURl.S1W9epm.dX9rkbdEKqRZ3.7T4pN9c/j5NkSNxzW"], ["created_at", "2018-12-07 01:52:07.209464"], ["updated_at", "2018-12-07 01:52:07.209464"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.210983"], ["updated_at", "2018-12-07 01:52:07.210983"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8093], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10775], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10775], ["room_id", 8093], ["created_at", "2018-12-07 01:52:07.213490"], ["updated_at", "2018-12-07 01:52:07.213490"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8093” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.214923"], ["last_sign_in_at", "2018-12-07 01:52:07.214923"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.215225"], ["id", 10775]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8093"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8093], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8093')
Rendered appointments/show.html.erb within layouts/application (6.8ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 152ms (Views: 150.9ms | ActiveRecord: 0.3ms)

 (0.7ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$t/bXPT8Eqblr.UFAc/1NRem84Rx3NqXMUHlGJBiL99cZ9TK1L7Iqa"], ["created_at", "2018-12-07 01:52:07.375705"], ["updated_at", "2018-12-07 01:52:07.375705"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.378031"], ["updated_at", "2018-12-07 01:52:07.378031"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (1.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8094], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10776], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10776], ["room_id", 8094], ["created_at", "2018-12-07 01:52:07.385410"], ["updated_at", "2018-12-07 01:52:07.385410"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4191/edit” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.8ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.387984"], ["last_sign_in_at", "2018-12-07 01:52:07.387984"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.388956"], ["id", 10776]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4191"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4191], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 10ms (Views: 8.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$N3TbQNskNrBuYTuhVFabEuz5Sk87tQDljlWxa5kv0EK41W2ix0aHO"], ["created_at", "2018-12-07 01:52:07.408531"], ["updated_at", "2018-12-07 01:52:07.408531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.411126"], ["last_sign_in_at", "2018-12-07 01:52:07.411126"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.411495"], ["id", 10777]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 15ms (Views: 13.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.5ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eRgpvXy42nT7NUFySrr9yuQn1LHGX04ckbmnTwB3kCQgwjFv6wt7O"], ["created_at", "2018-12-07 01:52:07.437095"], ["updated_at", "2018-12-07 01:52:07.437095"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.439902"], ["updated_at", "2018-12-07 01:52:07.439902"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8095], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10778], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10778], ["room_id", 8095], ["created_at", "2018-12-07 01:52:07.444916"], ["updated_at", "2018-12-07 01:52:07.444916"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8095], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10778], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10778], ["room_id", 8095], ["created_at", "2018-12-07 01:52:07.449066"], ["updated_at", "2018-12-07 01:52:07.449066"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.451064"], ["last_sign_in_at", "2018-12-07 01:52:07.451064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.451772"], ["id", 10778]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10778]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 4.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CdaMVVOuyrfxzN5.GQfNgOKXsXPNtLzWOhT5tLO9FjvKZ3idxM62a"], ["created_at", "2018-12-07 01:52:07.479280"], ["updated_at", "2018-12-07 01:52:07.479280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.480942"], ["updated_at", "2018-12-07 01:52:07.480942"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8096], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10779], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10779], ["room_id", 8096], ["created_at", "2018-12-07 01:52:07.484025"], ["updated_at", "2018-12-07 01:52:07.484025"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8096], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10779], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10779], ["room_id", 8096], ["created_at", "2018-12-07 01:52:07.486843"], ["updated_at", "2018-12-07 01:52:07.486843"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.488315"], ["last_sign_in_at", "2018-12-07 01:52:07.488315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.488651"], ["id", 10779]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10779]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MjOGQuUZAQoPzmLoqueFYunP.2aD7CVqqBc8vbmlnAtMFh8aEjQdC"], ["created_at", "2018-12-07 01:52:07.499102"], ["updated_at", "2018-12-07 01:52:07.499102"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.500699"], ["updated_at", "2018-12-07 01:52:07.500699"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8097], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10780], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10780], ["room_id", 8097], ["created_at", "2018-12-07 01:52:07.503583"], ["updated_at", "2018-12-07 01:52:07.503583"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4196” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.505061"], ["last_sign_in_at", "2018-12-07 01:52:07.505061"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.505407"], ["id", 10780]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4196"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4196], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4196]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZpwD8b5i0oALsSUl.hD.O.edFk9Y/q0eAgnJlhYI6kiPaGtA26IES"], ["created_at", "2018-12-07 01:52:07.513454"], ["updated_at", "2018-12-07 01:52:07.513454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.515047"], ["updated_at", "2018-12-07 01:52:07.515047"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mdNCDfyRrI4WMb8AAhMyGun0jI2nemtYhXygzW9gWd36ZTi8VfRqm"], ["created_at", "2018-12-07 01:52:07.518098"], ["updated_at", "2018-12-07 01:52:07.518098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8098], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10782], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10782], ["room_id", 8098], ["created_at", "2018-12-07 01:52:07.521100"], ["updated_at", "2018-12-07 01:52:07.521100"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4197” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.522982"], ["last_sign_in_at", "2018-12-07 01:52:07.522982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.523344"], ["id", 10781]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4197"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4197], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8098], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10782], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$riAI85q0fF7nhdk/MoEsbeut6Pju7uJcK6ae1ZTI/UuGxLZSe1fwS"], ["created_at", "2018-12-07 01:52:07.534147"], ["updated_at", "2018-12-07 01:52:07.534147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.535828"], ["updated_at", "2018-12-07 01:52:07.535828"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PyaRTTJ68VRH4U5UcSVyseBIlkQ5RgkMNrQKO9KnU/u0E2Ty4pfAm"], ["created_at", "2018-12-07 01:52:07.538956"], ["updated_at", "2018-12-07 01:52:07.538956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8099], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10784], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10784], ["room_id", 8099], ["created_at", "2018-12-07 01:52:07.541914"], ["updated_at", "2018-12-07 01:52:07.541914"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4198” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.543804"], ["last_sign_in_at", "2018-12-07 01:52:07.543804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.544172"], ["id", 10783]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4198"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4198], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8099], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10784], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hKVygMo87qcy/yP2H9ZXbeYxnJKdVcjUBZCNq8.ptsicg3BLHTYWK"], ["created_at", "2018-12-07 01:52:07.552923"], ["updated_at", "2018-12-07 01:52:07.552923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.554553"], ["updated_at", "2018-12-07 01:52:07.554553"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wUaUaozcWxdQ3ITbWekRj.0lQwd6qQztFdEvYdDx7tsxpfdRrt//2"], ["created_at", "2018-12-07 01:52:07.558520"], ["updated_at", "2018-12-07 01:52:07.558520"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8100], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10786], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10786], ["room_id", 8100], ["created_at", "2018-12-07 01:52:07.561859"], ["updated_at", "2018-12-07 01:52:07.561859"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4199” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.563890"], ["last_sign_in_at", "2018-12-07 01:52:07.563890"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.564257"], ["id", 10785]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4199"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4199], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8100], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10786], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:52:07.568459"], ["id", 4199]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.4ms) Date: Thu, 06 Dec 2018 23:52:07 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d2478bc04_47a42aac7b90a5f457976@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d2478b612_47a42aac7b90a5f457888";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d2478b612_47a42aac7b90a5f457888 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d2478b612_47a42aac7b90a5f457888 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d2478b612_47a42aac7b90a5f457888–

Completed 302 Found in 8ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PlqycKh8cSoi3z4pAZvkseNP0RzGlODUaw3gc75LF3YW24ecJ.2A2"], ["created_at", "2018-12-07 01:52:07.578843"], ["updated_at", "2018-12-07 01:52:07.578843"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.580448"], ["updated_at", "2018-12-07 01:52:07.580448"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$c6dAQrpnWlOSrRwh8UfLAuEwlBCNG4WRInih8uSst4vR956qEk3b2"], ["created_at", "2018-12-07 01:52:07.583680"], ["updated_at", "2018-12-07 01:52:07.583680"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8101], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10788], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10788], ["room_id", 8101], ["created_at", "2018-12-07 01:52:07.586804"], ["updated_at", "2018-12-07 01:52:07.586804"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:52:07.588469"], ["id", 4200]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8101], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10788], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10788], ["room_id", 8101], ["created_at", "2018-12-07 01:52:07.591825"], ["updated_at", "2018-12-07 01:52:07.591825"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:52:07.593127"], ["id", 4201]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.594524"], ["last_sign_in_at", "2018-12-07 01:52:07.594524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.594839"], ["id", 10787]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10788], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8101], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10788], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8101], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$i0A4nw4T7YfOOKpX5vBItep/XUi4wpkLw4LcZzg3KGUgbcTLoihqq"], ["created_at", "2018-12-07 01:52:07.607450"], ["updated_at", "2018-12-07 01:52:07.607450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.609006"], ["updated_at", "2018-12-07 01:52:07.609006"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3ETM8irhCJb0OYFizw3m6up4alZki7Gcn/T.Ac2/ya25/T1Bi1ygS"], ["created_at", "2018-12-07 01:52:07.612066"], ["updated_at", "2018-12-07 01:52:07.612066"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8102], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10790], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10790], ["room_id", 8102], ["created_at", "2018-12-07 01:52:07.614953"], ["updated_at", "2018-12-07 01:52:07.614953"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:52:07.616297"], ["id", 4202]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8102], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10790], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10790], ["room_id", 8102], ["created_at", "2018-12-07 01:52:07.619160"], ["updated_at", "2018-12-07 01:52:07.619160"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:52:07.621003"], ["id", 4203]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.622727"], ["last_sign_in_at", "2018-12-07 01:52:07.622727"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.623107"], ["id", 10789]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10790], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8102], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10790], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8102], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$btK5sPeOaNm9rOhy4BUs8e4zmpVVQm1Bhqw9fI5Rc6UZr5PpCMeFW"], ["created_at", "2018-12-07 01:52:07.635270"], ["updated_at", "2018-12-07 01:52:07.635270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.636871"], ["last_sign_in_at", "2018-12-07 01:52:07.636871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.637163"], ["id", 10791]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hMKWgcVxncVkKw2qUNTXquG80O626xJsxTDlLXsL3ahn0YI7UJiLy"], ["created_at", "2018-12-07 01:52:07.649609"], ["updated_at", "2018-12-07 01:52:07.649609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.651697"], ["last_sign_in_at", "2018-12-07 01:52:07.651697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.652294"], ["id", 10792]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EXrIGKud2Sl4FjA6ba2.GebJ7O5ewQqhYY5NK6kcr5wyGeLiSAhkm"], ["created_at", "2018-12-07 01:52:07.658749"], ["updated_at", "2018-12-07 01:52:07.658749"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.660352"], ["last_sign_in_at", "2018-12-07 01:52:07.660352"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.660699"], ["id", 10793]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iov983qGzdsjbXdsGY3LXO97elqbaCDNSjAZczMRbLjKWByUGThyu"], ["created_at", "2018-12-07 01:52:07.670103"], ["updated_at", "2018-12-07 01:52:07.670103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.671710"], ["last_sign_in_at", "2018-12-07 01:52:07.671710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.672056"], ["id", 10794]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$O/n78zEdfuegB0TqnLfhwOLrrgMONB7dNAChEw6eKHge4SzcRrfAm"], ["created_at", "2018-12-07 01:52:07.687008"], ["updated_at", "2018-12-07 01:52:07.687008"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.688628"], ["updated_at", "2018-12-07 01:52:07.688628"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8103” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.690105"], ["last_sign_in_at", "2018-12-07 01:52:07.690105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.690496"], ["id", 10795]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8103"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8103], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CSDyVwMJx2D6xr.lk74/R.tjDs8BItTDmUxyk7EngSfzWHSw05Aoy"], ["created_at", "2018-12-07 01:52:07.699394"], ["updated_at", "2018-12-07 01:52:07.699394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.700962"], ["updated_at", "2018-12-07 01:52:07.700962"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8104” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.702455"], ["last_sign_in_at", "2018-12-07 01:52:07.702455"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.702856"], ["id", 10796]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8104"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8104], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.709287"], ["updated_at", "2018-12-07 01:52:07.709287"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8105” for 127.0.0.1 at 2018-12-06 23:52:07 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8105"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J7tLIMKp8i..9vbkI4g97.VqpAoyiTjkKTDK8sBVU9HG/kRjzNU9i"], ["created_at", "2018-12-07 01:52:07.716278"], ["updated_at", "2018-12-07 01:52:07.716278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.718009"], ["updated_at", "2018-12-07 01:52:07.718009"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8106” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.719523"], ["last_sign_in_at", "2018-12-07 01:52:07.719523"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.719888"], ["id", 10797]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8106"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.727806"], ["updated_at", "2018-12-07 01:52:07.727806"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8107” for 127.0.0.1 at 2018-12-06 23:52:07 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8107"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.2N7eiCRfKOdJjGy5H/7fOdCEphtNeAeos6.Vk74eddunO5Z35WAC"], ["created_at", "2018-12-07 01:52:07.733968"], ["updated_at", "2018-12-07 01:52:07.733968"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.735593"], ["updated_at", "2018-12-07 01:52:07.735593"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8108/edit” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.736990"], ["last_sign_in_at", "2018-12-07 01:52:07.736990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.737369"], ["id", 10798]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8108"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8108], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sOU26zU9y8.40daOEDfExeZG151j41bzZhzkjQDWVGG0pGz8.lzwe"], ["created_at", "2018-12-07 01:52:07.748620"], ["updated_at", "2018-12-07 01:52:07.748620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.750344"], ["updated_at", "2018-12-07 01:52:07.750344"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8109/edit” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.751856"], ["last_sign_in_at", "2018-12-07 01:52:07.751856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.752241"], ["id", 10799]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8109"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8109], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.760080"], ["updated_at", "2018-12-07 01:52:07.760080"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8110” for 127.0.0.1 at 2018-12-06 23:52:07 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8110"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$acXdsCYWeb3owUJ4VoK1NuTPn.IJRBieYbY4QBaJK/qnaabAPVZOO"], ["created_at", "2018-12-07 01:52:07.766344"], ["updated_at", "2018-12-07 01:52:07.766344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.768448"], ["last_sign_in_at", "2018-12-07 01:52:07.768448"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.768819"], ["id", 10800]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.771374"], ["updated_at", "2018-12-07 01:52:07.771374"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zUdyGLyVFjH/dKXLFKMxguQlusCc2KS0ksoB7A.9Q4a4xWKtnZyn."], ["created_at", "2018-12-07 01:52:07.778161"], ["updated_at", "2018-12-07 01:52:07.778161"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.780469"], ["last_sign_in_at", "2018-12-07 01:52:07.780469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.780833"], ["id", 10801]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.783277"], ["updated_at", "2018-12-07 01:52:07.783277"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4U3yekyrwA8jUD5ToCuLIOGn9qf2/nMXd1cHpzkWUFDXRhuoowQdK"], ["created_at", "2018-12-07 01:52:07.788504"], ["updated_at", "2018-12-07 01:52:07.788504"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.790563"], ["last_sign_in_at", "2018-12-07 01:52:07.790563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.790913"], ["id", 10802]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cSem8VyVJerI9NzyImir/uMlXlkTGnYYu8RccZsZSXTcfP/lV603C"], ["created_at", "2018-12-07 01:52:07.798466"], ["updated_at", "2018-12-07 01:52:07.798466"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.800467"], ["last_sign_in_at", "2018-12-07 01:52:07.800467"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.800813"], ["id", 10803]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HthzmIyQMrw3UcLrPj2FxOnUGvi1O2uQfoABwDm9EvhnV/vqYow1q"], ["created_at", "2018-12-07 01:52:07.808129"], ["updated_at", "2018-12-07 01:52:07.808129"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.810994"], ["last_sign_in_at", "2018-12-07 01:52:07.810994"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.811433"], ["id", 10804]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.umpkdibtpxOZXiGOP3lSe1Uc.NAgfmWQFdHxaaB6v5bg/2cKEzYC"], ["created_at", "2018-12-07 01:52:07.817656"], ["updated_at", "2018-12-07 01:52:07.817656"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.819268"], ["updated_at", "2018-12-07 01:52:07.819268"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8113” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.821059"], ["last_sign_in_at", "2018-12-07 01:52:07.821059"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.821439"], ["id", 10805]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8113"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8113], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:52:07.824313"], ["id", 8113]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8113 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OGk3xrsusOHaThmrGrpgL.LxHvO8uxm5MsZ/vzIe49tKS2QrPhjha"], ["created_at", "2018-12-07 01:52:07.829897"], ["updated_at", "2018-12-07 01:52:07.829897"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.831477"], ["updated_at", "2018-12-07 01:52:07.831477"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8114” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.833225"], ["last_sign_in_at", "2018-12-07 01:52:07.833225"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.833590"], ["id", 10806]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8114"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8114], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:52:07.836425"], ["id", 8114]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8114 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VWtE034xIR/SH./vLNrEde1N0kWQF5vLKgFq/FvopkNEDHePWRuVC"], ["created_at", "2018-12-07 01:52:07.842494"], ["updated_at", "2018-12-07 01:52:07.842494"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.844257"], ["updated_at", "2018-12-07 01:52:07.844257"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8115” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.846093"], ["last_sign_in_at", "2018-12-07 01:52:07.846093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.846459"], ["id", 10807]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8115"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8115], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GmVMcyGUG9t1vTfdTgdVUeuGZKVqOjWS3rDerwGAKXPmgfllrSnEy"], ["created_at", "2018-12-07 01:52:07.857924"], ["updated_at", "2018-12-07 01:52:07.857924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.859673"], ["updated_at", "2018-12-07 01:52:07.859673"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8116” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.861508"], ["last_sign_in_at", "2018-12-07 01:52:07.861508"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.861950"], ["id", 10808]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8116"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8116], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ujnf875EBSk5KpS.9V17Sub7GJkq/n.M0xSEGCxI6e5gda/ZhPSnq"], ["created_at", "2018-12-07 01:52:07.874115"], ["updated_at", "2018-12-07 01:52:07.874115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.876531"], ["last_sign_in_at", "2018-12-07 01:52:07.876531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.876902"], ["id", 10809]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RMHKN0lYid6LThu6N6.ZFeqcReuLLw/8U93jx73RKrZKNr7eWigQi"], ["created_at", "2018-12-07 01:52:07.883073"], ["updated_at", "2018-12-07 01:52:07.883073"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.884596"], ["updated_at", "2018-12-07 01:52:07.884596"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8117” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.885976"], ["last_sign_in_at", "2018-12-07 01:52:07.885976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.886339"], ["id", 10810]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8117"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8117], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8117]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jT.Ly8oNF./M16CkHfj7UOLRgC8TK.yLvGxhlkRaq.ekGOkrNTn0e"], ["created_at", "2018-12-07 01:52:07.894109"], ["updated_at", "2018-12-07 01:52:07.894109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.895668"], ["updated_at", "2018-12-07 01:52:07.895668"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8118” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.897047"], ["last_sign_in_at", "2018-12-07 01:52:07.897047"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.897454"], ["id", 10811]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8118"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8118], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8118]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gZ50..g.WGDvGrdp9ncRj.vqySGd9QQvKWmXxwQSXiFzpJusbLlJe"], ["created_at", "2018-12-07 01:52:07.905518"], ["updated_at", "2018-12-07 01:52:07.905518"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.907352"], ["updated_at", "2018-12-07 01:52:07.907352"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8119” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.908806"], ["last_sign_in_at", "2018-12-07 01:52:07.908806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.909171"], ["id", 10812]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8119"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hi3/PcopX4DrpMxWa6Faa.X15cKDqZDS7u/QKc5Sqs3Kloqo1CYgK"], ["created_at", "2018-12-07 01:52:07.915438"], ["updated_at", "2018-12-07 01:52:07.915438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.916980"], ["updated_at", "2018-12-07 01:52:07.916980"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8120” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.918355"], ["last_sign_in_at", "2018-12-07 01:52:07.918355"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.918751"], ["id", 10813]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8120"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A.Xfat90K43C2JGQ4z0R4O.f5qZUJs4Sh6XCrcwZ/PbWgY02dLnFC"], ["created_at", "2018-12-07 01:52:07.924609"], ["updated_at", "2018-12-07 01:52:07.924609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.926196"], ["last_sign_in_at", "2018-12-07 01:52:07.926196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.926542"], ["id", 10814]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$11CmUD6BrwwoKmz1SGCd6OM2nB5Y4NSsgqwhjsM1ZrquSgQakxLTC"], ["created_at", "2018-12-07 01:52:07.938858"], ["updated_at", "2018-12-07 01:52:07.938858"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.940510"], ["updated_at", "2018-12-07 01:52:07.940510"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.941808"], ["updated_at", "2018-12-07 01:52:07.941808"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.943021"], ["updated_at", "2018-12-07 01:52:07.943021"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8121], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10815], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10815], ["room_id", 8121], ["created_at", "2018-12-07 01:52:07.945835"], ["updated_at", "2018-12-07 01:52:07.945835"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.947420"], ["last_sign_in_at", "2018-12-07 01:52:07.947420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.947792"], ["id", 10815]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fxg.dkqMlJt2daLCCCiyv.8JtknKFvaWGE4xCLGq9GAnzwGxO.Mo6"], ["created_at", "2018-12-07 01:52:07.963759"], ["updated_at", "2018-12-07 01:52:07.963759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.965323"], ["updated_at", "2018-12-07 01:52:07.965323"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.966759"], ["updated_at", "2018-12-07 01:52:07.966759"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:07.968571"], ["updated_at", "2018-12-07 01:52:07.968571"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8124], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10816], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10816], ["room_id", 8124], ["created_at", "2018-12-07 01:52:07.971717"], ["updated_at", "2018-12-07 01:52:07.971717"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:52:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:07.973349"], ["last_sign_in_at", "2018-12-07 01:52:07.973349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:07.973718"], ["id", 10816]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NrvJRJtJBYE2OaHQY1PnD.CmD5w.eKklWMp9Z1NItmUxM/v85Y6WO"], ["created_at", "2018-12-07 01:52:20.061648"], ["updated_at", "2018-12-07 01:52:20.061648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jg8F20BH9lqqA62nw0C58uDtIarnHKZKlYzOXPUF25KOVzRhV8Rdm"], ["created_at", "2018-12-07 01:52:20.067223"], ["updated_at", "2018-12-07 01:52:20.067223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.081609"], ["updated_at", "2018-12-07 01:52:20.081609"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8127], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10818], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10818], ["room_id", 8127], ["created_at", "2018-12-07 01:52:20.113760"], ["updated_at", "2018-12-07 01:52:20.113760"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4206"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4206], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8127], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10818], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 131.4ms Sent mail to 123@123.com (5.6ms) Date: Thu, 06 Dec 2018 23:52:20 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d25443717_47cc2ae472f685fc884e3@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d25442851_47cc2ae472f685fc88332";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d25442851_47cc2ae472f685fc88332 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d25442851_47cc2ae472f685fc88332 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d25442851_47cc2ae472f685fc88332–

Completed 302 Found in 156ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WRnUzNUsFrNWc/Jjc3V.p.0tniH9am4WStWEquDnLyynalCmOUUp6"], ["created_at", "2018-12-07 01:52:20.283280"], ["updated_at", "2018-12-07 01:52:20.283280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DD97oFaCvFHenoKLJE04Ce81jkQeL50Adh2WkqvVmTKfUWgpCDsOq"], ["created_at", "2018-12-07 01:52:20.286352"], ["updated_at", "2018-12-07 01:52:20.286352"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.287709"], ["updated_at", "2018-12-07 01:52:20.287709"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8128], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10820], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10820], ["room_id", 8128], ["created_at", "2018-12-07 01:52:20.290428"], ["updated_at", "2018-12-07 01:52:20.290428"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4207"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4207], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8128], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10820], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:52:20.295151"], ["id", 4207]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:52:20 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d2544908e_47cc2ae472f685fc8864f@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d25448b06_47cc2ae472f685fc8853c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d25448b06_47cc2ae472f685fc8853c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d25448b06_47cc2ae472f685fc8853c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d25448b06_47cc2ae472f685fc8853c–

Completed 302 Found in 8ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rjo2DCxrPr53dWe9l66qKeOH.1/Pqh0k7ocQTj0fl9syO23svtpGO"], ["created_at", "2018-12-07 01:52:20.304498"], ["updated_at", "2018-12-07 01:52:20.304498"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZSgELeN.o9l.4sevW/kpA.ZYn7VbuUv0n0eIZjEixdskIQcI9zM1W"], ["created_at", "2018-12-07 01:52:20.307856"], ["updated_at", "2018-12-07 01:52:20.307856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.309639"], ["updated_at", "2018-12-07 01:52:20.309639"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8129], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10822], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10822], ["room_id", 8129], ["created_at", "2018-12-07 01:52:20.313130"], ["updated_at", "2018-12-07 01:52:20.313130"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rDnuOCZk2ztqb7oxdp8TCOdV7BsYbk4dfJDXQ/.e33z/BGm4KqJqO"], ["created_at", "2018-12-07 01:52:20.319888"], ["updated_at", "2018-12-07 01:52:20.319888"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$q9l10FvkggD4Od1zgar6duuS3o5Kb12fmxrqZeKp8rdcd7qKSUSGe"], ["created_at", "2018-12-07 01:52:20.323001"], ["updated_at", "2018-12-07 01:52:20.323001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.324475"], ["updated_at", "2018-12-07 01:52:20.324475"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8130], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10824], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10824], ["room_id", 8130], ["created_at", "2018-12-07 01:52:20.327350"], ["updated_at", "2018-12-07 01:52:20.327350"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4209], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$GAbEtsmXWfkJsXAcf5qaaO0hAw3k5RTO21.oB5Xk/x5BR6Hnb0jV6"], ["created_at", "2018-12-07 01:52:20.332309"], ["updated_at", "2018-12-07 01:52:20.332309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10825"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "6kXI8LJefoCKA_df2XlFOA"], ["updated_at", "2018-12-07 01:52:20.335498"], ["id", 10825]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:52:20.336836"], ["reset_sent_at", "2018-12-07 01:52:20.336555"], ["id", 10825]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.3ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:52:20 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d25454062_47cc2ae472f685fc889c7@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d25453a85_47cc2ae472f685fc888cf";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d25453a85_47cc2ae472f685fc888cf Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/6kXI8LJefoCKA_df2XlFOA/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d25453a85_47cc2ae472f685fc888cf Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/6kXI8LJefoCKA_df2XlFOA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d25453a85_47cc2ae472f685fc888cf–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$oWbHzH3A.JuNcTspf8AHCOlZNLYmI9.LRIi4Hv8xQjkjTwpfQbVlG"], ["created_at", "2018-12-07 01:52:20.349828"], ["updated_at", "2018-12-07 01:52:20.349828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$OzUvCljRD5BnIx95GGo6geVKvzYwVCxyg4INkgd81/h8E7i/R2num"], ["created_at", "2018-12-07 01:52:20.356997"], ["updated_at", "2018-12-07 01:52:20.356997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10827"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$H1hE/827fcrRha4bo6.cM.TG27RjFiHia1GLXyfArOnLIzALXHrlq"], ["updated_at", "2018-12-07 01:52:20.361045"], ["id", 10827]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$IPzOnLsdI2tt/GQq83oad.jFRdJxb9xz5OznlJRvxWL4TqXQQhhzq"], ["created_at", "2018-12-07 01:52:20.365865"], ["updated_at", "2018-12-07 01:52:20.365865"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10828"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$DRKbhmi21trJUT5uzhv4Bu1SONTha3O.lIR58ZlUHx7hRyVV3Riou"], ["created_at", "2018-12-07 01:52:20.374234"], ["updated_at", "2018-12-07 01:52:20.374234"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10829"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$k1jURhhW5GcepSuStNOoQeHIxvmHrTZh1DlQONNfcvspc.0ZJbIde"], ["created_at", "2018-12-07 01:52:20.387456"], ["updated_at", "2018-12-07 01:52:20.387456"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10830"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$raoHFGUl8pJ5Yzt1y/yPeuFYiIF8hGROt6jZdM7ndvMbiRMffCtQu"], ["created_at", "2018-12-07 01:52:20.395761"], ["updated_at", "2018-12-07 01:52:20.395761"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10831"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y7K9fMJLqStq8jWz6YZjN.UtJ9dmOCWfe5zT79rDLgscfwNXbD3XG"], ["created_at", "2018-12-07 01:52:20.403648"], ["updated_at", "2018-12-07 01:52:20.403648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4iluicmVobSJxNpwWsqcduzPmH.OaZN2uv0qLL2SiRi9Gk2ZAye/2"], ["created_at", "2018-12-07 01:52:20.410224"], ["updated_at", "2018-12-07 01:52:20.410224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CtuCqmAC0zmJvgMmdBdkl.G/CKJLyAHGN4MQ4adEj4Mz9NcUx0MuO"], ["created_at", "2018-12-07 01:52:20.416971"], ["updated_at", "2018-12-07 01:52:20.416971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.418442"], ["updated_at", "2018-12-07 01:52:20.418442"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8131], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10834], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10834], ["room_id", 8131], ["created_at", "2018-12-07 01:52:20.421288"], ["updated_at", "2018-12-07 01:52:20.421288"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$b1nXmren4KFY2sROCWyLru7fRNd5I307mpDpQtYn6ZanXM3bswNN2"], ["created_at", "2018-12-07 01:52:20.427523"], ["updated_at", "2018-12-07 01:52:20.427523"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.428983"], ["updated_at", "2018-12-07 01:52:20.428983"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8132], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10835], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10835], ["room_id", 8132], ["created_at", "2018-12-07 01:52:20.431977"], ["updated_at", "2018-12-07 01:52:20.431977"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.0ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zhQTJlwjslFU.JAs7AIjZ.PInZKcHDLoOG.Lw0hHKifYkdpW4KWP2"], ["created_at", "2018-12-07 01:52:20.454115"], ["updated_at", "2018-12-07 01:52:20.454115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.455635"], ["updated_at", "2018-12-07 01:52:20.455635"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.462236"], ["last_sign_in_at", "2018-12-07 01:52:20.462236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.462667"], ["id", 10836]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8133"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8133 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8133], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10836], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10836], ["room_id", 8133], ["created_at", "2018-12-07 01:52:20.471294"], ["updated_at", "2018-12-07 01:52:20.471294"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8133], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AcqQkAYAEkd/cIHSBJvr/.nsJfg7bTRDRbL4Fpwt49IE/favbHuwy"], ["created_at", "2018-12-07 01:52:20.477485"], ["updated_at", "2018-12-07 01:52:20.477485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.479111"], ["updated_at", "2018-12-07 01:52:20.479111"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.481170"], ["last_sign_in_at", "2018-12-07 01:52:20.481170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.481690"], ["id", 10837]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8134"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8134 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8134], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10837], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10837], ["room_id", 8134], ["created_at", "2018-12-07 01:52:20.486739"], ["updated_at", "2018-12-07 01:52:20.486739"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$N2S2Akp7raTRT.T67x4yH.Ts4EHhSKVwAUfwVMAW9yHMeaAggKgnq"], ["created_at", "2018-12-07 01:52:20.492098"], ["updated_at", "2018-12-07 01:52:20.492098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.493612"], ["updated_at", "2018-12-07 01:52:20.493612"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.495869"], ["last_sign_in_at", "2018-12-07 01:52:20.495869"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.496294"], ["id", 10838]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8135", "user_id"=>"10838"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8135 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8135], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10838], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10838], ["room_id", 8135], ["created_at", "2018-12-07 01:52:20.501792"], ["updated_at", "2018-12-07 01:52:20.501792"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8135", "user_id"=>"10838"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10838], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8135 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xR0IIllxoNWPMzjovCgCW.OozCYvQ7ogIMYKILec/doVqTc4U2Wxy"], ["created_at", "2018-12-07 01:52:20.520320"], ["updated_at", "2018-12-07 01:52:20.520320"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.521852"], ["updated_at", "2018-12-07 01:52:20.521852"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.523901"], ["last_sign_in_at", "2018-12-07 01:52:20.523901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.524273"], ["id", 10839]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8136", "user_id"=>"10839"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8136 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8136], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10839], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10839], ["room_id", 8136], ["created_at", "2018-12-07 01:52:20.529595"], ["updated_at", "2018-12-07 01:52:20.529595"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8136", "user_id"=>"10839"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10839], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8136 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aIEHHMATM36jTj8fRt01WOdp88R/hyUmxZeAu9rSHCgZJMr2BLX6W"], ["created_at", "2018-12-07 01:52:20.547916"], ["updated_at", "2018-12-07 01:52:20.547916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.549453"], ["updated_at", "2018-12-07 01:52:20.549453"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.551541"], ["last_sign_in_at", "2018-12-07 01:52:20.551541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.551950"], ["id", 10840]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8137", "user_id"=>"10840"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8137 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8137], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10840], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10840], ["room_id", 8137], ["created_at", "2018-12-07 01:52:20.556622"], ["updated_at", "2018-12-07 01:52:20.556622"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8137", "user_id"=>"10840"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10840], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8137 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SD1sr3wyr4KXaKOMYECLP.eSXJQhjhEPWRVtLu1kbr8G7162CGeO6"], ["created_at", "2018-12-07 01:52:20.575717"], ["updated_at", "2018-12-07 01:52:20.575717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.577437"], ["updated_at", "2018-12-07 01:52:20.577437"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.579317"], ["last_sign_in_at", "2018-12-07 01:52:20.579317"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.579725"], ["id", 10841]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8138"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8138], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sGU9qhKx092iFuiy0Fe9re3uiUK6S0dh7PvkvuYGuvVWL0O9igDru"], ["created_at", "2018-12-07 01:52:20.586942"], ["updated_at", "2018-12-07 01:52:20.586942"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.588488"], ["updated_at", "2018-12-07 01:52:20.588488"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.590525"], ["last_sign_in_at", "2018-12-07 01:52:20.590525"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.591007"], ["id", 10842]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8139"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MVtnrSSJXSw59Sb0VJ5J6uOBBnNOVLGNOESvDhJjVr3SpbC5fgfKG"], ["created_at", "2018-12-07 01:52:20.598878"], ["updated_at", "2018-12-07 01:52:20.598878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.600427"], ["updated_at", "2018-12-07 01:52:20.600427"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8140], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10843], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10843], ["room_id", 8140], ["created_at", "2018-12-07 01:52:20.603495"], ["updated_at", "2018-12-07 01:52:20.603495"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8140” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.605045"], ["last_sign_in_at", "2018-12-07 01:52:20.605045"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.605402"], ["id", 10843]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8140"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8140], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8140')
Rendered appointments/show.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (2.4ms)

Completed 200 OK in 155ms (Views: 153.2ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8pVoamGrWx7ly6ZNBQxlDOP7OZrnPg5miu5tgEMcD1UEelP4nzSE2"], ["created_at", "2018-12-07 01:52:20.771013"], ["updated_at", "2018-12-07 01:52:20.771013"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.773816"], ["updated_at", "2018-12-07 01:52:20.773816"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8141], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10844], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10844], ["room_id", 8141], ["created_at", "2018-12-07 01:52:20.780612"], ["updated_at", "2018-12-07 01:52:20.780612"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4218/edit” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.8ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.783332"], ["last_sign_in_at", "2018-12-07 01:52:20.783332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.784467"], ["id", 10844]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4218"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4218], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 10ms (Views: 9.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WDRwRGkF7KGWhmw9u5MM/unKYSNdb7m9IzlvTZZatJ46NTPQmzQOG"], ["created_at", "2018-12-07 01:52:20.805721"], ["updated_at", "2018-12-07 01:52:20.805721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.808711"], ["last_sign_in_at", "2018-12-07 01:52:20.808711"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.809674"], ["id", 10845]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 16ms (Views: 14.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dXh9vPU2x.RaXx7dkSuwfujml4jvYNNmzS1J7Yaic7b6BnKsV9fFm"], ["created_at", "2018-12-07 01:52:20.836031"], ["updated_at", "2018-12-07 01:52:20.836031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.839278"], ["updated_at", "2018-12-07 01:52:20.839278"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8142], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10846], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10846], ["room_id", 8142], ["created_at", "2018-12-07 01:52:20.845060"], ["updated_at", "2018-12-07 01:52:20.845060"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8142], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10846], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10846], ["room_id", 8142], ["created_at", "2018-12-07 01:52:20.849801"], ["updated_at", "2018-12-07 01:52:20.849801"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.852446"], ["last_sign_in_at", "2018-12-07 01:52:20.852446"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.852901"], ["id", 10846]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10846]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 22ms (Views: 5.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OhlvJDy5L6cZOFmgkGd6MeAcXbbAUtymnjho4mICUTQC0hG1iPajC"], ["created_at", "2018-12-07 01:52:20.883262"], ["updated_at", "2018-12-07 01:52:20.883262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.885113"], ["updated_at", "2018-12-07 01:52:20.885113"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8143], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10847], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10847], ["room_id", 8143], ["created_at", "2018-12-07 01:52:20.889238"], ["updated_at", "2018-12-07 01:52:20.889238"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8143], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10847], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10847], ["room_id", 8143], ["created_at", "2018-12-07 01:52:20.892957"], ["updated_at", "2018-12-07 01:52:20.892957"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.894827"], ["last_sign_in_at", "2018-12-07 01:52:20.894827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.895317"], ["id", 10847]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10847]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nyjRJG4GSLgHAZqvqfpZgevPdWQ02QRdgV9jyPHYRphquXtUVu4w."], ["created_at", "2018-12-07 01:52:20.905786"], ["updated_at", "2018-12-07 01:52:20.905786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.907525"], ["updated_at", "2018-12-07 01:52:20.907525"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8144], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10848], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10848], ["room_id", 8144], ["created_at", "2018-12-07 01:52:20.910578"], ["updated_at", "2018-12-07 01:52:20.910578"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4223” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.912153"], ["last_sign_in_at", "2018-12-07 01:52:20.912153"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.912532"], ["id", 10848]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4223"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4223], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4223]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ywNPK1efRvpfo59aK5D3ZuCsANkyKyTqEmkRM2zqLNrUddcfbvgt6"], ["created_at", "2018-12-07 01:52:20.921726"], ["updated_at", "2018-12-07 01:52:20.921726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.923499"], ["updated_at", "2018-12-07 01:52:20.923499"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vjdLEAD5XqUtAglJ88/DtuZ2bxsUPQfEqWkvdlV.DGgS55hDK6rHW"], ["created_at", "2018-12-07 01:52:20.926736"], ["updated_at", "2018-12-07 01:52:20.926736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8145], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10850], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10850], ["room_id", 8145], ["created_at", "2018-12-07 01:52:20.929763"], ["updated_at", "2018-12-07 01:52:20.929763"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4224” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.931670"], ["last_sign_in_at", "2018-12-07 01:52:20.931670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.932039"], ["id", 10849]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4224"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4224], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8145], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10850], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tNQQT1ATgnbO3Tc6hVmVL.I1iF3UGFTsCRU/Zb/C4J32X5pHa.1bK"], ["created_at", "2018-12-07 01:52:20.941526"], ["updated_at", "2018-12-07 01:52:20.941526"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.943246"], ["updated_at", "2018-12-07 01:52:20.943246"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hKp5SSKRhmuZIiiiph3Q1u2N90sB6JqdEFNtHdk.P60wlxO6/rEfC"], ["created_at", "2018-12-07 01:52:20.946371"], ["updated_at", "2018-12-07 01:52:20.946371"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8146], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10852], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10852], ["room_id", 8146], ["created_at", "2018-12-07 01:52:20.949457"], ["updated_at", "2018-12-07 01:52:20.949457"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4225” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.952085"], ["last_sign_in_at", "2018-12-07 01:52:20.952085"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.952564"], ["id", 10851]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4225"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4225], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8146], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10852], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uajhq9WQ7OnwgJrA7CKL8OyPL9B3rLnYancV8WeOqCiGGKHurWuke"], ["created_at", "2018-12-07 01:52:20.961706"], ["updated_at", "2018-12-07 01:52:20.961706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.963375"], ["updated_at", "2018-12-07 01:52:20.963375"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$freLKelr.JOUF3qIy18aJe9szrwWZw163PJDiIT6VrqgURVxOxVw2"], ["created_at", "2018-12-07 01:52:20.966633"], ["updated_at", "2018-12-07 01:52:20.966633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8147], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10854], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10854], ["room_id", 8147], ["created_at", "2018-12-07 01:52:20.969712"], ["updated_at", "2018-12-07 01:52:20.969712"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4226” for 127.0.0.1 at 2018-12-06 23:52:20 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:20.971617"], ["last_sign_in_at", "2018-12-07 01:52:20.971617"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:20.971986"], ["id", 10853]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4226"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4226], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8147], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10854], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:52:20.976090"], ["id", 4226]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.5ms) Date: Thu, 06 Dec 2018 23:52:20 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d254ef3f7_47cc2ae472f685fc896d6@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d254eee1d_47cc2ae472f685fc895c1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d254eee1d_47cc2ae472f685fc895c1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d254eee1d_47cc2ae472f685fc895c1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d254eee1d_47cc2ae472f685fc895c1–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.4ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vtqsLMj5NVSqZpzuvESYGuP3kL0esRXAbu8Nwm8cx78hCHPocJ5OG"], ["created_at", "2018-12-07 01:52:20.987328"], ["updated_at", "2018-12-07 01:52:20.987328"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:20.989169"], ["updated_at", "2018-12-07 01:52:20.989169"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$e6MrcIl51e.y7.Jyi8VJoert/hLvsggSmLs4YR66V.S9wMO8OK0KG"], ["created_at", "2018-12-07 01:52:20.992305"], ["updated_at", "2018-12-07 01:52:20.992305"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8148], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10856], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10856], ["room_id", 8148], ["created_at", "2018-12-07 01:52:20.995438"], ["updated_at", "2018-12-07 01:52:20.995438"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:52:20.996900"], ["id", 4227]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8148], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10856], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10856], ["room_id", 8148], ["created_at", "2018-12-07 01:52:20.999584"], ["updated_at", "2018-12-07 01:52:20.999584"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:52:21.000845"], ["id", 4228]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.002257"], ["last_sign_in_at", "2018-12-07 01:52:21.002257"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.002610"], ["id", 10855]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10856], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8148], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10856], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8148], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$exFUNx78zLwRoay9MkAsrOnmxRZRJbV3/N3DsVHu50fwWUUgeTJ2y"], ["created_at", "2018-12-07 01:52:21.015953"], ["updated_at", "2018-12-07 01:52:21.015953"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.017855"], ["updated_at", "2018-12-07 01:52:21.017855"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vyTlrSTH1TTSFp87Jj2Bj.y7BUY.VF7i5.vQgemBo1GCQ1q4ZBI8K"], ["created_at", "2018-12-07 01:52:21.021071"], ["updated_at", "2018-12-07 01:52:21.021071"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8149], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10858], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10858], ["room_id", 8149], ["created_at", "2018-12-07 01:52:21.024095"], ["updated_at", "2018-12-07 01:52:21.024095"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:52:21.025449"], ["id", 4229]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8149], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10858], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10858], ["room_id", 8149], ["created_at", "2018-12-07 01:52:21.028124"], ["updated_at", "2018-12-07 01:52:21.028124"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:52:21.029403"], ["id", 4230]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.030816"], ["last_sign_in_at", "2018-12-07 01:52:21.030816"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.031170"], ["id", 10857]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10858], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8149], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10858], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8149], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oGBy.MAxLVaF3kZ2Y2u9cOCXklDS8oeSlAhQhhsGopJ/hW4ZpqFpS"], ["created_at", "2018-12-07 01:52:21.043676"], ["updated_at", "2018-12-07 01:52:21.043676"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.045606"], ["last_sign_in_at", "2018-12-07 01:52:21.045606"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.046299"], ["id", 10859]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U6NKIQ4B1Agnd.YhAXNz/./L.QIZlTlb4IY6prOOWoibjqY9vxq6q"], ["created_at", "2018-12-07 01:52:21.059575"], ["updated_at", "2018-12-07 01:52:21.059575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.061244"], ["last_sign_in_at", "2018-12-07 01:52:21.061244"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.061618"], ["id", 10860]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ORAUQSdNDvYmbxfyR.WSb.HEYpu/C.NuSgDC4.4VSHLds1GnINMCW"], ["created_at", "2018-12-07 01:52:21.067584"], ["updated_at", "2018-12-07 01:52:21.067584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.069149"], ["last_sign_in_at", "2018-12-07 01:52:21.069149"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.069486"], ["id", 10861]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/rj.PEp.a01vyirTuvKtyuo2sGsCxpJdDw0UWCe/HJM2Amz5HWjN6"], ["created_at", "2018-12-07 01:52:21.079721"], ["updated_at", "2018-12-07 01:52:21.079721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.081434"], ["last_sign_in_at", "2018-12-07 01:52:21.081434"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.081783"], ["id", 10862]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$c0YCMzlZ2E7BqBY.WdM08Ovw67I3I1HgP3d9AlAYV2gL2GNi2ihzm"], ["created_at", "2018-12-07 01:52:21.095546"], ["updated_at", "2018-12-07 01:52:21.095546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.097104"], ["updated_at", "2018-12-07 01:52:21.097104"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8150” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.098588"], ["last_sign_in_at", "2018-12-07 01:52:21.098588"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.099030"], ["id", 10863]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8150"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8150], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nGTccS7/tEaNQGM./8Tq3O9h3ou72hslehgyIjgMGuUZ5Fog.rgp."], ["created_at", "2018-12-07 01:52:21.108267"], ["updated_at", "2018-12-07 01:52:21.108267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.110237"], ["updated_at", "2018-12-07 01:52:21.110237"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8151” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.111769"], ["last_sign_in_at", "2018-12-07 01:52:21.111769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.112088"], ["id", 10864]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8151"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8151], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.118271"], ["updated_at", "2018-12-07 01:52:21.118271"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8152” for 127.0.0.1 at 2018-12-06 23:52:21 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8152"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NqBMIWTqUeTAudxgJxm1Vuan30bCz5cgrE0OmEiX2qYctNDVzeDrC"], ["created_at", "2018-12-07 01:52:21.124201"], ["updated_at", "2018-12-07 01:52:21.124201"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.125828"], ["updated_at", "2018-12-07 01:52:21.125828"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8153” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.127313"], ["last_sign_in_at", "2018-12-07 01:52:21.127313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.127740"], ["id", 10865]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8153"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.135644"], ["updated_at", "2018-12-07 01:52:21.135644"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8154” for 127.0.0.1 at 2018-12-06 23:52:21 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8154"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/zNXMSC80leKoOA7.m36pOvO7wXUp7F3ZDPMKUSPM4gK29SwIatZK"], ["created_at", "2018-12-07 01:52:21.142465"], ["updated_at", "2018-12-07 01:52:21.142465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.144151"], ["updated_at", "2018-12-07 01:52:21.144151"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8155/edit” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.145603"], ["last_sign_in_at", "2018-12-07 01:52:21.145603"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.146042"], ["id", 10866]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8155"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8155], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PCP//lUbD3sEvFk6TG4yUeIS1wR6yXkdizYgUyGt.XIx0.Q7JeobO"], ["created_at", "2018-12-07 01:52:21.156648"], ["updated_at", "2018-12-07 01:52:21.156648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.158269"], ["updated_at", "2018-12-07 01:52:21.158269"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8156/edit” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.159722"], ["last_sign_in_at", "2018-12-07 01:52:21.159722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.160113"], ["id", 10867]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8156"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8156], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.167774"], ["updated_at", "2018-12-07 01:52:21.167774"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8157” for 127.0.0.1 at 2018-12-06 23:52:21 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8157"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cT4O7sv3cXlOrAiq1qtgNeVxKDqwdjRb6z8zqVqwGyuD.itr5ADbG"], ["created_at", "2018-12-07 01:52:21.175273"], ["updated_at", "2018-12-07 01:52:21.175273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.177419"], ["last_sign_in_at", "2018-12-07 01:52:21.177419"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.177770"], ["id", 10868]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.180319"], ["updated_at", "2018-12-07 01:52:21.180319"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zIoBSWt/bpIEc.Zi5H1obej64r0j8a0.GZyBDg736DCqwJpi9bh4y"], ["created_at", "2018-12-07 01:52:21.186346"], ["updated_at", "2018-12-07 01:52:21.186346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.188382"], ["last_sign_in_at", "2018-12-07 01:52:21.188382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.188799"], ["id", 10869]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.191227"], ["updated_at", "2018-12-07 01:52:21.191227"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G9pO3Tybb7Dz7B3RGYycHuj5djh7X0TyZ44pxiSApVvJ2R3rI.V.i"], ["created_at", "2018-12-07 01:52:21.196396"], ["updated_at", "2018-12-07 01:52:21.196396"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.198415"], ["last_sign_in_at", "2018-12-07 01:52:21.198415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.198792"], ["id", 10870]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xECyUTnEfjb42G1yCB7QkeAbwWruiYpbVMr7YTgIMMlt46/12uvP."], ["created_at", "2018-12-07 01:52:21.207591"], ["updated_at", "2018-12-07 01:52:21.207591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.209697"], ["last_sign_in_at", "2018-12-07 01:52:21.209697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.210043"], ["id", 10871]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$akTls9FWIpHFmPZlr/PdaeH7y1JpHGas0JewgEU8oD9mP8MflOxaW"], ["created_at", "2018-12-07 01:52:21.217546"], ["updated_at", "2018-12-07 01:52:21.217546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.219482"], ["last_sign_in_at", "2018-12-07 01:52:21.219482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.219838"], ["id", 10872]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1obyc37MiHSm5SySDK0FWOJx5rhORWOnTSG9z09d/mJVgDWH3CSwa"], ["created_at", "2018-12-07 01:52:21.225810"], ["updated_at", "2018-12-07 01:52:21.225810"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.227397"], ["updated_at", "2018-12-07 01:52:21.227397"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8160” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.229158"], ["last_sign_in_at", "2018-12-07 01:52:21.229158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.229592"], ["id", 10873]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8160"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8160], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:52:21.232713"], ["id", 8160]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8160 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DON82yt8JT7Pdl6d8/rSEO8H4ebksywyR9rbzVli3mn8caoB.r2pC"], ["created_at", "2018-12-07 01:52:21.239322"], ["updated_at", "2018-12-07 01:52:21.239322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.241144"], ["updated_at", "2018-12-07 01:52:21.241144"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8161” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.242945"], ["last_sign_in_at", "2018-12-07 01:52:21.242945"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.243310"], ["id", 10874]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8161"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8161], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:52:21.246211"], ["id", 8161]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8161 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DCdJ8KQXQpS5t75PP13J6ewDvtsBKr30b6vixW.Gpz8bg37eoAUEi"], ["created_at", "2018-12-07 01:52:21.251540"], ["updated_at", "2018-12-07 01:52:21.251540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.253141"], ["updated_at", "2018-12-07 01:52:21.253141"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8162” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.254932"], ["last_sign_in_at", "2018-12-07 01:52:21.254932"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.255362"], ["id", 10875]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8162"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8162], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9/9lbqTQNjLT08yTXIXyVOHGnv4YMQ7gBQQnJwCWKnBKcHBzQNRca"], ["created_at", "2018-12-07 01:52:21.267202"], ["updated_at", "2018-12-07 01:52:21.267202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.268938"], ["updated_at", "2018-12-07 01:52:21.268938"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8163” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.270770"], ["last_sign_in_at", "2018-12-07 01:52:21.270770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.271189"], ["id", 10876]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8163"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8163], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/SKwAuDvh097Fn5Sz2CWfuUUUjuGi4Lh7EsTMhHLtE.ZjFMuxGhGu"], ["created_at", "2018-12-07 01:52:21.282286"], ["updated_at", "2018-12-07 01:52:21.282286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.284381"], ["last_sign_in_at", "2018-12-07 01:52:21.284381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.284733"], ["id", 10877]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RFdxPLv0Cs8XdVePz4/Idu1Dwve5lGAIRBDiMRke0jDUktuw0KV6u"], ["created_at", "2018-12-07 01:52:21.290726"], ["updated_at", "2018-12-07 01:52:21.290726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.292276"], ["updated_at", "2018-12-07 01:52:21.292276"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8164” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.293679"], ["last_sign_in_at", "2018-12-07 01:52:21.293679"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.294066"], ["id", 10878]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8164"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8164], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8164]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YAh1L59Gotn4OiP9JmKKCe2Yy6SC5qlu0wsvA2ci5pAoMOcNqdpQ2"], ["created_at", "2018-12-07 01:52:21.302746"], ["updated_at", "2018-12-07 01:52:21.302746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.304538"], ["updated_at", "2018-12-07 01:52:21.304538"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8165” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.306011"], ["last_sign_in_at", "2018-12-07 01:52:21.306011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.306424"], ["id", 10879]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8165"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8165], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8165]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$to0zwEB.O7z5VDxyFLJTf.4moos3Va7rWmSlLIA1NuLTIuKmw2FdO"], ["created_at", "2018-12-07 01:52:21.313924"], ["updated_at", "2018-12-07 01:52:21.313924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.315530"], ["updated_at", "2018-12-07 01:52:21.315530"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8166” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.316984"], ["last_sign_in_at", "2018-12-07 01:52:21.316984"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.317399"], ["id", 10880]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8166"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/JMKbjJhfn/3r.9Zqo1FvuT5xqM2CAZTXFDDnVM2BGoOCDE.giUa2"], ["created_at", "2018-12-07 01:52:21.323610"], ["updated_at", "2018-12-07 01:52:21.323610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.325109"], ["updated_at", "2018-12-07 01:52:21.325109"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8167” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.326510"], ["last_sign_in_at", "2018-12-07 01:52:21.326510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.327006"], ["id", 10881]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8167"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZVyIcyKeblOrrkT04t65nOuQbl4WIMFnyOFlEircA5crIxRKqk1hi"], ["created_at", "2018-12-07 01:52:21.333952"], ["updated_at", "2018-12-07 01:52:21.333952"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.335746"], ["last_sign_in_at", "2018-12-07 01:52:21.335746"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.336097"], ["id", 10882]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NkGwmcayW8wCQwLMwW1oY.P8z.JkW/dj.v0vp432Nu7gab18EPrBS"], ["created_at", "2018-12-07 01:52:21.347698"], ["updated_at", "2018-12-07 01:52:21.347698"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.349227"], ["updated_at", "2018-12-07 01:52:21.349227"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.350511"], ["updated_at", "2018-12-07 01:52:21.350511"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.351732"], ["updated_at", "2018-12-07 01:52:21.351732"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8168], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10883], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10883], ["room_id", 8168], ["created_at", "2018-12-07 01:52:21.354542"], ["updated_at", "2018-12-07 01:52:21.354542"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.356131"], ["last_sign_in_at", "2018-12-07 01:52:21.356131"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.356511"], ["id", 10883]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GoJOrMkm0DMf1v890HQfgehk5U27mKVzxy2ozVY/maPcxewI2q8sq"], ["created_at", "2018-12-07 01:52:21.374007"], ["updated_at", "2018-12-07 01:52:21.374007"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.375673"], ["updated_at", "2018-12-07 01:52:21.375673"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.376921"], ["updated_at", "2018-12-07 01:52:21.376921"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:21.378154"], ["updated_at", "2018-12-07 01:52:21.378154"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8171], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10884], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10884], ["room_id", 8171], ["created_at", "2018-12-07 01:52:21.380995"], ["updated_at", "2018-12-07 01:52:21.380995"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:52:21 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:21.382519"], ["last_sign_in_at", "2018-12-07 01:52:21.382519"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:21.382894"], ["id", 10884]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TIfcf4ktWeQojCdiKtEXMObgUn0aClgn/qXH7kjkXZ/eb3vKm/Ace"], ["created_at", "2018-12-07 01:52:37.296563"], ["updated_at", "2018-12-07 01:52:37.296563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HSKPG2Z.r0ekaMvHmu23g.OC4xJkRW257tavvKavZzA6uIwbaiRmW"], ["created_at", "2018-12-07 01:52:37.302285"], ["updated_at", "2018-12-07 01:52:37.302285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.315532"], ["updated_at", "2018-12-07 01:52:37.315532"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8174], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10886], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10886], ["room_id", 8174], ["created_at", "2018-12-07 01:52:37.348107"], ["updated_at", "2018-12-07 01:52:37.348107"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4233"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4233], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8174], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10886], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 128.9ms Sent mail to 123@123.com (5.5ms) Date: Thu, 06 Dec 2018 23:52:37 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d2657bf70_47f42b03789cc600608bf@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d2657b112_47f42b03789cc600607fb";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d2657b112_47f42b03789cc600607fb Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d2657b112_47f42b03789cc600607fb Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d2657b112_47f42b03789cc600607fb–

Completed 302 Found in 150ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C01b0e2pG00e3cMtUUMizeUNsZQtGXfejCOYyeCU5ZUcRbUOXGd6m"], ["created_at", "2018-12-07 01:52:37.514915"], ["updated_at", "2018-12-07 01:52:37.514915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XX75DDMLJxF13THn8q0xXOka.eEHs6aY/fd./8Q1kckRJjnyIdZgK"], ["created_at", "2018-12-07 01:52:37.518000"], ["updated_at", "2018-12-07 01:52:37.518000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.519390"], ["updated_at", "2018-12-07 01:52:37.519390"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8175], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10888], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10888], ["room_id", 8175], ["created_at", "2018-12-07 01:52:37.522133"], ["updated_at", "2018-12-07 01:52:37.522133"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4234"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4234], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8175], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10888], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:52:37.526834"], ["id", 4234]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Thu, 06 Dec 2018 23:52:37 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d2658197b_47f42b03789cc60061093@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d265813f2_47f42b03789cc60060948";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d265813f2_47f42b03789cc60060948 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d265813f2_47f42b03789cc60060948 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d265813f2_47f42b03789cc60060948–

Completed 302 Found in 9ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$usmCjOrMQrf.nSi42GyQw.QcLkTRrvSb5XNhAr9ulzPtyC30RoMXK"], ["created_at", "2018-12-07 01:52:37.536158"], ["updated_at", "2018-12-07 01:52:37.536158"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MecGEc5mf5rFmjig6G0z6enGJP3r8g6g9Xyfk45GT1RoDKnX6xakO"], ["created_at", "2018-12-07 01:52:37.539471"], ["updated_at", "2018-12-07 01:52:37.539471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.541350"], ["updated_at", "2018-12-07 01:52:37.541350"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8176], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10890], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10890], ["room_id", 8176], ["created_at", "2018-12-07 01:52:37.544611"], ["updated_at", "2018-12-07 01:52:37.544611"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vvvlDYtHFK6gNYpl35BI1u0jNtXDZoxeIpjlhln42uOHSsfQxPsFu"], ["created_at", "2018-12-07 01:52:37.551254"], ["updated_at", "2018-12-07 01:52:37.551254"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GyS/VnKMNr4vKmlGXE9pzuDF1FDq9piP7vhXHwheYwO.HRjY0m7A2"], ["created_at", "2018-12-07 01:52:37.554423"], ["updated_at", "2018-12-07 01:52:37.554423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.555950"], ["updated_at", "2018-12-07 01:52:37.555950"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8177], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10892], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10892], ["room_id", 8177], ["created_at", "2018-12-07 01:52:37.558837"], ["updated_at", "2018-12-07 01:52:37.558837"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4236], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$XBvzlgU5jvnveHdZY4bkpOk0oqJkSsDLZtZXkFk561z.eGZXPUkLm"], ["created_at", "2018-12-07 01:52:37.564060"], ["updated_at", "2018-12-07 01:52:37.564060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10893"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "QYmtG3BiYhbVxoqoOcic3g"], ["updated_at", "2018-12-07 01:52:37.567251"], ["id", 10893]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:52:37.568749"], ["reset_sent_at", "2018-12-07 01:52:37.568367"], ["id", 10893]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:52:37 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d2658ca1c_47f42b03789cc6006136e@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d2658c435_47f42b03789cc60061258";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d2658c435_47f42b03789cc60061258 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/QYmtG3BiYhbVxoqoOcic3g/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d2658c435_47f42b03789cc60061258 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/QYmtG3BiYhbVxoqoOcic3g/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d2658c435_47f42b03789cc60061258–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$CvZlk69p7/b2sk3/3bWfTes1cMDPBJQ4ClhFy7pmW3NrUoqksKmaK"], ["created_at", "2018-12-07 01:52:37.581803"], ["updated_at", "2018-12-07 01:52:37.581803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$Gim0AKqLbUeNSCik0rZFq.p7E3hpIfh6iQsqiCMLPXkR1kamczxEi"], ["created_at", "2018-12-07 01:52:37.588971"], ["updated_at", "2018-12-07 01:52:37.588971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10895"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$AWOESTGKgoR.FxvAYpqTW.1W4Os2nJ.1Ku8MPcQSuvCO8tXrCXL/G"], ["updated_at", "2018-12-07 01:52:37.592890"], ["id", 10895]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$I3P5i92X8s0WYbiDYSwLwuGnQpIIxArpiHLxcm/kZkLj7wJDmrVmO"], ["created_at", "2018-12-07 01:52:37.597516"], ["updated_at", "2018-12-07 01:52:37.597516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10896"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$BeKrK9ilf.KW03IjxH9WhOuLtDug8RLltk0FXdHYJ2V9RtNmHMcte"], ["created_at", "2018-12-07 01:52:37.605421"], ["updated_at", "2018-12-07 01:52:37.605421"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10897"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$VGHakFQgmZ58kOVwgLtR2.MqH5eJNDzFZUf8pRbNdxgFmDxV4j472"], ["created_at", "2018-12-07 01:52:37.618964"], ["updated_at", "2018-12-07 01:52:37.618964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10898"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CRfx8/d6x9mLOc/VWqpgp.IkfQ4ruYvf0JC9C5JBMmLfPMbAEwUH6"], ["created_at", "2018-12-07 01:52:37.627616"], ["updated_at", "2018-12-07 01:52:37.627616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10899"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v0CuiALkf54enurpWXqPaeAWLm2Nzj4Yk6fC.zEIhHmSYrs2iiQYm"], ["created_at", "2018-12-07 01:52:37.635688"], ["updated_at", "2018-12-07 01:52:37.635688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mdw9jvl2Y/ptqOx4J9lTnOef66xhWJyjuMRJCCOdRLm.bkPO1nutS"], ["created_at", "2018-12-07 01:52:37.642432"], ["updated_at", "2018-12-07 01:52:37.642432"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nstqRjLBUFf59NTUS.e0b.n.ADnIud.NDcHQpccKSREr9bt6kWDAG"], ["created_at", "2018-12-07 01:52:37.649388"], ["updated_at", "2018-12-07 01:52:37.649388"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.650920"], ["updated_at", "2018-12-07 01:52:37.650920"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8178], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10902], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10902], ["room_id", 8178], ["created_at", "2018-12-07 01:52:37.653957"], ["updated_at", "2018-12-07 01:52:37.653957"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xPab2n6THS3SPu6haCUbNufuib5tOt3dtrWdzgaToTRujqSBaMGIG"], ["created_at", "2018-12-07 01:52:37.660106"], ["updated_at", "2018-12-07 01:52:37.660106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.661613"], ["updated_at", "2018-12-07 01:52:37.661613"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8179], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10903], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10903], ["room_id", 8179], ["created_at", "2018-12-07 01:52:37.664786"], ["updated_at", "2018-12-07 01:52:37.664786"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xNk8NQGTborWxnDnXnRmY.YCgWyaZ8nqCkoexCB5HqEHSMu2Rn2Tu"], ["created_at", "2018-12-07 01:52:37.687133"], ["updated_at", "2018-12-07 01:52:37.687133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.688708"], ["updated_at", "2018-12-07 01:52:37.688708"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.695615"], ["last_sign_in_at", "2018-12-07 01:52:37.695615"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.696158"], ["id", 10904]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8180"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8180 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8180], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10904], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10904], ["room_id", 8180], ["created_at", "2018-12-07 01:52:37.704185"], ["updated_at", "2018-12-07 01:52:37.704185"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8180], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ff2m/PYMSVaKwrdpFawLQ.5zBg4WCtFrXPCdZf7g/o3Sli8JA2JJW"], ["created_at", "2018-12-07 01:52:37.709862"], ["updated_at", "2018-12-07 01:52:37.709862"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.711313"], ["updated_at", "2018-12-07 01:52:37.711313"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.713041"], ["last_sign_in_at", "2018-12-07 01:52:37.713041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.713362"], ["id", 10905]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8181"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8181 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8181], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10905], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10905], ["room_id", 8181], ["created_at", "2018-12-07 01:52:37.717392"], ["updated_at", "2018-12-07 01:52:37.717392"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$d8ABJIsvwzZySTomfi/gvu8eTAsf/kGRYu.wYHON45C7/dBEeR9C."], ["created_at", "2018-12-07 01:52:37.722255"], ["updated_at", "2018-12-07 01:52:37.722255"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.723601"], ["updated_at", "2018-12-07 01:52:37.723601"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.725678"], ["last_sign_in_at", "2018-12-07 01:52:37.725678"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.726077"], ["id", 10906]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8182", "user_id"=>"10906"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8182 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8182], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10906], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10906], ["room_id", 8182], ["created_at", "2018-12-07 01:52:37.731000"], ["updated_at", "2018-12-07 01:52:37.731000"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8182", "user_id"=>"10906"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10906], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8182 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8182], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10906], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10906], ["room_id", 8182], ["created_at", "2018-12-07 01:52:37.737194"], ["updated_at", "2018-12-07 01:52:37.737194"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QpSGD.1YIrGe6.XBsATB6.qJXo48wkoL0GNWcf9HdtvQNb6u4ayHK"], ["created_at", "2018-12-07 01:52:37.742002"], ["updated_at", "2018-12-07 01:52:37.742002"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.743502"], ["updated_at", "2018-12-07 01:52:37.743502"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.745563"], ["last_sign_in_at", "2018-12-07 01:52:37.745563"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.745909"], ["id", 10907]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8183", "user_id"=>"10907"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8183 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8183], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10907], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10907], ["room_id", 8183], ["created_at", "2018-12-07 01:52:37.750124"], ["updated_at", "2018-12-07 01:52:37.750124"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8183", "user_id"=>"10907"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10907], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8183 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8183], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10907], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10907], ["room_id", 8183], ["created_at", "2018-12-07 01:52:37.755863"], ["updated_at", "2018-12-07 01:52:37.755863"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8183], ["user_id", 10907], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1zh0mIoTmabLyDxqc7dhzeCKDlBevLIyQVzLZnlmuuH/VqfvUN9l6"], ["created_at", "2018-12-07 01:52:37.762270"], ["updated_at", "2018-12-07 01:52:37.762270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.763864"], ["updated_at", "2018-12-07 01:52:37.763864"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.765947"], ["last_sign_in_at", "2018-12-07 01:52:37.765947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.766277"], ["id", 10908]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8184", "user_id"=>"10908"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8184 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8184], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10908], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10908], ["room_id", 8184], ["created_at", "2018-12-07 01:52:37.770460"], ["updated_at", "2018-12-07 01:52:37.770460"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8184", "user_id"=>"10908"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10908], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8184 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8184], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10908], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10908], ["room_id", 8184], ["created_at", "2018-12-07 01:52:37.776295"], ["updated_at", "2018-12-07 01:52:37.776295"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8184], ["user_id", 10908], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RUNvPnHOsTDoKZDNhTYgve.uWaLnedEzwDpmnoWNeaA.CD86gYGQy"], ["created_at", "2018-12-07 01:52:37.781704"], ["updated_at", "2018-12-07 01:52:37.781704"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.783102"], ["updated_at", "2018-12-07 01:52:37.783102"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.784835"], ["last_sign_in_at", "2018-12-07 01:52:37.784835"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.785211"], ["id", 10909]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8185"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8185], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i3C/v37UMP/5d/ywx86xtuSDebFk9XIH4pe9.0SAzkwlyX/feB3Me"], ["created_at", "2018-12-07 01:52:37.792551"], ["updated_at", "2018-12-07 01:52:37.792551"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.794118"], ["updated_at", "2018-12-07 01:52:37.794118"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.795939"], ["last_sign_in_at", "2018-12-07 01:52:37.795939"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.796273"], ["id", 10910]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8186"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$G1uI9c0/Hrdkuc4PbManluQIk6/QE5NXh87r96xH81pyqG1mV.wii"], ["created_at", "2018-12-07 01:52:37.802771"], ["updated_at", "2018-12-07 01:52:37.802771"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.804149"], ["updated_at", "2018-12-07 01:52:37.804149"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8187], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10911], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10911], ["room_id", 8187], ["created_at", "2018-12-07 01:52:37.806760"], ["updated_at", "2018-12-07 01:52:37.806760"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8187” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.808188"], ["last_sign_in_at", "2018-12-07 01:52:37.808188"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.808516"], ["id", 10911]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8187"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8187], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8187')
Rendered appointments/show.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (3.6ms)

Completed 200 OK in 151ms (Views: 149.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UzEPLJ8Gj/FcNllqlg2cp.6wteb4ckOWN/E/vmpNP0/2gX10dUs3."], ["created_at", "2018-12-07 01:52:37.968090"], ["updated_at", "2018-12-07 01:52:37.968090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:37.971213"], ["updated_at", "2018-12-07 01:52:37.971213"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8188], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10912], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10912], ["room_id", 8188], ["created_at", "2018-12-07 01:52:37.976775"], ["updated_at", "2018-12-07 01:52:37.976775"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4248/edit” for 127.0.0.1 at 2018-12-06 23:52:37 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:37.981757"], ["last_sign_in_at", "2018-12-07 01:52:37.981757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:37.982299"], ["id", 10912]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4248"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4248], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.5ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Y/8nrqMqwn/Vc2rwEZdIeuA6IjN/v5yfWWOuhpWGKzt8cYG7IYXEq"], ["created_at", "2018-12-07 01:52:38.004667"], ["updated_at", "2018-12-07 01:52:38.004667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.007454"], ["last_sign_in_at", "2018-12-07 01:52:38.007454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.007885"], ["id", 10913]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VzGVfTOorrPWjKO01GwHzePWDrrbb4Q5tBdUypYSqtV5P89LsuJTq"], ["created_at", "2018-12-07 01:52:38.033015"], ["updated_at", "2018-12-07 01:52:38.033015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.036450"], ["updated_at", "2018-12-07 01:52:38.036450"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8189], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10914], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10914], ["room_id", 8189], ["created_at", "2018-12-07 01:52:38.042636"], ["updated_at", "2018-12-07 01:52:38.042636"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8189], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10914], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10914], ["room_id", 8189], ["created_at", "2018-12-07 01:52:38.048534"], ["updated_at", "2018-12-07 01:52:38.048534"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.050874"], ["last_sign_in_at", "2018-12-07 01:52:38.050874"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.051327"], ["id", 10914]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10914]]
Rendered appointments/my_appointments.html.erb within layouts/application (12.7ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 23ms (Views: 15.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bojVksHdIBBxMjWhiwaY.uHEpy2G6WliIneMP4yKznMgykjma1xKe"], ["created_at", "2018-12-07 01:52:38.083142"], ["updated_at", "2018-12-07 01:52:38.083142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.085425"], ["updated_at", "2018-12-07 01:52:38.085425"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8190], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10915], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10915], ["room_id", 8190], ["created_at", "2018-12-07 01:52:38.089986"], ["updated_at", "2018-12-07 01:52:38.089986"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8190], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10915], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10915], ["room_id", 8190], ["created_at", "2018-12-07 01:52:38.093520"], ["updated_at", "2018-12-07 01:52:38.093520"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.095305"], ["last_sign_in_at", "2018-12-07 01:52:38.095305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.095760"], ["id", 10915]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10915]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$e1ZvchM8/cZMbiwSP23uke8hqVbVKk1nvvf5b9LIDARVFMOBoz2N2"], ["created_at", "2018-12-07 01:52:38.106829"], ["updated_at", "2018-12-07 01:52:38.106829"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.108725"], ["updated_at", "2018-12-07 01:52:38.108725"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8191], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10916], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10916], ["room_id", 8191], ["created_at", "2018-12-07 01:52:38.111992"], ["updated_at", "2018-12-07 01:52:38.111992"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4253” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.113638"], ["last_sign_in_at", "2018-12-07 01:52:38.113638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.114046"], ["id", 10916]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4253"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4253], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4253]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lj3o.2J5SIA13VcrguWtyuM3oCBlA3ssPLs9uI6sH84Ve3mfjhi/y"], ["created_at", "2018-12-07 01:52:38.123655"], ["updated_at", "2018-12-07 01:52:38.123655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.125262"], ["updated_at", "2018-12-07 01:52:38.125262"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nugSwCoyM22FUIGtpHTm2OxHsTvtB/kTqwIO1ok8LlMaPYr4ium1y"], ["created_at", "2018-12-07 01:52:38.128359"], ["updated_at", "2018-12-07 01:52:38.128359"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8192], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10918], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10918], ["room_id", 8192], ["created_at", "2018-12-07 01:52:38.131230"], ["updated_at", "2018-12-07 01:52:38.131230"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4254” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.133063"], ["last_sign_in_at", "2018-12-07 01:52:38.133063"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.133419"], ["id", 10917]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4254"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4254], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8192], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10918], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oCOF2w14EcZwVUI5Pxj1IeuOzHfMdYVtaEopLHEkI8HRG1grI3Er6"], ["created_at", "2018-12-07 01:52:38.142410"], ["updated_at", "2018-12-07 01:52:38.142410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.143835"], ["updated_at", "2018-12-07 01:52:38.143835"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NI1ROMWUN/BvmBwSRnyMleAHrfVbWiW7JA3H3OgLQm.jS30xZf/Ca"], ["created_at", "2018-12-07 01:52:38.146864"], ["updated_at", "2018-12-07 01:52:38.146864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8193], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10920], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10920], ["room_id", 8193], ["created_at", "2018-12-07 01:52:38.150223"], ["updated_at", "2018-12-07 01:52:38.150223"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4255” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.152390"], ["last_sign_in_at", "2018-12-07 01:52:38.152390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.152744"], ["id", 10919]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4255"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4255], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8193], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10920], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xu/hJ8nJJaGS8Ybik1mUBuprFEM/7BXqJ5ZvTCR6xm4Z2UlOLPulK"], ["created_at", "2018-12-07 01:52:38.161260"], ["updated_at", "2018-12-07 01:52:38.161260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.162750"], ["updated_at", "2018-12-07 01:52:38.162750"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4l6U0PifhVPcS6EdNDdxB.NKEF7dq/M3w1Qa6nvy6Q3x3O4m2u19S"], ["created_at", "2018-12-07 01:52:38.165806"], ["updated_at", "2018-12-07 01:52:38.165806"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8194], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10922], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10922], ["room_id", 8194], ["created_at", "2018-12-07 01:52:38.168678"], ["updated_at", "2018-12-07 01:52:38.168678"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4256” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.170507"], ["last_sign_in_at", "2018-12-07 01:52:38.170507"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.170838"], ["id", 10921]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4256"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4256], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8194], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10922], ["LIMIT", 1]]
SQL (0.1ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:52:38.174677"], ["id", 4256]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.5ms) Date: Thu, 06 Dec 2018 23:52:38 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d2662b949_47f42b03789cc600620e5@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d2662b360_47f42b03789cc6006199e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d2662b360_47f42b03789cc6006199e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d2662b360_47f42b03789cc6006199e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d2662b360_47f42b03789cc6006199e–

Completed 302 Found in 8ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$79kcdhwDpMPjvUlNf4TrA.jHoKvrSwThW2fwk9Z/M3keYUZmmny1S"], ["created_at", "2018-12-07 01:52:38.185895"], ["updated_at", "2018-12-07 01:52:38.185895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.187686"], ["updated_at", "2018-12-07 01:52:38.187686"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Im2iKqxL4GNK1Drr8AG.VuPoUlXK.cXYambXizlV7n70MfCeRl4S."], ["created_at", "2018-12-07 01:52:38.190980"], ["updated_at", "2018-12-07 01:52:38.190980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8195], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10924], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10924], ["room_id", 8195], ["created_at", "2018-12-07 01:52:38.194150"], ["updated_at", "2018-12-07 01:52:38.194150"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:52:38.195552"], ["id", 4257]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8195], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10924], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10924], ["room_id", 8195], ["created_at", "2018-12-07 01:52:38.198251"], ["updated_at", "2018-12-07 01:52:38.198251"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:52:38.199563"], ["id", 4258]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.200960"], ["last_sign_in_at", "2018-12-07 01:52:38.200960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.201316"], ["id", 10923]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10924], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8195], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10924], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8195], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TB4yRVM7PlfYuEtFpkCkQegOPVyPxKw849X0tYg4TW6u6urMnC.I6"], ["created_at", "2018-12-07 01:52:38.214840"], ["updated_at", "2018-12-07 01:52:38.214840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.216548"], ["updated_at", "2018-12-07 01:52:38.216548"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$M3Pn.WHOf8zaiLQrSzXO3uldTGHBtp1Vj6f2oboq7ZBy3kw2sLNDq"], ["created_at", "2018-12-07 01:52:38.219691"], ["updated_at", "2018-12-07 01:52:38.219691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8196], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10926], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10926], ["room_id", 8196], ["created_at", "2018-12-07 01:52:38.222761"], ["updated_at", "2018-12-07 01:52:38.222761"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:52:38.224130"], ["id", 4259]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8196], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10926], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10926], ["room_id", 8196], ["created_at", "2018-12-07 01:52:38.226769"], ["updated_at", "2018-12-07 01:52:38.226769"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:52:38.228034"], ["id", 4260]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.229442"], ["last_sign_in_at", "2018-12-07 01:52:38.229442"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.229815"], ["id", 10925]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10926], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8196], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10926], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8196], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$32FuquvO8uyaz8ovkXKJpO6n7fduYHQDHnez5K9yAz3.KwvcYCVRG"], ["created_at", "2018-12-07 01:52:38.241988"], ["updated_at", "2018-12-07 01:52:38.241988"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.244414"], ["last_sign_in_at", "2018-12-07 01:52:38.244414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.244938"], ["id", 10927]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gExN246ZIHg00N5DgtyLf.udxz5vK1c4Z3KyVXztKWVS3aR7sTFmO"], ["created_at", "2018-12-07 01:52:38.258458"], ["updated_at", "2018-12-07 01:52:38.258458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.260206"], ["last_sign_in_at", "2018-12-07 01:52:38.260206"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.260552"], ["id", 10928]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hCgmOk8MS223sO7HhpsP6.27Kqt/5CTWDrbVKaG2Th2HVWApWTkJ6"], ["created_at", "2018-12-07 01:52:38.266654"], ["updated_at", "2018-12-07 01:52:38.266654"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.268213"], ["last_sign_in_at", "2018-12-07 01:52:38.268213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.268550"], ["id", 10929]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pktEzD2Hbfu72gsrZv.KT.6vi7RBI8BHzFuSGOk4uvKuooL82Kxm."], ["created_at", "2018-12-07 01:52:38.278974"], ["updated_at", "2018-12-07 01:52:38.278974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.280755"], ["last_sign_in_at", "2018-12-07 01:52:38.280755"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.281112"], ["id", 10930]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CBNyMygcIZDE7w6lXuWF8enW2NWDnaNnFhEQc0TUpOqN3aEjiq6Pa"], ["created_at", "2018-12-07 01:52:38.294887"], ["updated_at", "2018-12-07 01:52:38.294887"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.296445"], ["updated_at", "2018-12-07 01:52:38.296445"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8197” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.297822"], ["last_sign_in_at", "2018-12-07 01:52:38.297822"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.298212"], ["id", 10931]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8197"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8197], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m24Lt64uyqrIW5zwZratpOUqeTrgpQH/tHt8KZOsPKo.5fa9Hz.bO"], ["created_at", "2018-12-07 01:52:38.307647"], ["updated_at", "2018-12-07 01:52:38.307647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.309530"], ["updated_at", "2018-12-07 01:52:38.309530"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8198” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.311049"], ["last_sign_in_at", "2018-12-07 01:52:38.311049"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.311415"], ["id", 10932]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8198"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8198], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.317962"], ["updated_at", "2018-12-07 01:52:38.317962"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8199” for 127.0.0.1 at 2018-12-06 23:52:38 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8199"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5jlUaAqWVFxmxWbSdcq3V.5yQelAfk/bmrIpfSb9liD.C5sZoLmHO"], ["created_at", "2018-12-07 01:52:38.324170"], ["updated_at", "2018-12-07 01:52:38.324170"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.325753"], ["updated_at", "2018-12-07 01:52:38.325753"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8200” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.327158"], ["last_sign_in_at", "2018-12-07 01:52:38.327158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.327553"], ["id", 10933]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8200"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.335473"], ["updated_at", "2018-12-07 01:52:38.335473"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8201” for 127.0.0.1 at 2018-12-06 23:52:38 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8201"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mp.IdebK8hOD0HQQanqwQ.uQpGQVIoTS.sc5UZbit1SCF7loZu/pq"], ["created_at", "2018-12-07 01:52:38.342532"], ["updated_at", "2018-12-07 01:52:38.342532"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.344207"], ["updated_at", "2018-12-07 01:52:38.344207"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8202/edit” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.345695"], ["last_sign_in_at", "2018-12-07 01:52:38.345695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.346088"], ["id", 10934]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8202"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8202], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uH5q8ziCiHZzcZFvoC5tRuZTwvcbQE2ACf53Q1RklKPupO8tI3Q2K"], ["created_at", "2018-12-07 01:52:38.356667"], ["updated_at", "2018-12-07 01:52:38.356667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.358239"], ["updated_at", "2018-12-07 01:52:38.358239"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8203/edit” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.359684"], ["last_sign_in_at", "2018-12-07 01:52:38.359684"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.360050"], ["id", 10935]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8203"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8203], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.367790"], ["updated_at", "2018-12-07 01:52:38.367790"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8204” for 127.0.0.1 at 2018-12-06 23:52:38 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8204"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KnZG8AgGuJ/HJjum27obseajhNXu8cZH2OHiAz0O4JHwN8JluSyYq"], ["created_at", "2018-12-07 01:52:38.375053"], ["updated_at", "2018-12-07 01:52:38.375053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.377279"], ["last_sign_in_at", "2018-12-07 01:52:38.377279"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.377624"], ["id", 10936]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.380072"], ["updated_at", "2018-12-07 01:52:38.380072"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Crdp8W7bo6ec8.ZRsnsx0.0BCvo0.6/D/mGCbiqWRugajCUwVtD3q"], ["created_at", "2018-12-07 01:52:38.385856"], ["updated_at", "2018-12-07 01:52:38.385856"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.387886"], ["last_sign_in_at", "2018-12-07 01:52:38.387886"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.388312"], ["id", 10937]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.390729"], ["updated_at", "2018-12-07 01:52:38.390729"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kZUbIT/N6AmNe/CV4Gw5guZG9KG/F4C/oG6fhcQEBsSxe2.6LZviG"], ["created_at", "2018-12-07 01:52:38.395903"], ["updated_at", "2018-12-07 01:52:38.395903"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.397876"], ["last_sign_in_at", "2018-12-07 01:52:38.397876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.398213"], ["id", 10938]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b/CmVTjIUpnMxvvcHAeAGeXJPioU.Uv0qd5YwqxVz0WilVl5g56yi"], ["created_at", "2018-12-07 01:52:38.406976"], ["updated_at", "2018-12-07 01:52:38.406976"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.409114"], ["last_sign_in_at", "2018-12-07 01:52:38.409114"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.409475"], ["id", 10939]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8w8/Gr/C.mr7WfdyeaAIw.IrRDnTg90kbkoC6O8uPocSre2.tFIz2"], ["created_at", "2018-12-07 01:52:38.416847"], ["updated_at", "2018-12-07 01:52:38.416847"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.418808"], ["last_sign_in_at", "2018-12-07 01:52:38.418808"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.419170"], ["id", 10940]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4utKC4HUFr0LvX3yBL.nZ.ruhEF562HVKV.zHh.VFQD6FZ6/vEd3u"], ["created_at", "2018-12-07 01:52:38.425034"], ["updated_at", "2018-12-07 01:52:38.425034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.426569"], ["updated_at", "2018-12-07 01:52:38.426569"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8207” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.428269"], ["last_sign_in_at", "2018-12-07 01:52:38.428269"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.428655"], ["id", 10941]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8207"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8207], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:52:38.431655"], ["id", 8207]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8207 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rwQmMmaNgAt7sdOOYBn/kOFPsIBwxW4R2MQ9QrAFF3CWPTNNAmmhy"], ["created_at", "2018-12-07 01:52:38.438130"], ["updated_at", "2018-12-07 01:52:38.438130"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.439761"], ["updated_at", "2018-12-07 01:52:38.439761"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8208” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.441554"], ["last_sign_in_at", "2018-12-07 01:52:38.441554"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.441974"], ["id", 10942]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8208"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8208], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:52:38.444896"], ["id", 8208]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8208 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T5YtzX25Jb226aABT/FDB.Sq8LcozqAKgptr0aMk5q1GJp9/0W6JW"], ["created_at", "2018-12-07 01:52:38.450266"], ["updated_at", "2018-12-07 01:52:38.450266"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.451913"], ["updated_at", "2018-12-07 01:52:38.451913"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8209” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.453729"], ["last_sign_in_at", "2018-12-07 01:52:38.453729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.454175"], ["id", 10943]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8209"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8209], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C7FHo1MhuPuOb/oz0c/.verkncu0CJWa78p5yaA/GTHVeiuGOjW5e"], ["created_at", "2018-12-07 01:52:38.466080"], ["updated_at", "2018-12-07 01:52:38.466080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.467648"], ["updated_at", "2018-12-07 01:52:38.467648"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8210” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.469349"], ["last_sign_in_at", "2018-12-07 01:52:38.469349"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.469729"], ["id", 10944]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8210"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8210], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Y3mcE8/TUvLHk8gd0wg3se7KotW14AgWaVyW948KFztIFPjKr9r3K"], ["created_at", "2018-12-07 01:52:38.480346"], ["updated_at", "2018-12-07 01:52:38.480346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.482355"], ["last_sign_in_at", "2018-12-07 01:52:38.482355"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.482673"], ["id", 10945]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/Ek44bNpCLGH80GIkLJAbOVz5K40D8CPb33XSHTcNNmPq/RGZKDMu"], ["created_at", "2018-12-07 01:52:38.488525"], ["updated_at", "2018-12-07 01:52:38.488525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.489969"], ["updated_at", "2018-12-07 01:52:38.489969"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8211” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.491288"], ["last_sign_in_at", "2018-12-07 01:52:38.491288"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.491642"], ["id", 10946]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8211"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8211], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8211]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.IpCZ5Bjz44O/Dw2rj.hoOs4W8BKp/Ky1JaE7bvM8lG5enoPMNjCq"], ["created_at", "2018-12-07 01:52:38.500375"], ["updated_at", "2018-12-07 01:52:38.500375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.502007"], ["updated_at", "2018-12-07 01:52:38.502007"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8212” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.503414"], ["last_sign_in_at", "2018-12-07 01:52:38.503414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.503784"], ["id", 10947]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8212"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8212], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8212]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$81VGu6o/cIrFSEf6NSw2.uhlmuViNGeXOA4aGRPfbQkHOuLgl3z0C"], ["created_at", "2018-12-07 01:52:38.510963"], ["updated_at", "2018-12-07 01:52:38.510963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.512483"], ["updated_at", "2018-12-07 01:52:38.512483"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8213” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.513829"], ["last_sign_in_at", "2018-12-07 01:52:38.513829"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.514183"], ["id", 10948]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8213"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BSu1s3BpNLpQBQOrX3kwLuBNGdmnyZfgh.FakKF73xkiWw4s2a8vK"], ["created_at", "2018-12-07 01:52:38.520267"], ["updated_at", "2018-12-07 01:52:38.520267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.521761"], ["updated_at", "2018-12-07 01:52:38.521761"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8214” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.523096"], ["last_sign_in_at", "2018-12-07 01:52:38.523096"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.523447"], ["id", 10949]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8214"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WZechSJ/fj99bzJxwQ6jsOHvjbOZJpwdQYrBx7Cp8MfcjEiqTdM5e"], ["created_at", "2018-12-07 01:52:38.530143"], ["updated_at", "2018-12-07 01:52:38.530143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.531879"], ["last_sign_in_at", "2018-12-07 01:52:38.531879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.532238"], ["id", 10950]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wClLdsRa4VYnuPemXcxF5.SEEDvb8ygohrDO9mh.dUiRGo2LBssea"], ["created_at", "2018-12-07 01:52:38.543772"], ["updated_at", "2018-12-07 01:52:38.543772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.545296"], ["updated_at", "2018-12-07 01:52:38.545296"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.546538"], ["updated_at", "2018-12-07 01:52:38.546538"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.547761"], ["updated_at", "2018-12-07 01:52:38.547761"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8215], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10951], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10951], ["room_id", 8215], ["created_at", "2018-12-07 01:52:38.550518"], ["updated_at", "2018-12-07 01:52:38.550518"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.552128"], ["last_sign_in_at", "2018-12-07 01:52:38.552128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.552494"], ["id", 10951]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZpkjUEsezaE4FnIYNjrQH.nMfXV/lr0wwzJxKTbXAi3wDrT8twB4K"], ["created_at", "2018-12-07 01:52:38.569788"], ["updated_at", "2018-12-07 01:52:38.569788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.571437"], ["updated_at", "2018-12-07 01:52:38.571437"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.572693"], ["updated_at", "2018-12-07 01:52:38.572693"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:52:38.573932"], ["updated_at", "2018-12-07 01:52:38.573932"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8218], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10952], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10952], ["room_id", 8218], ["created_at", "2018-12-07 01:52:38.576838"], ["updated_at", "2018-12-07 01:52:38.576838"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:52:38 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:52:38.578381"], ["last_sign_in_at", "2018-12-07 01:52:38.578381"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:52:38.578822"], ["id", 10952]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kimtuxsTgI0/bL5VVB3XXujgZo2wlyore3NN5IfUSfFuVNsemwu3K"], ["created_at", "2018-12-07 01:59:00.373786"], ["updated_at", "2018-12-07 01:59:00.373786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QxBqOTned8aNZ7QPzHCXRu4REekdWcQuUfLocn2D9VrUJ5XYsRkxG"], ["created_at", "2018-12-07 01:59:00.378100"], ["updated_at", "2018-12-07 01:59:00.378100"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.385458"], ["updated_at", "2018-12-07 01:59:00.385458"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8221], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10954], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10954], ["room_id", 8221], ["created_at", "2018-12-07 01:59:00.404183"], ["updated_at", "2018-12-07 01:59:00.404183"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4263"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4263], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8221], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10954], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 125.4ms Sent mail to 123@123.com (5.4ms) Date: Thu, 06 Dec 2018 23:59:00 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d3e48469b_48d72af1c0c166003302d@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d3e48389a_48d72af1c0c166003297c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d3e48389a_48d72af1c0c166003297c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d3e48389a_48d72af1c0c166003297c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d3e48389a_48d72af1c0c166003297c–

Completed 302 Found in 135ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YMN/tRcDmskpUHcAftXBe.2GZqGdWbPWmTlKwHpvHCFf1wVbnpbHO"], ["created_at", "2018-12-07 01:59:00.549333"], ["updated_at", "2018-12-07 01:59:00.549333"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nvVpjxCF3jVhvCZ.mo9m2e8Z90uulA40Tj2ZPiNKO./8hlNyZxUC6"], ["created_at", "2018-12-07 01:59:00.552458"], ["updated_at", "2018-12-07 01:59:00.552458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.553810"], ["updated_at", "2018-12-07 01:59:00.553810"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8222], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10956], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10956], ["room_id", 8222], ["created_at", "2018-12-07 01:59:00.556617"], ["updated_at", "2018-12-07 01:59:00.556617"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4264"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4264], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8222], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10956], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:59:00.561169"], ["id", 4264]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 23:59:00 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d3e489f96_48d72af1c0c1660033249@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d3e489a12_48d72af1c0c166003317c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d3e489a12_48d72af1c0c166003317c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d3e489a12_48d72af1c0c166003317c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d3e489a12_48d72af1c0c166003317c–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7uSXfQsV.XtzY9TxSZv8/eppq5WsjCyg3clTSc6Ik6srMJ80iWpv."], ["created_at", "2018-12-07 01:59:00.570854"], ["updated_at", "2018-12-07 01:59:00.570854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rNNn4D2PFAK2MmqvCDC0MuBoRrsRF.7G5HgCD2DBJ7/0QVInMvhu6"], ["created_at", "2018-12-07 01:59:00.574188"], ["updated_at", "2018-12-07 01:59:00.574188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.576027"], ["updated_at", "2018-12-07 01:59:00.576027"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8223], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10958], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10958], ["room_id", 8223], ["created_at", "2018-12-07 01:59:00.579550"], ["updated_at", "2018-12-07 01:59:00.579550"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6azU/rFMWRCq2venymDY0eE69ZMydl8dPswZIGx7XdqJHKrACbram"], ["created_at", "2018-12-07 01:59:00.585996"], ["updated_at", "2018-12-07 01:59:00.585996"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7rj60/VIBiproeVtsnKOQ.HBP.G2QokMPg8LIwl/RWuztfODa2VSW"], ["created_at", "2018-12-07 01:59:00.589204"], ["updated_at", "2018-12-07 01:59:00.589204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.590735"], ["updated_at", "2018-12-07 01:59:00.590735"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8224], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10960], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10960], ["room_id", 8224], ["created_at", "2018-12-07 01:59:00.593803"], ["updated_at", "2018-12-07 01:59:00.593803"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4266], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$v0Q0C281H.9no/67b.tlJe0mslMXpBB6w1Wy.06/oX59/XqVsZGEu"], ["created_at", "2018-12-07 01:59:00.599173"], ["updated_at", "2018-12-07 01:59:00.599173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10961"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "mX22mRbPVgA4OSHatGUP6Q"], ["updated_at", "2018-12-07 01:59:00.602376"], ["id", 10961]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:59:00.603947"], ["reset_sent_at", "2018-12-07 01:59:00.603625"], ["id", 10961]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.4ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.4ms Sent mail to teste@unb.com.br (3.0ms) Date: Thu, 06 Dec 2018 23:59:00 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d3e495582_48d72af1c0c166003359b@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d3e494e2a_48d72af1c0c16600334c1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d3e494e2a_48d72af1c0c16600334c1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/mX22mRbPVgA4OSHatGUP6Q/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d3e494e2a_48d72af1c0c16600334c1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/mX22mRbPVgA4OSHatGUP6Q/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d3e494e2a_48d72af1c0c16600334c1–

Redirected to test.host/login Completed 302 Found in 13ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$IV46H7Ls.0R1sN6hbQdue.53LK4TseZMcz9vtM8sx1RTbYLSJipr2"], ["created_at", "2018-12-07 01:59:00.617915"], ["updated_at", "2018-12-07 01:59:00.617915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$fQ5eemMNa0N2XE9hwLjIUO3xWz5zf.Ys8h4sb7UaxoOnQI57ITwQe"], ["created_at", "2018-12-07 01:59:00.625203"], ["updated_at", "2018-12-07 01:59:00.625203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10963"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$OBsq.WLZJgGaJwcGkVIHIuctb5SxZE7BRYFpy0xsuldpFIME.md5q"], ["updated_at", "2018-12-07 01:59:00.629221"], ["id", 10963]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$qNGidbzVrC9Ec3TiMckAruJV3mqsJFJjvwiXklL.9zj6U2RsQPcXS"], ["created_at", "2018-12-07 01:59:00.634177"], ["updated_at", "2018-12-07 01:59:00.634177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"10964"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$lQrnld4T7mGd.ZmM/DsczeI5yeO2GowfftBdejLv.aLpi0ezqNqDi"], ["created_at", "2018-12-07 01:59:00.642451"], ["updated_at", "2018-12-07 01:59:00.642451"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10965"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ZkGDC1qnEfBUwFdkhbiBWORqzKpE0fpALMncjwHynAxPeEv5eO1vW"], ["created_at", "2018-12-07 01:59:00.656313"], ["updated_at", "2018-12-07 01:59:00.656313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10966"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$u3/S8wcwIsuhd74tJdFE6uXQveOlY/ByY2ZRbnRQHwc2uHFrwe1V."], ["created_at", "2018-12-07 01:59:00.665093"], ["updated_at", "2018-12-07 01:59:00.665093"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"10967"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VCEcsPCSnVNt8sNV0ClHb.vuu6O5qPKxl2lFFKjtpBEP2x/Q/Cp2q"], ["created_at", "2018-12-07 01:59:00.673453"], ["updated_at", "2018-12-07 01:59:00.673453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ibkEkvz7l7jDDt.dLI2aTOA3c4RQ3p/qk2QGVIw9psHE7ySK16Psy"], ["created_at", "2018-12-07 01:59:00.680240"], ["updated_at", "2018-12-07 01:59:00.680240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GMNpj2WnwHC5DTc8.t7nlOv5Rv.K/mrgM.JINy6CSpJNPD7xRbYMO"], ["created_at", "2018-12-07 01:59:00.687147"], ["updated_at", "2018-12-07 01:59:00.687147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.688700"], ["updated_at", "2018-12-07 01:59:00.688700"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8225], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10970], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10970], ["room_id", 8225], ["created_at", "2018-12-07 01:59:00.691785"], ["updated_at", "2018-12-07 01:59:00.691785"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.5ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YKPHT9s26r9oe2HpBCO9teJId24QJGzz6sV.oexG4VX7Q7BftLg1e"], ["created_at", "2018-12-07 01:59:00.697980"], ["updated_at", "2018-12-07 01:59:00.697980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.699482"], ["updated_at", "2018-12-07 01:59:00.699482"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8226], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10971], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10971], ["room_id", 8226], ["created_at", "2018-12-07 01:59:00.702699"], ["updated_at", "2018-12-07 01:59:00.702699"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$P7gleUCuDX6M/PsTIEMzOOEak5pkjGlD7I86Zcgd/Z2Wyn035dejq"], ["created_at", "2018-12-07 01:59:00.725455"], ["updated_at", "2018-12-07 01:59:00.725455"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.727067"], ["updated_at", "2018-12-07 01:59:00.727067"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.734100"], ["last_sign_in_at", "2018-12-07 01:59:00.734100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.734703"], ["id", 10972]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8227"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8227 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8227], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10972], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10972], ["room_id", 8227], ["created_at", "2018-12-07 01:59:00.742501"], ["updated_at", "2018-12-07 01:59:00.742501"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8227], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9KceZY53/DrDn1cDroTGOed0vWX05ei22J7cKyZg5tWBOYd4Dci3S"], ["created_at", "2018-12-07 01:59:00.748428"], ["updated_at", "2018-12-07 01:59:00.748428"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.749954"], ["updated_at", "2018-12-07 01:59:00.749954"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.751849"], ["last_sign_in_at", "2018-12-07 01:59:00.751849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.752214"], ["id", 10973]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8228"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8228 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8228], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10973], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10973], ["room_id", 8228], ["created_at", "2018-12-07 01:59:00.756542"], ["updated_at", "2018-12-07 01:59:00.756542"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zyt7cZb5n0UTiC0QBq9JWuFBPBSkF5XICXCSCp9kzL0K/nv0i8NLy"], ["created_at", "2018-12-07 01:59:00.761679"], ["updated_at", "2018-12-07 01:59:00.761679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.763288"], ["updated_at", "2018-12-07 01:59:00.763288"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.766007"], ["last_sign_in_at", "2018-12-07 01:59:00.766007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.766448"], ["id", 10974]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8229", "user_id"=>"10974"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8229 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8229], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10974], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10974], ["room_id", 8229], ["created_at", "2018-12-07 01:59:00.771134"], ["updated_at", "2018-12-07 01:59:00.771134"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8229", "user_id"=>"10974"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10974], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8229 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8229], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10974], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10974], ["room_id", 8229], ["created_at", "2018-12-07 01:59:00.777412"], ["updated_at", "2018-12-07 01:59:00.777412"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5M3SAeETVnhKfNYX5sDGlO5N/WC7mJnn1Y73xpkny537F732tUbu6"], ["created_at", "2018-12-07 01:59:00.782319"], ["updated_at", "2018-12-07 01:59:00.782319"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.783818"], ["updated_at", "2018-12-07 01:59:00.783818"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.786055"], ["last_sign_in_at", "2018-12-07 01:59:00.786055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.786401"], ["id", 10975]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8230", "user_id"=>"10975"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8230 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8230], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10975], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10975], ["room_id", 8230], ["created_at", "2018-12-07 01:59:00.790606"], ["updated_at", "2018-12-07 01:59:00.790606"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8230", "user_id"=>"10975"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10975], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8230 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8230], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10975], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10975], ["room_id", 8230], ["created_at", "2018-12-07 01:59:00.796620"], ["updated_at", "2018-12-07 01:59:00.796620"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8230], ["user_id", 10975], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IZPBWbRdt33HUf0u11mUM.OsglmqjooEjOWjEVLTX36tNfNmMFyaG"], ["created_at", "2018-12-07 01:59:00.802832"], ["updated_at", "2018-12-07 01:59:00.802832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.804308"], ["updated_at", "2018-12-07 01:59:00.804308"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.806370"], ["last_sign_in_at", "2018-12-07 01:59:00.806370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.806722"], ["id", 10976]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8231", "user_id"=>"10976"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8231 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8231], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10976], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10976], ["room_id", 8231], ["created_at", "2018-12-07 01:59:00.811002"], ["updated_at", "2018-12-07 01:59:00.811002"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8231", "user_id"=>"10976"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 10976], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8231 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8231], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10976], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 10976], ["room_id", 8231], ["created_at", "2018-12-07 01:59:00.816851"], ["updated_at", "2018-12-07 01:59:00.816851"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8231], ["user_id", 10976], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$j92ii66Y5IKBq2LeQ2b6M.rfWqyodYeD/x.B8CsnM4YD6Eri9oRka"], ["created_at", "2018-12-07 01:59:00.822238"], ["updated_at", "2018-12-07 01:59:00.822238"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.823744"], ["updated_at", "2018-12-07 01:59:00.823744"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.825586"], ["last_sign_in_at", "2018-12-07 01:59:00.825586"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.825951"], ["id", 10977]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8232"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 20ms (ActiveRecord: 0.2ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8232], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NSk1n8ND/nEbhUEbQMEYlOLN0.vhhWVoc0mGruXO4dwZoTTwnDZrW"], ["created_at", "2018-12-07 01:59:00.856515"], ["updated_at", "2018-12-07 01:59:00.856515"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.858129"], ["updated_at", "2018-12-07 01:59:00.858129"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.860437"], ["last_sign_in_at", "2018-12-07 01:59:00.860437"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.860938"], ["id", 10978]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8233"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

No template found for AppointmentsController#create, rendering head :no_content Completed 204 No Content in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GFwPu6Apq6/CqNUx6Hxl3uRy5IVYOIuxVx7P2O.JNgwnNUX56vZBy"], ["created_at", "2018-12-07 01:59:00.875289"], ["updated_at", "2018-12-07 01:59:00.875289"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:00.876841"], ["updated_at", "2018-12-07 01:59:00.876841"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8234], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10979], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10979], ["room_id", 8234], ["created_at", "2018-12-07 01:59:00.879587"], ["updated_at", "2018-12-07 01:59:00.879587"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8234” for 127.0.0.1 at 2018-12-06 23:59:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:00.881100"], ["last_sign_in_at", "2018-12-07 01:59:00.881100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:00.881433"], ["id", 10979]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8234"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8234], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8234')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 200ms (Views: 197.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6pCWVMSUTRNkGyPMSarnnepFfXsljWVEcbc/5lVjrmcN.CCAeMYRK"], ["created_at", "2018-12-07 01:59:01.087105"], ["updated_at", "2018-12-07 01:59:01.087105"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.088707"], ["updated_at", "2018-12-07 01:59:01.088707"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8235], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10980], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10980], ["room_id", 8235], ["created_at", "2018-12-07 01:59:01.091465"], ["updated_at", "2018-12-07 01:59:01.091465"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4278/edit” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.092973"], ["last_sign_in_at", "2018-12-07 01:59:01.092973"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.093304"], ["id", 10980]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4278"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4278], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mAwYZiOjn/vn.i4F081SD.UN1Syz3Hv.ULbHuyy5HyK3.7Kgn4tW."], ["created_at", "2018-12-07 01:59:01.104397"], ["updated_at", "2018-12-07 01:59:01.104397"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.106030"], ["last_sign_in_at", "2018-12-07 01:59:01.106030"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.106346"], ["id", 10981]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KbyleNfcu.2xm9OjKUDRCOCz2ulA.5ighHyi7.oNoSU/YPH4QQn1e"], ["created_at", "2018-12-07 01:59:01.116868"], ["updated_at", "2018-12-07 01:59:01.116868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.118435"], ["updated_at", "2018-12-07 01:59:01.118435"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8236], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10982], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10982], ["room_id", 8236], ["created_at", "2018-12-07 01:59:01.121204"], ["updated_at", "2018-12-07 01:59:01.121204"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8236], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10982], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10982], ["room_id", 8236], ["created_at", "2018-12-07 01:59:01.123832"], ["updated_at", "2018-12-07 01:59:01.123832"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.125263"], ["last_sign_in_at", "2018-12-07 01:59:01.125263"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.125635"], ["id", 10982]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10982]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 8ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.n/m9KByxuOxjKGpd81KL.tLAJh84huOhWx8iHRTyeU6kDCTCMIIy"], ["created_at", "2018-12-07 01:59:01.139788"], ["updated_at", "2018-12-07 01:59:01.139788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.141294"], ["updated_at", "2018-12-07 01:59:01.141294"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8237], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10983], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10983], ["room_id", 8237], ["created_at", "2018-12-07 01:59:01.144766"], ["updated_at", "2018-12-07 01:59:01.144766"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8237], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10983], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10983], ["room_id", 8237], ["created_at", "2018-12-07 01:59:01.147829"], ["updated_at", "2018-12-07 01:59:01.147829"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.149329"], ["last_sign_in_at", "2018-12-07 01:59:01.149329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.149667"], ["id", 10983]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 10983]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bIPJ/wTk8bxmQDLdJTdse.YNw4BKrwyuDkEp/VMk4qtUzGuZ2QI3q"], ["created_at", "2018-12-07 01:59:01.158656"], ["updated_at", "2018-12-07 01:59:01.158656"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.160156"], ["updated_at", "2018-12-07 01:59:01.160156"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8238], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10984], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10984], ["room_id", 8238], ["created_at", "2018-12-07 01:59:01.162873"], ["updated_at", "2018-12-07 01:59:01.162873"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4283” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.164333"], ["last_sign_in_at", "2018-12-07 01:59:01.164333"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.164678"], ["id", 10984]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4283"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4283], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4283]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0eNUs/QyTYCoIKEQb4A5ce6wy8YD5VeoUEetUkeRtugprZe32HxxO"], ["created_at", "2018-12-07 01:59:01.172688"], ["updated_at", "2018-12-07 01:59:01.172688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.174275"], ["updated_at", "2018-12-07 01:59:01.174275"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KK.QAe1doCw/sV5MHmn2QOYKERbnQRuF8yrvFfrcGrRNDoOGV6idm"], ["created_at", "2018-12-07 01:59:01.177772"], ["updated_at", "2018-12-07 01:59:01.177772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8239], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10986], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10986], ["room_id", 8239], ["created_at", "2018-12-07 01:59:01.180851"], ["updated_at", "2018-12-07 01:59:01.180851"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4284” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.182730"], ["last_sign_in_at", "2018-12-07 01:59:01.182730"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.183085"], ["id", 10985]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4284"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4284], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8239], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10986], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J3jLCwcW80E7ha6vr47CruN3QGn3mXnWhe4LG9R955jiYbzD2xYIq"], ["created_at", "2018-12-07 01:59:01.192135"], ["updated_at", "2018-12-07 01:59:01.192135"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.193632"], ["updated_at", "2018-12-07 01:59:01.193632"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$M8VzWbmj7McnwlgmsW32aO3a6hGCxK4OD2EuSadsm5CI2ID7cv1qG"], ["created_at", "2018-12-07 01:59:01.196619"], ["updated_at", "2018-12-07 01:59:01.196619"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8240], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10988], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10988], ["room_id", 8240], ["created_at", "2018-12-07 01:59:01.199405"], ["updated_at", "2018-12-07 01:59:01.199405"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4285” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.201176"], ["last_sign_in_at", "2018-12-07 01:59:01.201176"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.201524"], ["id", 10987]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4285"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4285], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8240], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10988], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mg8uLU8Qfiqi8x8tSRjohu8o4Vs3rzsMJKpRMaxpdw.6BXWS2stG2"], ["created_at", "2018-12-07 01:59:01.210697"], ["updated_at", "2018-12-07 01:59:01.210697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.212300"], ["updated_at", "2018-12-07 01:59:01.212300"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$evEPD9MRVtrYwPtwcsCx2.PSQrgCBLKGeIlu9YRUbD7LexvaLtq4."], ["created_at", "2018-12-07 01:59:01.215278"], ["updated_at", "2018-12-07 01:59:01.215278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8241], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10990], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10990], ["room_id", 8241], ["created_at", "2018-12-07 01:59:01.218128"], ["updated_at", "2018-12-07 01:59:01.218128"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4286” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.220002"], ["last_sign_in_at", "2018-12-07 01:59:01.220002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.220343"], ["id", 10989]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4286"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4286], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8241], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10990], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:59:01.224312"], ["id", 4286]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.4ms) Date: Thu, 06 Dec 2018 23:59:01 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d3e537b41_48d72af1c0c1660034220@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d3e537574_48d72af1c0c1660034191";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d3e537574_48d72af1c0c1660034191 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d3e537574_48d72af1c0c1660034191 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d3e537574_48d72af1c0c1660034191–

Completed 302 Found in 8ms (ActiveRecord: 0.6ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l8ywu8reRdqUGx5Ey4ouwernjI.OFFRY5sfXZKlw04DLhTsHQ2/XG"], ["created_at", "2018-12-07 01:59:01.234293"], ["updated_at", "2018-12-07 01:59:01.234293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.235829"], ["updated_at", "2018-12-07 01:59:01.235829"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YHXE9q3zM.5RSPrHIjGau.eNEUTBxN9ljau8kPolmYbadXMtmpfLu"], ["created_at", "2018-12-07 01:59:01.238938"], ["updated_at", "2018-12-07 01:59:01.238938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8242], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10992], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10992], ["room_id", 8242], ["created_at", "2018-12-07 01:59:01.242519"], ["updated_at", "2018-12-07 01:59:01.242519"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:59:01.243923"], ["id", 4287]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8242], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10992], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10992], ["room_id", 8242], ["created_at", "2018-12-07 01:59:01.246538"], ["updated_at", "2018-12-07 01:59:01.246538"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:59:01.247788"], ["id", 4288]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.249191"], ["last_sign_in_at", "2018-12-07 01:59:01.249191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.249526"], ["id", 10991]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10992], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8242], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10992], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8242], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HBhvczsZlhlOspwycBIlx.eu63B5VyCP.O0l8rKIIVXvOVSXPZkzm"], ["created_at", "2018-12-07 01:59:01.262032"], ["updated_at", "2018-12-07 01:59:01.262032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.263568"], ["updated_at", "2018-12-07 01:59:01.263568"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KQJdEy065uQkAPq5vHq6YOLvv71.AQ8X4Itx6Fs.i/y7P69C8jab."], ["created_at", "2018-12-07 01:59:01.266420"], ["updated_at", "2018-12-07 01:59:01.266420"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8243], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10994], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10994], ["room_id", 8243], ["created_at", "2018-12-07 01:59:01.269156"], ["updated_at", "2018-12-07 01:59:01.269156"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:59:01.270652"], ["id", 4289]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8243], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10994], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 10994], ["room_id", 8243], ["created_at", "2018-12-07 01:59:01.273958"], ["updated_at", "2018-12-07 01:59:01.273958"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:59:01.275368"], ["id", 4290]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.276821"], ["last_sign_in_at", "2018-12-07 01:59:01.276821"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.277157"], ["id", 10993]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10994], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8243], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 10994], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8243], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V0.LM.Bb4gs/wDhI6uam8uAYiJw5YnS.FyX5DavSR6uAZUz7YksOO"], ["created_at", "2018-12-07 01:59:01.289221"], ["updated_at", "2018-12-07 01:59:01.289221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.290856"], ["last_sign_in_at", "2018-12-07 01:59:01.290856"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.291170"], ["id", 10995]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4K6vA01.7kUE7oDjaeni0OQQBScMZS5nRGp0csrt9VeGUNkFqiBtK"], ["created_at", "2018-12-07 01:59:01.304349"], ["updated_at", "2018-12-07 01:59:01.304349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.306116"], ["last_sign_in_at", "2018-12-07 01:59:01.306116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.306467"], ["id", 10996]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JHnVGEVypjlAJzFOusa6qObQjDRxtX/IBmjqHFdaGLvb5eYfEeKR6"], ["created_at", "2018-12-07 01:59:01.312290"], ["updated_at", "2018-12-07 01:59:01.312290"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.313788"], ["last_sign_in_at", "2018-12-07 01:59:01.313788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.314117"], ["id", 10997]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yihDswvcdk2l51Nx3wX5nuRQmAt2Ssr8myfajIHEXNRVhc1gPbzLu"], ["created_at", "2018-12-07 01:59:01.323196"], ["updated_at", "2018-12-07 01:59:01.323196"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.324741"], ["last_sign_in_at", "2018-12-07 01:59:01.324741"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.325056"], ["id", 10998]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.iZ7UeyUCurIhG2PyJmWpeeq3JWdEY4GEXperYGrzkocBr7.WlzIW"], ["created_at", "2018-12-07 01:59:01.339073"], ["updated_at", "2018-12-07 01:59:01.339073"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.340605"], ["updated_at", "2018-12-07 01:59:01.340605"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8244” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.342028"], ["last_sign_in_at", "2018-12-07 01:59:01.342028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.342364"], ["id", 10999]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8244"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8244], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$poHNvd7gvcc8p33e/DGRVeOCr.X6yl/WrOIBFYoflkerfdrZKhzja"], ["created_at", "2018-12-07 01:59:01.350958"], ["updated_at", "2018-12-07 01:59:01.350958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.352451"], ["updated_at", "2018-12-07 01:59:01.352451"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8245” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.353790"], ["last_sign_in_at", "2018-12-07 01:59:01.353790"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.354118"], ["id", 11000]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8245"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8245], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.360223"], ["updated_at", "2018-12-07 01:59:01.360223"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8246” for 127.0.0.1 at 2018-12-06 23:59:01 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8246"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f9OxzMGdcSDEK5SNg5LdaOQOgC0qOfi6CotQyylWs5abb/bnL/E.W"], ["created_at", "2018-12-07 01:59:01.366229"], ["updated_at", "2018-12-07 01:59:01.366229"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.368462"], ["updated_at", "2018-12-07 01:59:01.368462"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8247” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.370178"], ["last_sign_in_at", "2018-12-07 01:59:01.370178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.370540"], ["id", 11001]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8247"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.378319"], ["updated_at", "2018-12-07 01:59:01.378319"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8248” for 127.0.0.1 at 2018-12-06 23:59:01 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8248"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XXnhc9INDJXnoIsC.QIRauyiU2YpGAAO2bGZnMoKO/bVbZtimkIDe"], ["created_at", "2018-12-07 01:59:01.384267"], ["updated_at", "2018-12-07 01:59:01.384267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.385769"], ["updated_at", "2018-12-07 01:59:01.385769"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8249/edit” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.387097"], ["last_sign_in_at", "2018-12-07 01:59:01.387097"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.387441"], ["id", 11002]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8249"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8249], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vonEXGKbxY/LSKX9mZURneCkDKKgfyKlsI2cH4w1Emxo4RjGkHhaG"], ["created_at", "2018-12-07 01:59:01.397624"], ["updated_at", "2018-12-07 01:59:01.397624"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.399451"], ["updated_at", "2018-12-07 01:59:01.399451"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8250/edit” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.401109"], ["last_sign_in_at", "2018-12-07 01:59:01.401109"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.401457"], ["id", 11003]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8250"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8250], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.409053"], ["updated_at", "2018-12-07 01:59:01.409053"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8251” for 127.0.0.1 at 2018-12-06 23:59:01 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8251"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.YDJzX8rm8IItLjWsQUnzepQ/aVpTlCrYw6z3nLGPlvBXe0ktIxOO"], ["created_at", "2018-12-07 01:59:01.415116"], ["updated_at", "2018-12-07 01:59:01.415116"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.417071"], ["last_sign_in_at", "2018-12-07 01:59:01.417071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.417387"], ["id", 11004]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.419661"], ["updated_at", "2018-12-07 01:59:01.419661"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$acT46nio2iJL2K43MHhLGO6rqZwW/VH/tXuqom3.E4OiCxL2icvvy"], ["created_at", "2018-12-07 01:59:01.424974"], ["updated_at", "2018-12-07 01:59:01.424974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.426926"], ["last_sign_in_at", "2018-12-07 01:59:01.426926"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.427247"], ["id", 11005]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.429572"], ["updated_at", "2018-12-07 01:59:01.429572"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5vd1lC1q02nY/wj6KTaMfe9YLny.MI/fepF6fqiAK6N7a6WjbBorm"], ["created_at", "2018-12-07 01:59:01.435173"], ["updated_at", "2018-12-07 01:59:01.435173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.437258"], ["last_sign_in_at", "2018-12-07 01:59:01.437258"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.437577"], ["id", 11006]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.1ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nsdcgQOOGeeOL8OSXtyYz.OnRuALc97Fh6OkjnKNQXkSLKdHlhIwC"], ["created_at", "2018-12-07 01:59:01.444830"], ["updated_at", "2018-12-07 01:59:01.444830"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.446955"], ["last_sign_in_at", "2018-12-07 01:59:01.446955"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.447334"], ["id", 11007]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wfRpgEuBvwTaQjxs4dY0JeXnEZdxskn7x5t225I5AfAqU9lgIT9hy"], ["created_at", "2018-12-07 01:59:01.454554"], ["updated_at", "2018-12-07 01:59:01.454554"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.456512"], ["last_sign_in_at", "2018-12-07 01:59:01.456512"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.456835"], ["id", 11008]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PbsYHjztcUaNNXr9HAmGB.//6sinLs7S2Q5wE9CeiKJQAWgeXKER2"], ["created_at", "2018-12-07 01:59:01.463073"], ["updated_at", "2018-12-07 01:59:01.463073"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.464769"], ["updated_at", "2018-12-07 01:59:01.464769"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8254” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.466605"], ["last_sign_in_at", "2018-12-07 01:59:01.466605"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.466954"], ["id", 11009]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8254"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8254], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:59:01.469855"], ["id", 8254]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8254 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Yhwo/4XSncBkGbmQm7MsyOsTLPyYF2k6ziocYDc2.x9dK1EDDORci"], ["created_at", "2018-12-07 01:59:01.475370"], ["updated_at", "2018-12-07 01:59:01.475370"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.476945"], ["updated_at", "2018-12-07 01:59:01.476945"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8255” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.478730"], ["last_sign_in_at", "2018-12-07 01:59:01.478730"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.479127"], ["id", 11010]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8255"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8255], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:59:01.481908"], ["id", 8255]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8255 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zGt1ecxvR9mWA9TGvAqm2uNN7heKDbLbYMQrw3abCiyqrT4WICJ0W"], ["created_at", "2018-12-07 01:59:01.487194"], ["updated_at", "2018-12-07 01:59:01.487194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.488830"], ["updated_at", "2018-12-07 01:59:01.488830"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8256” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.490597"], ["last_sign_in_at", "2018-12-07 01:59:01.490597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.491026"], ["id", 11011]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8256"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8256], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8D5M2BMKKXHYXz8ymkKorOcyg7vmdHQ.Zgn.2giF6Eq8oyovakRJu"], ["created_at", "2018-12-07 01:59:01.503082"], ["updated_at", "2018-12-07 01:59:01.503082"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.504703"], ["updated_at", "2018-12-07 01:59:01.504703"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8257” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.506462"], ["last_sign_in_at", "2018-12-07 01:59:01.506462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.506856"], ["id", 11012]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8257"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8257], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K7YHaP9ltrg5ZalUAbUNReSRgBkksoeZOb88gEOI6RQxn5QuV9dWO"], ["created_at", "2018-12-07 01:59:01.517752"], ["updated_at", "2018-12-07 01:59:01.517752"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.519840"], ["last_sign_in_at", "2018-12-07 01:59:01.519840"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.520192"], ["id", 11013]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lti8atjoQfXLtsE5Ffkc0.pPAbVhr7SZ.3YKhA.yLHB4m3s24mHHa"], ["created_at", "2018-12-07 01:59:01.526603"], ["updated_at", "2018-12-07 01:59:01.526603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.528314"], ["updated_at", "2018-12-07 01:59:01.528314"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8258” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.529787"], ["last_sign_in_at", "2018-12-07 01:59:01.529787"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.530154"], ["id", 11014]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8258"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8258], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8258]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Oy2Mnp3T3JORfd5CidglNuYPgHax.5P4iQYE.7Zj2uXlwE4rp4DC2"], ["created_at", "2018-12-07 01:59:01.537742"], ["updated_at", "2018-12-07 01:59:01.537742"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.539320"], ["updated_at", "2018-12-07 01:59:01.539320"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8259” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.540669"], ["last_sign_in_at", "2018-12-07 01:59:01.540669"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.541021"], ["id", 11015]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8259"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8259], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8259]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kYwx3W/JbFC1YzcgY.vbues48L6UPm7t78UgDy/1RfNwF.tBn8UDm"], ["created_at", "2018-12-07 01:59:01.548132"], ["updated_at", "2018-12-07 01:59:01.548132"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.549651"], ["updated_at", "2018-12-07 01:59:01.549651"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8260” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.551025"], ["last_sign_in_at", "2018-12-07 01:59:01.551025"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.551380"], ["id", 11016]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8260"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XUrhp.Lz5n9ZWJiFpZ2GPe7E/rjH05coGWKpNwk8DTqovxUurebeO"], ["created_at", "2018-12-07 01:59:01.557967"], ["updated_at", "2018-12-07 01:59:01.557967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.559701"], ["updated_at", "2018-12-07 01:59:01.559701"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8261” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.561210"], ["last_sign_in_at", "2018-12-07 01:59:01.561210"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.561641"], ["id", 11017]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8261"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7aXLqG5t8VQhBYZHOwVKXu4Newz9e2WClVeMWc/HzLzt8PDJCZ4z."], ["created_at", "2018-12-07 01:59:01.567814"], ["updated_at", "2018-12-07 01:59:01.567814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.569469"], ["last_sign_in_at", "2018-12-07 01:59:01.569469"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.569809"], ["id", 11018]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UmLvPVHuuTQONuxqCrQPN.GJCpd12HYU5bEtBy7pwmTZBrPnvFIWq"], ["created_at", "2018-12-07 01:59:01.581188"], ["updated_at", "2018-12-07 01:59:01.581188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.582739"], ["updated_at", "2018-12-07 01:59:01.582739"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.583988"], ["updated_at", "2018-12-07 01:59:01.583988"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.585192"], ["updated_at", "2018-12-07 01:59:01.585192"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8262], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11019], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11019], ["room_id", 8262], ["created_at", "2018-12-07 01:59:01.588469"], ["updated_at", "2018-12-07 01:59:01.588469"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.590411"], ["last_sign_in_at", "2018-12-07 01:59:01.590411"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.590886"], ["id", 11019]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nE7OppJvoUJGdp2l4MT3JuOj53X.rjFHea.ulrlmDeqBfFeC00xvu"], ["created_at", "2018-12-07 01:59:01.607221"], ["updated_at", "2018-12-07 01:59:01.607221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.608804"], ["updated_at", "2018-12-07 01:59:01.608804"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.610030"], ["updated_at", "2018-12-07 01:59:01.610030"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:01.611377"], ["updated_at", "2018-12-07 01:59:01.611377"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8265], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11020], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11020], ["room_id", 8265], ["created_at", "2018-12-07 01:59:01.614108"], ["updated_at", "2018-12-07 01:59:01.614108"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:59:01 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:01.615619"], ["last_sign_in_at", "2018-12-07 01:59:01.615619"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:01.615971"], ["id", 11020]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$84RrhBI2OPzqUn9ShCRsSeCiDXMEZTGX1xGWtCYPdBtgYvfNfjgHi"], ["created_at", "2018-12-07 01:59:44.107579"], ["updated_at", "2018-12-07 01:59:44.107579"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tzDV6glcZKyUv/L7KVqUruV13zS534XQBiQZ1/yrNgzDqf0fcANIO"], ["created_at", "2018-12-07 01:59:44.111833"], ["updated_at", "2018-12-07 01:59:44.111833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.119143"], ["updated_at", "2018-12-07 01:59:44.119143"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.4ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8268], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11022], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11022], ["room_id", 8268], ["created_at", "2018-12-07 01:59:44.137837"], ["updated_at", "2018-12-07 01:59:44.137837"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4293"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4293], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8268], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11022], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 120.7ms Sent mail to 123@123.com (5.3ms) Date: Thu, 06 Dec 2018 23:59:44 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d410422f3_49112ace4c4845f0591ce@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d41041523_49112ace4c4845f0590c4";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d41041523_49112ace4c4845f0590c4 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d41041523_49112ace4c4845f0590c4 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d41041523_49112ace4c4845f0590c4–

Completed 302 Found in 130ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iV2xWpqwBV2jxbV8elVx6uss/Fqs072gnun2NEPFkn3tZB01Exz6W"], ["created_at", "2018-12-07 01:59:44.277793"], ["updated_at", "2018-12-07 01:59:44.277793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cZlByC00FXCZKT/BXbCt6uCbh45jPdSTt3UUX.OoJXLIb6513h/k2"], ["created_at", "2018-12-07 01:59:44.280896"], ["updated_at", "2018-12-07 01:59:44.280896"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.282226"], ["updated_at", "2018-12-07 01:59:44.282226"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8269], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11024], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11024], ["room_id", 8269], ["created_at", "2018-12-07 01:59:44.284885"], ["updated_at", "2018-12-07 01:59:44.284885"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4294"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4294], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8269], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11024], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 01:59:44.289707"], ["id", 4294]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 23:59:44 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d41047b4e_49112ace4c4845f059329@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d410475d7_49112ace4c4845f0592a0";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d410475d7_49112ace4c4845f0592a0 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d410475d7_49112ace4c4845f0592a0 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d410475d7_49112ace4c4845f0592a0–

Completed 302 Found in 9ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yNcMYoH1vybaSeI.2P6eEenRPbpUBYy1jf3P2nBV11g8JHiJSHpcu"], ["created_at", "2018-12-07 01:59:44.299182"], ["updated_at", "2018-12-07 01:59:44.299182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$35LoYH/eYz3iPaVRN1.KIeZdrYLVvwlvrxcWHvJ9hQhZFqeNqz9x6"], ["created_at", "2018-12-07 01:59:44.302703"], ["updated_at", "2018-12-07 01:59:44.302703"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.304444"], ["updated_at", "2018-12-07 01:59:44.304444"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8270], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11026], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11026], ["room_id", 8270], ["created_at", "2018-12-07 01:59:44.308030"], ["updated_at", "2018-12-07 01:59:44.308030"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EuLfQ0h9TZWT3ttoLtJJV.jBwKfIZj8xnKQeeA2g5dmsKGbN.PlVK"], ["created_at", "2018-12-07 01:59:44.314571"], ["updated_at", "2018-12-07 01:59:44.314571"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OHJLulSEB/p.XV7ArQeh4e.HZy/b8hNvelFq3SeC02U2VroiKJeGC"], ["created_at", "2018-12-07 01:59:44.317773"], ["updated_at", "2018-12-07 01:59:44.317773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.319237"], ["updated_at", "2018-12-07 01:59:44.319237"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8271], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11028], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11028], ["room_id", 8271], ["created_at", "2018-12-07 01:59:44.322061"], ["updated_at", "2018-12-07 01:59:44.322061"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4296], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$KB2P9wqljKUEEiRoFBYb5eqKbQl8qCA9r5/Umfu89gBL2tw/7UWEa"], ["created_at", "2018-12-07 01:59:44.327001"], ["updated_at", "2018-12-07 01:59:44.327001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11029"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "8D087-2kMhLmTOIZgAZTGg"], ["updated_at", "2018-12-07 01:59:44.330111"], ["id", 11029]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 01:59:44.331446"], ["reset_sent_at", "2018-12-07 01:59:44.331177"], ["id", 11029]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms Sent mail to teste@unb.com.br (2.4ms) Date: Thu, 06 Dec 2018 23:59:44 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d41052ae6_49112ace4c4845f059616@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d410524f4_49112ace4c4845f05957";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d410524f4_49112ace4c4845f05957 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/8D087-2kMhLmTOIZgAZTGg/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d410524f4_49112ace4c4845f05957 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/8D087-2kMhLmTOIZgAZTGg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d410524f4_49112ace4c4845f05957–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$A4.w2KnXEBj6ON5LURNHnO824mAAPEXmhokK5xVIraSJnsMHe9nL2"], ["created_at", "2018-12-07 01:59:44.344374"], ["updated_at", "2018-12-07 01:59:44.344374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$bWxZoQHNCFOW3UHtAGLJzeIE1zBFC4wJX.hxsiPNf1y.yiVCWrD22"], ["created_at", "2018-12-07 01:59:44.351547"], ["updated_at", "2018-12-07 01:59:44.351547"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11031"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$YY9CbKigKEOSWjV4fwJcEecfBMlyvO//ZENd7PZ2SzBCfcjcLSwny"], ["updated_at", "2018-12-07 01:59:44.355517"], ["id", 11031]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$xz9T93SUFrFGenM8byIq5O0iRu4WfJ1oU/Jddm8K7BtTzt2Tk7tFm"], ["created_at", "2018-12-07 01:59:44.360281"], ["updated_at", "2018-12-07 01:59:44.360281"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11032"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fkGgwqyyLuSY83Io0eIi/eeF5cuh4ShvDQqN2vLimnx7ghlMS8QmG"], ["created_at", "2018-12-07 01:59:44.368509"], ["updated_at", "2018-12-07 01:59:44.368509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11033"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$BFcyFaL14MxhW4OO9gw8WuKKDnv7rHXZmrVAXZE95X7JcRwz3tGbm"], ["created_at", "2018-12-07 01:59:44.381817"], ["updated_at", "2018-12-07 01:59:44.381817"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11034"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$C0E/HqyEGMF51R7x1f45IehsUdfFwRJBO4dOq12rZx/tr9dnalAdS"], ["created_at", "2018-12-07 01:59:44.390055"], ["updated_at", "2018-12-07 01:59:44.390055"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11035"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A3jLW1kkc.vvnGuTzwHzT.nlPeEPjEMm0qDEGNIaGHcDWnb2SVtwC"], ["created_at", "2018-12-07 01:59:44.398017"], ["updated_at", "2018-12-07 01:59:44.398017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e0kB//XMOz7Dd7d.MYNgCui1uk5tO7DURtn1Begf2RxBRKJNmXvye"], ["created_at", "2018-12-07 01:59:44.404802"], ["updated_at", "2018-12-07 01:59:44.404802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ThiyjRxEwXswu.O8rVhcgeYE.LOO4bEamR20ks00w5B9mNK1T8Pw."], ["created_at", "2018-12-07 01:59:44.411510"], ["updated_at", "2018-12-07 01:59:44.411510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.413011"], ["updated_at", "2018-12-07 01:59:44.413011"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8272], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11038], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11038], ["room_id", 8272], ["created_at", "2018-12-07 01:59:44.415763"], ["updated_at", "2018-12-07 01:59:44.415763"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/koRmucXqJXiWVpZCzvg7O.cs8GERnLYkn54XQ1vsS39K/LnhlTNy"], ["created_at", "2018-12-07 01:59:44.421885"], ["updated_at", "2018-12-07 01:59:44.421885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.423329"], ["updated_at", "2018-12-07 01:59:44.423329"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8273], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11039], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11039], ["room_id", 8273], ["created_at", "2018-12-07 01:59:44.426093"], ["updated_at", "2018-12-07 01:59:44.426093"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hAzdDVvboTqNr9VVcG07aubManeZcVc9FNwx/tvWpfPL0v6mppWwC"], ["created_at", "2018-12-07 01:59:44.448677"], ["updated_at", "2018-12-07 01:59:44.448677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.450230"], ["updated_at", "2018-12-07 01:59:44.450230"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.457077"], ["last_sign_in_at", "2018-12-07 01:59:44.457077"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.457551"], ["id", 11040]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8274"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8274 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8274], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11040], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11040], ["room_id", 8274], ["created_at", "2018-12-07 01:59:44.465812"], ["updated_at", "2018-12-07 01:59:44.465812"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8274], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PMqK4wnCo1Q1rnOKgiDMD.badgqLagPJ0k0auVQnQRMtruUGw6H3W"], ["created_at", "2018-12-07 01:59:44.472131"], ["updated_at", "2018-12-07 01:59:44.472131"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.473623"], ["updated_at", "2018-12-07 01:59:44.473623"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.475600"], ["last_sign_in_at", "2018-12-07 01:59:44.475600"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.476011"], ["id", 11041]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8275"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8275 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8275], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11041], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11041], ["room_id", 8275], ["created_at", "2018-12-07 01:59:44.480592"], ["updated_at", "2018-12-07 01:59:44.480592"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gaYvqI1r6HlOhuLsix8TDubYCFWdRukIu3Va6RCannR0z2c6uclVu"], ["created_at", "2018-12-07 01:59:44.485969"], ["updated_at", "2018-12-07 01:59:44.485969"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.487467"], ["updated_at", "2018-12-07 01:59:44.487467"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.489982"], ["last_sign_in_at", "2018-12-07 01:59:44.489982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.490472"], ["id", 11042]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8276", "user_id"=>"11042"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8276 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8276], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11042], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11042], ["room_id", 8276], ["created_at", "2018-12-07 01:59:44.496166"], ["updated_at", "2018-12-07 01:59:44.496166"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8276", "user_id"=>"11042"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11042], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8276 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8276], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11042], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11042], ["room_id", 8276], ["created_at", "2018-12-07 01:59:44.503055"], ["updated_at", "2018-12-07 01:59:44.503055"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KoLp16YI7Z8q6USreUqLpO7Sek.QdVeTpSO7J9s2H69buphMlQTyK"], ["created_at", "2018-12-07 01:59:44.508457"], ["updated_at", "2018-12-07 01:59:44.508457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.510029"], ["updated_at", "2018-12-07 01:59:44.510029"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.512345"], ["last_sign_in_at", "2018-12-07 01:59:44.512345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.512760"], ["id", 11043]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8277", "user_id"=>"11043"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8277 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8277], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11043], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11043], ["room_id", 8277], ["created_at", "2018-12-07 01:59:44.517206"], ["updated_at", "2018-12-07 01:59:44.517206"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8277", "user_id"=>"11043"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11043], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8277 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8277], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11043], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11043], ["room_id", 8277], ["created_at", "2018-12-07 01:59:44.524017"], ["updated_at", "2018-12-07 01:59:44.524017"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8277], ["user_id", 11043], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5nppLWjhNbZlRUllbjc14.afGcJTMrR1wIsbVxtG.G/fmijWi9nhK"], ["created_at", "2018-12-07 01:59:44.530044"], ["updated_at", "2018-12-07 01:59:44.530044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.531560"], ["updated_at", "2018-12-07 01:59:44.531560"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.533611"], ["last_sign_in_at", "2018-12-07 01:59:44.533611"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.533978"], ["id", 11044]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8278", "user_id"=>"11044"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8278 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8278], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11044], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11044], ["room_id", 8278], ["created_at", "2018-12-07 01:59:44.538381"], ["updated_at", "2018-12-07 01:59:44.538381"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8278", "user_id"=>"11044"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11044], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8278 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8278], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11044], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11044], ["room_id", 8278], ["created_at", "2018-12-07 01:59:44.544339"], ["updated_at", "2018-12-07 01:59:44.544339"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8278], ["user_id", 11044], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lQdFwLKJMpR94AOAC9tPA.vF5W5CcMWARrWCU5a4oaCW7Q7FUfo5m"], ["created_at", "2018-12-07 01:59:44.549895"], ["updated_at", "2018-12-07 01:59:44.549895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.551451"], ["updated_at", "2018-12-07 01:59:44.551451"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.553676"], ["last_sign_in_at", "2018-12-07 01:59:44.553676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.554261"], ["id", 11045]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8279"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8279], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hZF2UPtUxp4boobOv5Tt3.JHmZ7DM7UNzsYtNp7JpGDlW0.L3wRNy"], ["created_at", "2018-12-07 01:59:44.566666"], ["updated_at", "2018-12-07 01:59:44.566666"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.568550"], ["updated_at", "2018-12-07 01:59:44.568550"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.570583"], ["last_sign_in_at", "2018-12-07 01:59:44.570583"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.571052"], ["id", 11046]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8280"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3reuZ8E2x.kod7yLihWMiet0RBwWr9b.RWYe9YunMGfiaBiXsr4x2"], ["created_at", "2018-12-07 01:59:44.578351"], ["updated_at", "2018-12-07 01:59:44.578351"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.579966"], ["updated_at", "2018-12-07 01:59:44.579966"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8281], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11047], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11047], ["room_id", 8281], ["created_at", "2018-12-07 01:59:44.582798"], ["updated_at", "2018-12-07 01:59:44.582798"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8281” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.584548"], ["last_sign_in_at", "2018-12-07 01:59:44.584548"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.585056"], ["id", 11047]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8281"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8281], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8281')
Rendered appointments/show.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 210ms (Views: 208.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D4.qpkUS41bCMziVTcaKIOB1vVkRkRSZhDK9aKk.VzT2gytlkrBJG"], ["created_at", "2018-12-07 01:59:44.802074"], ["updated_at", "2018-12-07 01:59:44.802074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.803825"], ["updated_at", "2018-12-07 01:59:44.803825"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8282], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11048], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11048], ["room_id", 8282], ["created_at", "2018-12-07 01:59:44.806910"], ["updated_at", "2018-12-07 01:59:44.806910"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4308/edit” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.808440"], ["last_sign_in_at", "2018-12-07 01:59:44.808440"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.808799"], ["id", 11048]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4308"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4308], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$n63J4CENEnYucB/9lABSp.XOnsHnZxDHJEWQweCv5L4x22Xg2tiqi"], ["created_at", "2018-12-07 01:59:44.821025"], ["updated_at", "2018-12-07 01:59:44.821025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.822791"], ["last_sign_in_at", "2018-12-07 01:59:44.822791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.823162"], ["id", 11049]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5.bTCVI17OLU8jSuKfTMzu4TrPXMXJUXlM5Rn8m6XsWvieoz1OFii"], ["created_at", "2018-12-07 01:59:44.834155"], ["updated_at", "2018-12-07 01:59:44.834155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.835751"], ["updated_at", "2018-12-07 01:59:44.835751"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8283], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11050], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11050], ["room_id", 8283], ["created_at", "2018-12-07 01:59:44.838680"], ["updated_at", "2018-12-07 01:59:44.838680"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8283], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11050], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11050], ["room_id", 8283], ["created_at", "2018-12-07 01:59:44.841434"], ["updated_at", "2018-12-07 01:59:44.841434"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.842953"], ["last_sign_in_at", "2018-12-07 01:59:44.842953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.843317"], ["id", 11050]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11050]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ev.a94ELra99uF3pV6/6nOlZ/4YQYRWX0/iETWWYj4i6mWDmz6PQm"], ["created_at", "2018-12-07 01:59:44.857915"], ["updated_at", "2018-12-07 01:59:44.857915"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.860144"], ["updated_at", "2018-12-07 01:59:44.860144"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8284], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11051], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11051], ["room_id", 8284], ["created_at", "2018-12-07 01:59:44.863233"], ["updated_at", "2018-12-07 01:59:44.863233"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8284], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11051], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11051], ["room_id", 8284], ["created_at", "2018-12-07 01:59:44.866005"], ["updated_at", "2018-12-07 01:59:44.866005"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.867522"], ["last_sign_in_at", "2018-12-07 01:59:44.867522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.867885"], ["id", 11051]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11051]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yjiv6xY5XwFnGFXbMOfQ7e7RHTJtV.Ipa510T9WX2J7nvuuV6wSTS"], ["created_at", "2018-12-07 01:59:44.877044"], ["updated_at", "2018-12-07 01:59:44.877044"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.878615"], ["updated_at", "2018-12-07 01:59:44.878615"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8285], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11052], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11052], ["room_id", 8285], ["created_at", "2018-12-07 01:59:44.881420"], ["updated_at", "2018-12-07 01:59:44.881420"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4313” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.882947"], ["last_sign_in_at", "2018-12-07 01:59:44.882947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.883313"], ["id", 11052]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4313"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4313], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4313]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F/VwPnGcI1wPqmeQZHDYlOzBigevU7Pc/Kmpgxe8.lC0lhV81glRW"], ["created_at", "2018-12-07 01:59:44.892112"], ["updated_at", "2018-12-07 01:59:44.892112"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.893740"], ["updated_at", "2018-12-07 01:59:44.893740"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6IehFtXgrrunyo4o9GJKC.HldHh8YABKWLVroUimenGGd6PCUTo5O"], ["created_at", "2018-12-07 01:59:44.896716"], ["updated_at", "2018-12-07 01:59:44.896716"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8286], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11054], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11054], ["room_id", 8286], ["created_at", "2018-12-07 01:59:44.899551"], ["updated_at", "2018-12-07 01:59:44.899551"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4314” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.901368"], ["last_sign_in_at", "2018-12-07 01:59:44.901368"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.901704"], ["id", 11053]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4314"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4314], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8286], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11054], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$anaIEO4dAgwdgCQbg3bhj.afqXp52OSQRypWiPwe12rcHGEzz3rim"], ["created_at", "2018-12-07 01:59:44.910687"], ["updated_at", "2018-12-07 01:59:44.910687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.912166"], ["updated_at", "2018-12-07 01:59:44.912166"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.OYSwWEQnBu2Nz6yjj2JbehslClSlQj6nW9w.dEeEqW2DgKtC11XS"], ["created_at", "2018-12-07 01:59:44.915177"], ["updated_at", "2018-12-07 01:59:44.915177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8287], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11056], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11056], ["room_id", 8287], ["created_at", "2018-12-07 01:59:44.917891"], ["updated_at", "2018-12-07 01:59:44.917891"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4315” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.919696"], ["last_sign_in_at", "2018-12-07 01:59:44.919696"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.920098"], ["id", 11055]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4315"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4315], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8287], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11056], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IsIu93GR3lmu2yZ/uzYgNexiEfi5Vsba59pI5rzXmeDRxi3FCTbn6"], ["created_at", "2018-12-07 01:59:44.929278"], ["updated_at", "2018-12-07 01:59:44.929278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.930791"], ["updated_at", "2018-12-07 01:59:44.930791"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$evjiMZuDb29IN6H.1poTYeHX3sikLZTmqJ/lO7WDlfCg85cd.LYUO"], ["created_at", "2018-12-07 01:59:44.933747"], ["updated_at", "2018-12-07 01:59:44.933747"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8288], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11058], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11058], ["room_id", 8288], ["created_at", "2018-12-07 01:59:44.936544"], ["updated_at", "2018-12-07 01:59:44.936544"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4316” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.938332"], ["last_sign_in_at", "2018-12-07 01:59:44.938332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.938712"], ["id", 11057]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4316"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4316], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8288], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11058], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 01:59:44.942677"], ["id", 4316]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.3ms) Date: Thu, 06 Dec 2018 23:59:44 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d410e70f3_49112ace4c4845f06036c@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d410e6b2f_49112ace4c4845f06028f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d410e6b2f_49112ace4c4845f06028f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d410e6b2f_49112ace4c4845f06028f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d410e6b2f_49112ace4c4845f06028f–

Completed 302 Found in 8ms (ActiveRecord: 0.6ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f.oep/lK6e4ngl1PnuHDXenKcX5pAJbJYNYyJ1spfMujb/RirwAFO"], ["created_at", "2018-12-07 01:59:44.952548"], ["updated_at", "2018-12-07 01:59:44.952548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.954499"], ["updated_at", "2018-12-07 01:59:44.954499"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jwsnRM2EhcCMBk8kIqZNP.5bPkz4rEyccvuYsV3fXfvKCnWjqxfIK"], ["created_at", "2018-12-07 01:59:44.957771"], ["updated_at", "2018-12-07 01:59:44.957771"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8289], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11060], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11060], ["room_id", 8289], ["created_at", "2018-12-07 01:59:44.960691"], ["updated_at", "2018-12-07 01:59:44.960691"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:59:44.961983"], ["id", 4317]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8289], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11060], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11060], ["room_id", 8289], ["created_at", "2018-12-07 01:59:44.964520"], ["updated_at", "2018-12-07 01:59:44.964520"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:59:44.965729"], ["id", 4318]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.967064"], ["last_sign_in_at", "2018-12-07 01:59:44.967064"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.967405"], ["id", 11059]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11060], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8289], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11060], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8289], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QZQWSxVOoZ18b3ENcjF5.eddsCY3JGhyEh4SKeuEOULI6BFUAV9vG"], ["created_at", "2018-12-07 01:59:44.979591"], ["updated_at", "2018-12-07 01:59:44.979591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:44.981048"], ["updated_at", "2018-12-07 01:59:44.981048"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qYu0GXIVBMS3RcCWD1U1ZO1wyKHf1J954L.BGAUC744zZ3MW2hjSS"], ["created_at", "2018-12-07 01:59:44.984059"], ["updated_at", "2018-12-07 01:59:44.984059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8290], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11062], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11062], ["room_id", 8290], ["created_at", "2018-12-07 01:59:44.987695"], ["updated_at", "2018-12-07 01:59:44.987695"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 01:59:44.989090"], ["id", 4319]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8290], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11062], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11062], ["room_id", 8290], ["created_at", "2018-12-07 01:59:44.991713"], ["updated_at", "2018-12-07 01:59:44.991713"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 01:59:44.992951"], ["id", 4320]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:59:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:44.994321"], ["last_sign_in_at", "2018-12-07 01:59:44.994321"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:44.994677"], ["id", 11061]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11062], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8290], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11062], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8290], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Uw6RM9zfr9uAct.53Z3DMO.Wisio4g0JqVUdgd1JNtwk3NDxbPoCS"], ["created_at", "2018-12-07 01:59:45.006647"], ["updated_at", "2018-12-07 01:59:45.006647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.008250"], ["last_sign_in_at", "2018-12-07 01:59:45.008250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.008556"], ["id", 11063]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 5.6ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/QlGteJ5Jqq8OTSV8RHJ4eWlTzMF7Iw2AF4h73znTT17QuCUkk2cO"], ["created_at", "2018-12-07 01:59:45.022155"], ["updated_at", "2018-12-07 01:59:45.022155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.023862"], ["last_sign_in_at", "2018-12-07 01:59:45.023862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.024203"], ["id", 11064]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jg4DAoILHG7THZaitjhpKeSX/rtUA6m8M/BwMhKOJeoeTk58gfD3K"], ["created_at", "2018-12-07 01:59:45.030071"], ["updated_at", "2018-12-07 01:59:45.030071"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.031642"], ["last_sign_in_at", "2018-12-07 01:59:45.031642"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.031978"], ["id", 11065]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t/ZShoS7C8L.tcjcMGWsweFVYeUDhFxDiBhKcjkK5J6KJ.F7/7hIy"], ["created_at", "2018-12-07 01:59:45.041313"], ["updated_at", "2018-12-07 01:59:45.041313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.042907"], ["last_sign_in_at", "2018-12-07 01:59:45.042907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.043245"], ["id", 11066]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SrV/lWfB2LCLw9DdSdczu./5KYvKDDH9H8oPc7CL06OZEfkysJ3OS"], ["created_at", "2018-12-07 01:59:45.057990"], ["updated_at", "2018-12-07 01:59:45.057990"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.059559"], ["updated_at", "2018-12-07 01:59:45.059559"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8291” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.060961"], ["last_sign_in_at", "2018-12-07 01:59:45.060961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.061319"], ["id", 11067]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8291"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8291], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wAgctBwJvPlhz9qdacVape93yQ8fMVGIkgOiYT3bjqL5tyA2C7mIS"], ["created_at", "2018-12-07 01:59:45.069997"], ["updated_at", "2018-12-07 01:59:45.069997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.071572"], ["updated_at", "2018-12-07 01:59:45.071572"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8292” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.072968"], ["last_sign_in_at", "2018-12-07 01:59:45.072968"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.073323"], ["id", 11068]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8292"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8292], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.079710"], ["updated_at", "2018-12-07 01:59:45.079710"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8293” for 127.0.0.1 at 2018-12-06 23:59:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8293"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2N0hzdG2nzTnj9kVYaNTD.jQeCxRM0jEtUHgoPgD6z54nr..MOOsK"], ["created_at", "2018-12-07 01:59:45.086707"], ["updated_at", "2018-12-07 01:59:45.086707"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.088336"], ["updated_at", "2018-12-07 01:59:45.088336"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8294” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.089812"], ["last_sign_in_at", "2018-12-07 01:59:45.089812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.090230"], ["id", 11069]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8294"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.098093"], ["updated_at", "2018-12-07 01:59:45.098093"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8295” for 127.0.0.1 at 2018-12-06 23:59:45 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8295"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7d3R5dawMkDWWRfosX0U4O0iV55IKKLKN1EUiA2YeqITexv.oXy7C"], ["created_at", "2018-12-07 01:59:45.104143"], ["updated_at", "2018-12-07 01:59:45.104143"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.105667"], ["updated_at", "2018-12-07 01:59:45.105667"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8296/edit” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.107036"], ["last_sign_in_at", "2018-12-07 01:59:45.107036"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.107423"], ["id", 11070]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8296"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8296], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$w6TV50wS.TbEVLIWBLjcqOPy7rgkMkOol2LBbDiMfBcCbAev1zH1K"], ["created_at", "2018-12-07 01:59:45.118629"], ["updated_at", "2018-12-07 01:59:45.118629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.120250"], ["updated_at", "2018-12-07 01:59:45.120250"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8297/edit” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.121688"], ["last_sign_in_at", "2018-12-07 01:59:45.121688"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.122071"], ["id", 11071]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8297"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8297], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.129668"], ["updated_at", "2018-12-07 01:59:45.129668"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8298” for 127.0.0.1 at 2018-12-06 23:59:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8298"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fvARhEvM2zPAK8RbJaGMC.vhL2xcDQtv.lPyf/AF/k34ArcmjSFI6"], ["created_at", "2018-12-07 01:59:45.135815"], ["updated_at", "2018-12-07 01:59:45.135815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.137804"], ["last_sign_in_at", "2018-12-07 01:59:45.137804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.138152"], ["id", 11072]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.140563"], ["updated_at", "2018-12-07 01:59:45.140563"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NIt597ZtZIQddIlUwSOCYuuynpIPxkl5b6en3DV96D48Oe16.Vq1G"], ["created_at", "2018-12-07 01:59:45.147271"], ["updated_at", "2018-12-07 01:59:45.147271"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.149420"], ["last_sign_in_at", "2018-12-07 01:59:45.149420"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.149802"], ["id", 11073]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.152170"], ["updated_at", "2018-12-07 01:59:45.152170"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xwKZb.2wBe/F7vKq8hMQHedsrb3AhkRbyB1NoBiFyiyab1dAYZwjy"], ["created_at", "2018-12-07 01:59:45.157339"], ["updated_at", "2018-12-07 01:59:45.157339"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.159330"], ["last_sign_in_at", "2018-12-07 01:59:45.159330"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.159675"], ["id", 11074]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fY89sfbOkNRszwGAqcLzLuMVFXeXa6wfgzr6G4tPnK1p06EfDym9m"], ["created_at", "2018-12-07 01:59:45.166992"], ["updated_at", "2018-12-07 01:59:45.166992"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.168932"], ["last_sign_in_at", "2018-12-07 01:59:45.168932"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.169289"], ["id", 11075]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YQFQ4aLFBiAO3ELChs6TB.Wfi3pzO733Pm/pHf7.6jsBwHAQAQKIS"], ["created_at", "2018-12-07 01:59:45.177022"], ["updated_at", "2018-12-07 01:59:45.177022"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.179125"], ["last_sign_in_at", "2018-12-07 01:59:45.179125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.179450"], ["id", 11076]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ysDUIR5gy8sl5WT4TXcRHeBlZI4uprqPrW5kWs/PEF.fD8OZkS8/G"], ["created_at", "2018-12-07 01:59:45.185240"], ["updated_at", "2018-12-07 01:59:45.185240"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.186700"], ["updated_at", "2018-12-07 01:59:45.186700"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8301” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.188364"], ["last_sign_in_at", "2018-12-07 01:59:45.188364"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.188695"], ["id", 11077]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8301"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8301], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:59:45.191422"], ["id", 8301]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8301 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NdeVKNksFltHkq88f/aehuTdS0LhShcTBlY2NoyTRmGXbUAZ3ifaO"], ["created_at", "2018-12-07 01:59:45.196720"], ["updated_at", "2018-12-07 01:59:45.196720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.198184"], ["updated_at", "2018-12-07 01:59:45.198184"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8302” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.199859"], ["last_sign_in_at", "2018-12-07 01:59:45.199859"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.200189"], ["id", 11078]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8302"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8302], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 01:59:45.202836"], ["id", 8302]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8302 Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UWPYcJItSeqEaArjqGLD0ug64mJIB/6zndfsFW/fozmHynKRXqq7m"], ["created_at", "2018-12-07 01:59:45.208536"], ["updated_at", "2018-12-07 01:59:45.208536"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.210149"], ["updated_at", "2018-12-07 01:59:45.210149"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8303” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.211906"], ["last_sign_in_at", "2018-12-07 01:59:45.211906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.212244"], ["id", 11079]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8303"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8303], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8zW1ZxGmqGlCF9k2woBsGusc97OQLi7LBCVKs7jb8NZBUMM4WHJt6"], ["created_at", "2018-12-07 01:59:45.223078"], ["updated_at", "2018-12-07 01:59:45.223078"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.224595"], ["updated_at", "2018-12-07 01:59:45.224595"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8304” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.226292"], ["last_sign_in_at", "2018-12-07 01:59:45.226292"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.226628"], ["id", 11080]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8304"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8304], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8MsxBWD.3hqmlJFV4NLy8.TK3nW9d6u.ZhsGwxPfVZA69/Parefky"], ["created_at", "2018-12-07 01:59:45.237467"], ["updated_at", "2018-12-07 01:59:45.237467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.239901"], ["last_sign_in_at", "2018-12-07 01:59:45.239901"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.240255"], ["id", 11081]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Fd5KgOpNXmE36OWqS9mRZ.2.WFh4Kgtp/hENlRr5DFYJrr4Mao7jS"], ["created_at", "2018-12-07 01:59:45.246039"], ["updated_at", "2018-12-07 01:59:45.246039"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.247482"], ["updated_at", "2018-12-07 01:59:45.247482"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8305” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.248789"], ["last_sign_in_at", "2018-12-07 01:59:45.248789"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.249114"], ["id", 11082]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8305"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8305], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8305]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wXBG2f/CdK5t0d24W8vEV.uSw6S5AkE2TqwFbjhCJv92L6NFYBwGC"], ["created_at", "2018-12-07 01:59:45.256092"], ["updated_at", "2018-12-07 01:59:45.256092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.257551"], ["updated_at", "2018-12-07 01:59:45.257551"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8306” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.258857"], ["last_sign_in_at", "2018-12-07 01:59:45.258857"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.259184"], ["id", 11083]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8306"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8306], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8306]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZFaQPVIlbN95WyPFLFNKnuptfxHnRXyhvP8n95aD/7rwmy4BvGylq"], ["created_at", "2018-12-07 01:59:45.265833"], ["updated_at", "2018-12-07 01:59:45.265833"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.267439"], ["updated_at", "2018-12-07 01:59:45.267439"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8307” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.269147"], ["last_sign_in_at", "2018-12-07 01:59:45.269147"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.269561"], ["id", 11084]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8307"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zJlhqHHaObys5a.bcs25Fuu91isL3wqPn18.MgcqVMI.VTuxXh3Ri"], ["created_at", "2018-12-07 01:59:45.275783"], ["updated_at", "2018-12-07 01:59:45.275783"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.277247"], ["updated_at", "2018-12-07 01:59:45.277247"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8308” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.278555"], ["last_sign_in_at", "2018-12-07 01:59:45.278555"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.278881"], ["id", 11085]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8308"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kXN3wGi82KURQlIYE4DE1OYx4iDtWECCFDnDbIAf7M130LxTkxVXC"], ["created_at", "2018-12-07 01:59:45.284379"], ["updated_at", "2018-12-07 01:59:45.284379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.285871"], ["last_sign_in_at", "2018-12-07 01:59:45.285871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.286172"], ["id", 11086]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K3uBjoq8Xm1k7gtLg1tjeeGL.RWKEy8Yv5oQTC7FVdrtKkbNOVFHO"], ["created_at", "2018-12-07 01:59:45.297227"], ["updated_at", "2018-12-07 01:59:45.297227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.298837"], ["updated_at", "2018-12-07 01:59:45.298837"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.300369"], ["updated_at", "2018-12-07 01:59:45.300369"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.301674"], ["updated_at", "2018-12-07 01:59:45.301674"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8309], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11087], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11087], ["room_id", 8309], ["created_at", "2018-12-07 01:59:45.304447"], ["updated_at", "2018-12-07 01:59:45.304447"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.306017"], ["last_sign_in_at", "2018-12-07 01:59:45.306017"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.306346"], ["id", 11087]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rCsTcC60aKHeYTd7OP.RIOoXr40ZYmb4V/eJ8BPO/AMvWNz91gNKa"], ["created_at", "2018-12-07 01:59:45.322202"], ["updated_at", "2018-12-07 01:59:45.322202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.323693"], ["updated_at", "2018-12-07 01:59:45.323693"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.324869"], ["updated_at", "2018-12-07 01:59:45.324869"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 01:59:45.325934"], ["updated_at", "2018-12-07 01:59:45.325934"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8312], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11088], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11088], ["room_id", 8312], ["created_at", "2018-12-07 01:59:45.328611"], ["updated_at", "2018-12-07 01:59:45.328611"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-06 23:59:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:45.330268"], ["last_sign_in_at", "2018-12-07 01:59:45.330268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:45.330858"], ["id", 11088]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$3FaOk7ABlbUaGhVVDck71eNFag8o9VBu4xq/o63x.AsoE33yNhv3O"], ["created_at", "2018-12-07 01:59:55.585453"], ["updated_at", "2018-12-07 01:59:55.585453"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.0ms)
Rendered users/sessions/new.html.erb within layouts/application (166.0ms)

Completed 200 OK in 179ms (Views: 170.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:55.793396"], ["last_sign_in_at", "2018-12-07 01:59:55.793396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:55.793890"], ["id", 11089]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11089], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11089], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11089], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 14ms (Views: 5.5ms | ActiveRecord: 2.2ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11089], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11089], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$NhZAhUp7mU.CNxILz2GA9.YwAFc3/wJ38gtkWAYhP1ae2laU7/Smy"], ["created_at", "2018-12-07 01:59:55.849322"], ["updated_at", "2018-12-07 01:59:55.849322"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:55.861060"], ["last_sign_in_at", "2018-12-07 01:59:55.861060"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:55.861484"], ["id", 11090]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11090], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11090], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11090], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11090], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11090], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$iLA0tDNgMBnpLGazDaeiE.vZe2PbwwHT1GDccGAPQgQbTN440HRy2"], ["created_at", "2018-12-07 01:59:55.905665"], ["updated_at", "2018-12-07 01:59:55.905665"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:55.918757"], ["last_sign_in_at", "2018-12-07 01:59:55.918757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:55.919215"], ["id", 11091]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11091], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$tk9wkCpvLLMOTJ88zf2hFePPJttkXlLr6KrFcf7f5JEMJN5oefNJK"], ["created_at", "2018-12-07 01:59:55.933925"], ["updated_at", "2018-12-07 01:59:55.933925"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.0ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 3ms (ActiveRecord: 0.4ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ch/N/ml5AHce9XijiyuzheGyyEuDrIGdLNFakz9ebbNVtd/6w4PJq"], ["created_at", "2018-12-07 01:59:55.978852"], ["updated_at", "2018-12-07 01:59:55.978852"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:55.992058"], ["last_sign_in_at", "2018-12-07 01:59:55.992058"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:55.992580"], ["id", 11093]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11093], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.004066"], ["updated_at", "2018-12-07 01:59:56.004066"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11093], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/8315” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8315"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8315], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8315')
Rendered appointments/show.html.erb within layouts/application (6.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11093], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 17ms (Views: 8.2ms | ActiveRecord: 1.9ms) Started POST “/appointments.8315” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11093], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8315 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8315], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11093], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11093], ["room_id", 8315], ["created_at", "2018-12-07 01:59:56.063382"], ["updated_at", "2018-12-07 01:59:56.063382"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 19ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11093], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$IlyVl60jTJDtIEyeoU2k9O1ameD3ztabwjKhbNPAyQqxYBY79KcCG"], ["created_at", "2018-12-07 01:59:56.076969"], ["updated_at", "2018-12-07 01:59:56.076969"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.090524"], ["last_sign_in_at", "2018-12-07 01:59:56.090524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.091034"], ["id", 11094]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11094], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.102226"], ["updated_at", "2018-12-07 01:59:56.102226"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8316], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11094], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11094], ["room_id", 8316], ["created_at", "2018-12-07 01:59:56.106933"], ["updated_at", "2018-12-07 01:59:56.106933"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11094], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started GET “/appointments/8316” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8316"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8316], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8316')
Rendered appointments/show.html.erb within layouts/application (6.1ms)
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11094], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 10.9ms | ActiveRecord: 0.7ms) Started POST “/appointments.8316” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11094], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8316 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8316], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11094], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11094], ["room_id", 8316], ["created_at", "2018-12-07 01:59:56.156591"], ["updated_at", "2018-12-07 01:59:56.156591"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 8ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11094], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$SwEgU7NmjR3kfK/DyydjWOqDMLBSMe2av3Q.WMPMGOOSlixtUlQOW"], ["created_at", "2018-12-07 01:59:56.176708"], ["updated_at", "2018-12-07 01:59:56.176708"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.5ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.195658"], ["last_sign_in_at", "2018-12-07 01:59:56.195658"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.196142"], ["id", 11095]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11095], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.208875"], ["updated_at", "2018-12-07 01:59:56.208875"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8317], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11095], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11095], ["room_id", 8317], ["created_at", "2018-12-07 01:59:56.214164"], ["updated_at", "2018-12-07 01:59:56.214164"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11095], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11095]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 13ms (Views: 6.0ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/4326” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4326"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4326], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4326]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11095], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11095]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$gVOr6Y.I9gt75fDy6kiQbeSZlI2TIYOiSv33Nn10CMskFTgZBfEwW"], ["created_at", "2018-12-07 01:59:56.255970"], ["updated_at", "2018-12-07 01:59:56.255970"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.8ms)
Rendered users/sessions/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.274219"], ["last_sign_in_at", "2018-12-07 01:59:56.274219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.275058"], ["id", 11096]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11096], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:59:56.285963"], ["updated_at", "2018-12-07 01:59:56.285963"], ["tipo_sala", "Auditório"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8318], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11096], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11096], ["room_id", 8318], ["created_at", "2018-12-07 01:59:56.291656"], ["updated_at", "2018-12-07 01:59:56.291656"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11096], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11096]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/4327” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4327"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4327], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4327]]
 (0.3ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11096], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11096]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$S3xPi5Uqom06WeVJD4m3L.PoQB/XbjuhAyrcLlQInYTNTm7gzAo.m"], ["created_at", "2018-12-07 01:59:56.326418"], ["updated_at", "2018-12-07 01:59:56.326418"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.2ms)
Rendered users/sessions/new.html.erb within layouts/application (2.7ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.345699"], ["last_sign_in_at", "2018-12-07 01:59:56.345699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.346218"], ["id", 11097]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 7ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11097], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 01:59:56.357147"], ["updated_at", "2018-12-07 01:59:56.357147"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:59:56.359201"], ["updated_at", "2018-12-07 01:59:56.359201"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.4ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.3ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11097], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11097], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.5ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11097], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.6ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$pXCfl.8Xr4KvvfxgVbQNC.QinNZ..pBokzWL/cPsXepXWjzKMLTta"], ["created_at", "2018-12-07 01:59:56.395656"], ["updated_at", "2018-12-07 01:59:56.395656"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.407812"], ["last_sign_in_at", "2018-12-07 01:59:56.407812"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.408247"], ["id", 11098]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11098], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11098], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11098], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$/Ce6LI4z3NqEW4oVSx70DeLPJl7hgUz6bZ7gvHpVA0RxHYzjJxYgq"], ["created_at", "2018-12-07 01:59:56.432935"], ["updated_at", "2018-12-07 01:59:56.432935"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.444265"], ["last_sign_in_at", "2018-12-07 01:59:56.444265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.444692"], ["id", 11099]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11099], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11099], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$cCRtM83tPXZYlXYR3cK5bOrHVSh0SaZWBLKfipKFe929STfDx9Z4W"], ["created_at", "2018-12-07 01:59:56.481588"], ["updated_at", "2018-12-07 01:59:56.481588"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.494239"], ["last_sign_in_at", "2018-12-07 01:59:56.494239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.494693"], ["id", 11100]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11100], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.503014"], ["updated_at", "2018-12-07 01:59:56.503014"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8321], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11100], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11100], ["room_id", 8321], ["created_at", "2018-12-07 01:59:56.506594"], ["updated_at", "2018-12-07 01:59:56.506594"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11100], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/appointments/8321” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8321"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8321], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8321')
Rendered appointments/show.html.erb within layouts/application (3.8ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11100], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.8ms) Started POST “/appointments.8321” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11100], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8321 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8321], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11100], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11100], ["room_id", 8321], ["created_at", "2018-12-07 01:59:56.536936"], ["updated_at", "2018-12-07 01:59:56.536936"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11100], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$z226JE/0a8EirbBZc.bVN.o5Z3qFkRJlENWuaxfZxx5SYhBxC3giO"], ["created_at", "2018-12-07 01:59:56.549867"], ["updated_at", "2018-12-07 01:59:56.549867"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.563165"], ["last_sign_in_at", "2018-12-07 01:59:56.563165"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.563658"], ["id", 11101]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11101], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.571899"], ["updated_at", "2018-12-07 01:59:56.571899"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8322], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11101], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11101], ["room_id", 8322], ["created_at", "2018-12-07 01:59:56.575746"], ["updated_at", "2018-12-07 01:59:56.575746"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11101], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11101]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$LsuYsa1rn/TD.eN1eNiHau.Y8.AePv18trwg9MF9EGrveI2gKyT5m"], ["created_at", "2018-12-07 01:59:56.591809"], ["updated_at", "2018-12-07 01:59:56.591809"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.603799"], ["last_sign_in_at", "2018-12-07 01:59:56.603799"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.604216"], ["id", 11102]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11102], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 01:59:56.611289"], ["updated_at", "2018-12-07 01:59:56.611289"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8323], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11102], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11102], ["room_id", 8323], ["created_at", "2018-12-07 01:59:56.615279"], ["updated_at", "2018-12-07 01:59:56.615279"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11102], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11102]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$.bbCtwjaakTtQFn9SWzEp.S/1sggMleEkFm1ezrEEiUQXWEtwB6Nm"], ["created_at", "2018-12-07 01:59:56.632576"], ["updated_at", "2018-12-07 01:59:56.632576"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.644870"], ["last_sign_in_at", "2018-12-07 01:59:56.644870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.645352"], ["id", 11103]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11103], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Vs1WxOt7EKANu6kOvWaPJ.QnpH2otIOx0kFJHtbIzy3AKzUaru9/2"], ["created_at", "2018-12-07 01:59:56.661577"], ["updated_at", "2018-12-07 01:59:56.661577"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.674424"], ["last_sign_in_at", "2018-12-07 01:59:56.674424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.674947"], ["id", 11104]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 12ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11104], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:59:56.690037"], ["updated_at", "2018-12-07 01:59:56.690037"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.691568"], ["updated_at", "2018-12-07 01:59:56.691568"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11104], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/8324” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8324"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8324], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8324')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11104], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started POST “/appointments.8324” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11104], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8324 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8324], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11104], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11104], ["room_id", 8324], ["created_at", "2018-12-07 01:59:56.721693"], ["updated_at", "2018-12-07 01:59:56.721693"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11104], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Y7/2OnBfd.pR1kpd0DCC4eWtFhR5wfrv/FEYWsO9fPueZu0GXuY5S"], ["created_at", "2018-12-07 01:59:56.733821"], ["updated_at", "2018-12-07 01:59:56.733821"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.745479"], ["last_sign_in_at", "2018-12-07 01:59:56.745479"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.746088"], ["id", 11105]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11105], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:59:56.754555"], ["updated_at", "2018-12-07 01:59:56.754555"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.755987"], ["updated_at", "2018-12-07 01:59:56.755987"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11105], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/8326” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8326"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8326], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8326')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11105], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.8326” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11105], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8326 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11105], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$EOAmG80X/RApKlhXhDtbROyYSGW7tNGJZEsDKuyjZi1vU/W7fW0HW"], ["created_at", "2018-12-07 01:59:56.792773"], ["updated_at", "2018-12-07 01:59:56.792773"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.804742"], ["last_sign_in_at", "2018-12-07 01:59:56.804742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.805232"], ["id", 11106]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11106], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 01:59:56.813678"], ["updated_at", "2018-12-07 01:59:56.813678"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11106], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11106], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started DELETE “/rooms/8328” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8328"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11106], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8328], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8328]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11106], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$QV43ScQw0kbD006rzp3UAu/Rzk6MI04DClab.MtHYcgoHNePv/pli"], ["created_at", "2018-12-07 01:59:56.844353"], ["updated_at", "2018-12-07 01:59:56.844353"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 01:59:56.845902"], ["updated_at", "2018-12-07 01:59:56.845902"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.862905"], ["last_sign_in_at", "2018-12-07 01:59:56.862905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.863409"], ["id", 11107]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11107], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11107], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms) Started GET “/rooms/8329/edit” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8329"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11107], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8329], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.1ms | ActiveRecord: 0.5ms) Started PATCH “/rooms/8329” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"8329"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11107], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8329], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.5ms | ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$V8bGs3uTvYDwHPzeD5b9Iun2XHe5NqgzLiuXp3.Zd0Ei05nnL/p8m"], ["created_at", "2018-12-07 01:59:56.913095"], ["updated_at", "2018-12-07 01:59:56.913095"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$Fil.yZjLJo7Gixc7kYpVDuxy6ZU17bB2VqUEOqmqFcYu5hcs1B/2e"], ["created_at", "2018-12-07 01:59:56.922644"], ["updated_at", "2018-12-07 01:59:56.922644"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.934820"], ["last_sign_in_at", "2018-12-07 01:59:56.934820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.935313"], ["id", 11109]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11109], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11109], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 01:59:56.948897"], ["updated_at", "2018-12-07 01:59:56.948897"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 01:59:56.950265"], ["updated_at", "2018-12-07 01:59:56.950265"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 01:59:56.951523"], ["updated_at", "2018-12-07 01:59:56.951523"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$DIzy/uECzcU1RCjPUpAOOOVDufgwsniEVvytYl9qWkf0XlA7SAlRW"], ["created_at", "2018-12-07 01:59:56.974794"], ["updated_at", "2018-12-07 01:59:56.974794"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:56.987330"], ["last_sign_in_at", "2018-12-07 01:59:56.987330"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:56.987834"], ["id", 11110]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11110], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:59:56.995532"], ["updated_at", "2018-12-07 01:59:56.995532"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:56.996853"], ["updated_at", "2018-12-07 01:59:56.996853"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11110], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$rxWd38h/zzRfUcHHsdJZbefP3c/OfkBXRd4QUX1tKqbQMsvkgGxX."], ["created_at", "2018-12-07 01:59:57.015083"], ["updated_at", "2018-12-07 01:59:57.015083"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:57.027243"], ["last_sign_in_at", "2018-12-07 01:59:57.027243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:57.027658"], ["id", 11111]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11111], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:59:57.036522"], ["updated_at", "2018-12-07 01:59:57.036522"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:57.037914"], ["updated_at", "2018-12-07 01:59:57.037914"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11111], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$lkKVvjsZgobMrvKtwuwNeOY.z4PLaKruNL4GrQLRSwSLhTPukAVwW"], ["created_at", "2018-12-07 01:59:57.055210"], ["updated_at", "2018-12-07 01:59:57.055210"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:57.068531"], ["last_sign_in_at", "2018-12-07 01:59:57.068531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:57.069065"], ["id", 11112]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11112], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:59:57.077223"], ["updated_at", "2018-12-07 01:59:57.077223"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:57.078555"], ["updated_at", "2018-12-07 01:59:57.078555"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11112], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11112], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11112], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11112], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11112], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-07", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11112], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-07' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 2.9ms | ActiveRecord: 0.8ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Z7oglaj7wPku4bk.UdTg0eUSbv2J5xRsP.1BqJG8Shddny6TCXwPe"], ["created_at", "2018-12-07 01:59:57.125299"], ["updated_at", "2018-12-07 01:59:57.125299"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:57.138724"], ["last_sign_in_at", "2018-12-07 01:59:57.138724"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:57.139144"], ["id", 11113]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11113], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 01:59:57.146485"], ["updated_at", "2018-12-07 01:59:57.146485"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 01:59:57.147971"], ["updated_at", "2018-12-07 01:59:57.147971"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11113], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11113], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11113], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11113], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11113], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.2ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11113], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11113], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$cskGYddgbz8lv31QCl.ED.VM3Z.vGQ2ejpzv9QyBGiu3W8Uu7ul9O"], ["created_at", "2018-12-07 01:59:57.183458"], ["updated_at", "2018-12-07 01:59:57.183458"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:57.202487"], ["last_sign_in_at", "2018-12-07 01:59:57.202487"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:57.202985"], ["id", 11114]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11114], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.4ms)
Rendered users/registrations/new.html.erb within layouts/application (3.4ms)

Completed 200 OK in 7ms (Views: 6.3ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$EhlAjSPMTdLqOnDhcUK1fOljHNsXa6GriW/HTaPiLpoDPfPOD.x/a"], ["created_at", "2018-12-07 01:59:57.243929"], ["updated_at", "2018-12-07 01:59:57.243929"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 01:59:57.245120"], ["last_sign_in_at", "2018-12-07 01:59:57.245120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 01:59:57.245398"], ["id", 11115]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11115], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$T5w.RBqLV/THRotQigFWr.3sm70OzHwtFrK2Wwtk8J0u.sfc1ar1W"], ["created_at", "2018-12-07 01:59:57.258232"], ["updated_at", "2018-12-07 01:59:57.258232"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (5.7ms)
Rendered users/sessions/new.html.erb within layouts/application (6.5ms)

Completed 200 OK in 8ms (Views: 7.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:57.282485"], ["last_sign_in_at", "2018-12-07 01:59:57.282485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:57.282989"], ["id", 11116]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11116], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET “/users/11116/edit” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"11116"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11116], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 7ms (Views: 5.2ms | ActiveRecord: 0.4ms) Started PUT “/users/11116” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"11116"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11116], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11116], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 11116], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 01:59:57.318655"], ["id", 11116]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11116], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$AnBJ2SYC8ze0UWNYLvgdjeGsTUhg48RgDrttlHJ8BDWeuQdG2cMsK"], ["created_at", "2018-12-07 01:59:57.334866"], ["updated_at", "2018-12-07 01:59:57.334866"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:57.346972"], ["last_sign_in_at", "2018-12-07 01:59:57.346972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:57.347386"], ["id", 11117]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11117], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 01:59:57.355992"], ["updated_at", "2018-12-07 01:59:57.355992"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11117], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11117], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11117], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11117], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11117], ["room_id", 1], ["created_at", "2018-12-07 01:59:57.383055"], ["updated_at", "2018-12-07 01:59:57.383055"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11117], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$5SEd/BzhooxfU1t9lt0qf.AKz04AGp3e0468enjGiDlMD7k1X/Q0C"], ["created_at", "2018-12-07 01:59:57.395562"], ["updated_at", "2018-12-07 01:59:57.395562"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 01:59:57.407893"], ["last_sign_in_at", "2018-12-07 01:59:57.407893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 01:59:57.408376"], ["id", 11118]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11118], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 01:59:57.416455"], ["updated_at", "2018-12-07 01:59:57.416455"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by RoomsController#index as HTML

User Load (0.7ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11118], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 2.9ms | ActiveRecord: 0.9ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11118], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-07", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11118], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-07 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11118], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-07 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11118], ["room_id", 1], ["created_at", "2018-12-07 01:59:57.444326"], ["updated_at", "2018-12-07 01:59:57.444326"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11118], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$XyZ1BLHcw5ZMLbrsGtdTW.ulz0keB7Qugd0EkzgpZ1e.CtsG0fk2i"], ["created_at", "2018-12-07 01:59:57.457139"], ["updated_at", "2018-12-07 01:59:57.457139"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.8ms)
Rendered password_resets/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$2zNpS3DQjCTwx8HzvY28/O9tWX4tFHi0rLOdilO72ghQr0beDcX3m"], ["updated_at", "2018-12-07 01:59:57.488709"], ["id", 11119]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$KaIkgvnz/UssycQOLmWLWu6Q2yJftOTfpKg/n39Wi9DRKC3IfrFvy"], ["created_at", "2018-12-07 01:59:57.495613"], ["updated_at", "2018-12-07 01:59:57.495613"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.4ms)
Rendered password_resets/new.html.erb within layouts/application (1.2ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-06 23:59:57 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$SdIic1aRRH1D6s8q/icSIevNcnDHsbEJNPfA4y3EaJ/AAnmB7lK1e"], ["created_at", "2018-12-07 02:00:35.152304"], ["updated_at", "2018-12-07 02:00:35.152304"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (37.3ms)
Rendered users/sessions/new.html.erb within layouts/application (187.5ms)

Completed 200 OK in 208ms (Views: 199.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.391450"], ["last_sign_in_at", "2018-12-07 02:00:35.391450"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.392015"], ["id", 11121]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11121], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.5ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11121], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11121], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 5.8ms | ActiveRecord: 2.1ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11121], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11121], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Ol.fU1lhnl5MJQ.nPRZkzuw3uNoHrcNCIPinY7FCxve7dO3.EFuQu"], ["created_at", "2018-12-07 02:00:35.450270"], ["updated_at", "2018-12-07 02:00:35.450270"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.462553"], ["last_sign_in_at", "2018-12-07 02:00:35.462553"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.463042"], ["id", 11122]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11122], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11122], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11122], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11122], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11122], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$VKM2YwpcZrcfsL9f0lHCme6JmFUt1gM2EAwXW1bQNMc4KQQmR5Iy6"], ["created_at", "2018-12-07 02:00:35.507331"], ["updated_at", "2018-12-07 02:00:35.507331"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.520649"], ["last_sign_in_at", "2018-12-07 02:00:35.520649"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.521120"], ["id", 11123]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11123], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$8aSqtT6asYw4lKjQs6vrjuJe9l1yH0Oj3cQPLo98IfRnBIra5KZxq"], ["created_at", "2018-12-07 02:00:35.536318"], ["updated_at", "2018-12-07 02:00:35.536318"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.3ms)

Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$hhsnwtDdh49T6gH1bVq/2.r/3ozHBZvACm4vV6r9H9nkR6TsU5ry6"], ["created_at", "2018-12-07 02:00:35.559717"], ["updated_at", "2018-12-07 02:00:35.559717"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.571897"], ["last_sign_in_at", "2018-12-07 02:00:35.571897"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.572365"], ["id", 11125]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11125], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:35.581577"], ["updated_at", "2018-12-07 02:00:35.581577"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11125], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/appointments/8341” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8341"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8341], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8341')
Rendered appointments/show.html.erb within layouts/application (5.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11125], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 6.9ms | ActiveRecord: 1.9ms) Started POST “/appointments.8341” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11125], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8341 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8341], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11125], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11125], ["room_id", 8341], ["created_at", "2018-12-07 02:00:35.634657"], ["updated_at", "2018-12-07 02:00:35.634657"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11125], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$/uR2sbv1EvmRiXLZXRyg/.IoRMPg81QuzfNnBD7YQ2Qpd2W62WMty"], ["created_at", "2018-12-07 02:00:35.646430"], ["updated_at", "2018-12-07 02:00:35.646430"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.658538"], ["last_sign_in_at", "2018-12-07 02:00:35.658538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.659053"], ["id", 11126]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11126], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:35.667677"], ["updated_at", "2018-12-07 02:00:35.667677"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8342], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11126], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11126], ["room_id", 8342], ["created_at", "2018-12-07 02:00:35.672290"], ["updated_at", "2018-12-07 02:00:35.672290"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11126], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.6ms) Started GET “/appointments/8342” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8342"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8342], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8342')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11126], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.8342” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11126], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8342 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8342], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11126], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11126], ["room_id", 8342], ["created_at", "2018-12-07 02:00:35.700860"], ["updated_at", "2018-12-07 02:00:35.700860"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11126], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$lguJKoZONnSZJ9op44xlFu0mDNVXuGHkUiSNEu8AfoAqacev5GKna"], ["created_at", "2018-12-07 02:00:35.712419"], ["updated_at", "2018-12-07 02:00:35.712419"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.723960"], ["last_sign_in_at", "2018-12-07 02:00:35.723960"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.724418"], ["id", 11127]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11127], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:35.732200"], ["updated_at", "2018-12-07 02:00:35.732200"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8343], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11127], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11127], ["room_id", 8343], ["created_at", "2018-12-07 02:00:35.736176"], ["updated_at", "2018-12-07 02:00:35.736176"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11127], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11127]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 10ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/4338” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4338"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4338], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4338]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11127], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11127]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$jOgDdw9NF1/6SIGazvF5PuZ8r2Nnk6flg7B4a1VD8Ff6RYMVCnOIS"], ["created_at", "2018-12-07 02:00:35.765310"], ["updated_at", "2018-12-07 02:00:35.765310"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.783383"], ["last_sign_in_at", "2018-12-07 02:00:35.783383"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.783894"], ["id", 11128]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11128], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:00:35.791232"], ["updated_at", "2018-12-07 02:00:35.791232"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8344], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11128], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11128], ["room_id", 8344], ["created_at", "2018-12-07 02:00:35.795297"], ["updated_at", "2018-12-07 02:00:35.795297"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11128], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11128]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started DELETE “/appointments/4339” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4339"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4339], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4339]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11128], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11128]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$fUJHMk.zz73G2q5DgMbCUOrfDPNfVlYcT6CnRtM84hrWjF50Q/ZXS"], ["created_at", "2018-12-07 02:00:35.817713"], ["updated_at", "2018-12-07 02:00:35.817713"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.829350"], ["last_sign_in_at", "2018-12-07 02:00:35.829350"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.829811"], ["id", 11129]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11129], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 02:00:35.837846"], ["updated_at", "2018-12-07 02:00:35.837846"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:00:35.839237"], ["updated_at", "2018-12-07 02:00:35.839237"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11129], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11129], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11129], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$pLSvNGZt/yqagTO8MxsJzujJHNq8VKI2fKL9AxmRFbN5KPA7uQilC"], ["created_at", "2018-12-07 02:00:35.863228"], ["updated_at", "2018-12-07 02:00:35.863228"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.875487"], ["last_sign_in_at", "2018-12-07 02:00:35.875487"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.875928"], ["id", 11130]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11130], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11130], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11130], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 1.7ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Se/Cq8LulCuQ2Ln.0bLuuuNtLdRQcs8lpNSmQ2vQ0hLWjsBdwmirG"], ["created_at", "2018-12-07 02:00:35.900753"], ["updated_at", "2018-12-07 02:00:35.900753"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.912444"], ["last_sign_in_at", "2018-12-07 02:00:35.912444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.912869"], ["id", 11131]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11131], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.5ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11131], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Xs0uJ5E2laosgsf1CZctD.zj9.Q48QpUn5ticODVimvWBdIFLOgnq"], ["created_at", "2018-12-07 02:00:35.948983"], ["updated_at", "2018-12-07 02:00:35.948983"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:35.960189"], ["last_sign_in_at", "2018-12-07 02:00:35.960189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:35.960634"], ["id", 11132]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11132], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:35.969622"], ["updated_at", "2018-12-07 02:00:35.969622"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8347], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11132], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11132], ["room_id", 8347], ["created_at", "2018-12-07 02:00:35.973436"], ["updated_at", "2018-12-07 02:00:35.973436"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11132], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/8347” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8347"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8347], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8347')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11132], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.6ms) Started POST “/appointments.8347” for 127.0.0.1 at 2018-12-07 00:00:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11132], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8347 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8347], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11132], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11132], ["room_id", 8347], ["created_at", "2018-12-07 02:00:36.001906"], ["updated_at", "2018-12-07 02:00:36.001906"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11132], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$pPZplmpwsfalgL3S9erdZ.Fe8wo0r15bgSHeXkqPZwXhqUgSyC5yi"], ["created_at", "2018-12-07 02:00:36.013740"], ["updated_at", "2018-12-07 02:00:36.013740"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.025316"], ["last_sign_in_at", "2018-12-07 02:00:36.025316"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.025801"], ["id", 11133]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11133], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:36.034224"], ["updated_at", "2018-12-07 02:00:36.034224"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8348], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11133], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11133], ["room_id", 8348], ["created_at", "2018-12-07 02:00:36.038340"], ["updated_at", "2018-12-07 02:00:36.038340"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11133], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11133]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$QKlju7SJrJUqO6ZFQUyId.GoufMtsrPOyPA6Po/7HvGiZ6Ue8J6Jm"], ["created_at", "2018-12-07 02:00:36.053449"], ["updated_at", "2018-12-07 02:00:36.053449"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.065912"], ["last_sign_in_at", "2018-12-07 02:00:36.065912"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.066382"], ["id", 11134]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11134], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:00:36.073615"], ["updated_at", "2018-12-07 02:00:36.073615"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8349], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11134], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11134], ["room_id", 8349], ["created_at", "2018-12-07 02:00:36.077697"], ["updated_at", "2018-12-07 02:00:36.077697"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11134], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11134]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$PM71ISlHIKdWCSz2569qUeOUlXzYa2nmehStETozNboxsY0dpJjt2"], ["created_at", "2018-12-07 02:00:36.093156"], ["updated_at", "2018-12-07 02:00:36.093156"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.105430"], ["last_sign_in_at", "2018-12-07 02:00:36.105430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.105886"], ["id", 11135]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11135], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$2p1WIeDj7fymPsqLinUCx.vrjS..Ie73TwDRw6Oez.IaeqI2reG1m"], ["created_at", "2018-12-07 02:00:36.119336"], ["updated_at", "2018-12-07 02:00:36.119336"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.132289"], ["last_sign_in_at", "2018-12-07 02:00:36.132289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.132726"], ["id", 11136]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11136], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:00:36.140555"], ["updated_at", "2018-12-07 02:00:36.140555"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:36.141854"], ["updated_at", "2018-12-07 02:00:36.141854"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11136], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/8350” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8350"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8350], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8350')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11136], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.8ms) Started POST “/appointments.8350” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11136], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8350 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8350], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11136], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11136], ["room_id", 8350], ["created_at", "2018-12-07 02:00:36.172312"], ["updated_at", "2018-12-07 02:00:36.172312"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11136], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$tr6fpmLuPlD/mx1ZZjh/kOnCQMJH5vWeISnwuhOdJUx9tQMIQ86ry"], ["created_at", "2018-12-07 02:00:36.191729"], ["updated_at", "2018-12-07 02:00:36.191729"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.204072"], ["last_sign_in_at", "2018-12-07 02:00:36.204072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.204505"], ["id", 11137]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11137], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:00:36.211958"], ["updated_at", "2018-12-07 02:00:36.211958"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:36.213293"], ["updated_at", "2018-12-07 02:00:36.213293"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11137], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started GET “/appointments/8352” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8352"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8352], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8352')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11137], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.8352” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11137], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8352 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11137], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$.cNzdbc8akXozHFO3Hq8MOxh3w.eS.LkRADxi2ikzOwbEcupvRv56"], ["created_at", "2018-12-07 02:00:36.250153"], ["updated_at", "2018-12-07 02:00:36.250153"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.262191"], ["last_sign_in_at", "2018-12-07 02:00:36.262191"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.262654"], ["id", 11138]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11138], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:00:36.269726"], ["updated_at", "2018-12-07 02:00:36.269726"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11138], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11138], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.5ms) Started DELETE “/rooms/8354” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8354"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11138], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8354], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8354]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11138], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$/cTRAvHynibunRf9/iTFWOcANebwWk7jUIZccwzPU1nad.Kx7e2zG"], ["created_at", "2018-12-07 02:00:36.298846"], ["updated_at", "2018-12-07 02:00:36.298846"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:00:36.300315"], ["updated_at", "2018-12-07 02:00:36.300315"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.317120"], ["last_sign_in_at", "2018-12-07 02:00:36.317120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.317584"], ["id", 11139]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11139], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11139], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/8355/edit” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8355"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11139], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8355], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.4ms) Started PATCH “/rooms/8355” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"8355"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11139], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8355], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$am6LbUiIkNV/Alz/QsXgSu6c8ur24O9oz13mU2Ypsgf27mHoOqb06"], ["created_at", "2018-12-07 02:00:36.361334"], ["updated_at", "2018-12-07 02:00:36.361334"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$T06u9SgeCSLhmzWkNkJ75Ozlxi4gq7ofCzDhacLCl3l1.NHBgKJSK"], ["created_at", "2018-12-07 02:00:36.369906"], ["updated_at", "2018-12-07 02:00:36.369906"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.381968"], ["last_sign_in_at", "2018-12-07 02:00:36.381968"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.382387"], ["id", 11141]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11141], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11141], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 02:00:36.394186"], ["updated_at", "2018-12-07 02:00:36.394186"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 02:00:36.395534"], ["updated_at", "2018-12-07 02:00:36.395534"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 02:00:36.396558"], ["updated_at", "2018-12-07 02:00:36.396558"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iCZ/kX8L7Gdk5cGjM6fx2.nXndUqlO2yV8ESV57/N7Y9vQjkAEvUS"], ["created_at", "2018-12-07 02:00:36.412834"], ["updated_at", "2018-12-07 02:00:36.412834"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.424480"], ["last_sign_in_at", "2018-12-07 02:00:36.424480"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.424874"], ["id", 11142]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11142], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:00:36.431902"], ["updated_at", "2018-12-07 02:00:36.431902"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:36.433105"], ["updated_at", "2018-12-07 02:00:36.433105"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11142], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$KNC0upJ0LZXKui7ryH4nket8B0jEnUiR8UW5LewSrWVQ3f3Mpf7lW"], ["created_at", "2018-12-07 02:00:36.449934"], ["updated_at", "2018-12-07 02:00:36.449934"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.461758"], ["last_sign_in_at", "2018-12-07 02:00:36.461758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.462157"], ["id", 11143]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11143], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:00:36.469714"], ["updated_at", "2018-12-07 02:00:36.469714"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:36.471058"], ["updated_at", "2018-12-07 02:00:36.471058"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11143], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$KUPRAdI/xbzS/sSt2YlTuOXVLCWvOPTZPEsMmDX3mUM8FnSisu9cu"], ["created_at", "2018-12-07 02:00:36.489139"], ["updated_at", "2018-12-07 02:00:36.489139"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.501070"], ["last_sign_in_at", "2018-12-07 02:00:36.501070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.501468"], ["id", 11144]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11144], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:00:36.510088"], ["updated_at", "2018-12-07 02:00:36.510088"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:36.511339"], ["updated_at", "2018-12-07 02:00:36.511339"], ["tipo_sala", "salaTeste"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11144], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11144], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11144], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11144], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11144], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.2ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-08", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11144], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-08' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 12ms (Views: 3.1ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$gmWdewxWrXiVjFRpQNzOyuSkBQvJ8RnkqgDsQ.fT1UcuZjS1eofjy"], ["created_at", "2018-12-07 02:00:36.557311"], ["updated_at", "2018-12-07 02:00:36.557311"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.570972"], ["last_sign_in_at", "2018-12-07 02:00:36.570972"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.571532"], ["id", 11145]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11145], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 8ms (Views: 7.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:00:36.585671"], ["updated_at", "2018-12-07 02:00:36.585671"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:00:36.587179"], ["updated_at", "2018-12-07 02:00:36.587179"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11145], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11145], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11145], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11145], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11145], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11145], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11145], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$w/DXPKzNQQ6VUCKFfTa8TuU1oKVygJgzJM6NZ4GtcXyM8deqUKgsa"], ["created_at", "2018-12-07 02:00:36.622039"], ["updated_at", "2018-12-07 02:00:36.622039"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.640216"], ["last_sign_in_at", "2018-12-07 02:00:36.640216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.640696"], ["id", 11146]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11146], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.2ms)
Rendered users/registrations/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 5ms (Views: 4.7ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$cq9yorvs0io3KHTi7WPUmeo95zRaEPpwaqXzJ6E1R9eu1tWEs7Ati"], ["created_at", "2018-12-07 02:00:36.678841"], ["updated_at", "2018-12-07 02:00:36.678841"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:36.680008"], ["last_sign_in_at", "2018-12-07 02:00:36.680008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:36.680317"], ["id", 11147]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11147], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$G5RwHfK3aK4sckF7oaY4qecECU7y/OzamGMR.YBemCEwDRfV7EJme"], ["created_at", "2018-12-07 02:00:36.692113"], ["updated_at", "2018-12-07 02:00:36.692113"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.709765"], ["last_sign_in_at", "2018-12-07 02:00:36.709765"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.710184"], ["id", 11148]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11148], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms) Started GET “/users/11148/edit” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"11148"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11148], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.3ms) Started PUT “/users/11148” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"11148"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11148], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11148], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 11148], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 02:00:36.741977"], ["id", 11148]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11148], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$FiZgBG6WH1eeKDo1QI.6r.SMRiDMfm/hEcuSKapfkiYHbr4vzBfwe"], ["created_at", "2018-12-07 02:00:36.756167"], ["updated_at", "2018-12-07 02:00:36.756167"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.768449"], ["last_sign_in_at", "2018-12-07 02:00:36.768449"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.768945"], ["id", 11149]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11149], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:00:36.776388"], ["updated_at", "2018-12-07 02:00:36.776388"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11149], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11149], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11149], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11149], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11149], ["room_id", 1], ["created_at", "2018-12-07 02:00:36.802118"], ["updated_at", "2018-12-07 02:00:36.802118"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11149], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$m9o5dgBwD4oAR6RZ2EqHZ.APXcnGqSzBuTxTMFzm4DcSOmj3CYbvW"], ["created_at", "2018-12-07 02:00:36.812994"], ["updated_at", "2018-12-07 02:00:36.812994"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:00:36.824258"], ["last_sign_in_at", "2018-12-07 02:00:36.824258"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:00:36.824653"], ["id", 11150]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11150], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:00:36.832750"], ["updated_at", "2018-12-07 02:00:36.832750"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11150], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11150], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11150], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11150], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11150], ["room_id", 1], ["created_at", "2018-12-07 02:00:36.858003"], ["updated_at", "2018-12-07 02:00:36.858003"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11150], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$H2POppV3mBGm0MiVz6hovew8hIKXkhQApvWCuHoY.P7QQaLpqyhg."], ["created_at", "2018-12-07 02:00:36.870628"], ["updated_at", "2018-12-07 02:00:36.870628"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$eMP3tUJzLM58n3I0OdG4XOOoYDPBf8iome5lwC0rJFyC6bGKtbFvu"], ["updated_at", "2018-12-07 02:00:36.900723"], ["id", 11151]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$w0SEromyi.gAKvlh853Yk.6Y5w6VkQKVWMr0aJPM13PzA75jsLn0q"], ["created_at", "2018-12-07 02:00:36.906853"], ["updated_at", "2018-12-07 02:00:36.906853"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (0.9ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:00:36 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PScaHpVwBV/kM2QHkZe4HedbmezAJG0Nl1XVYCmAJ7SSyXJClveKy"], ["created_at", "2018-12-07 02:00:43.255269"], ["updated_at", "2018-12-07 02:00:43.255269"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QrUQOSqbaZVz34KoMcH5B.OSTvZ67nd1re/NYMUdSg8iEBw3qiu5."], ["created_at", "2018-12-07 02:00:43.261189"], ["updated_at", "2018-12-07 02:00:43.261189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.275551"], ["updated_at", "2018-12-07 02:00:43.275551"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8367], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11154], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11154], ["room_id", 8367], ["created_at", "2018-12-07 02:00:43.308670"], ["updated_at", "2018-12-07 02:00:43.308670"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4347"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4347], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8367], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11154], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 130.3ms Sent mail to 123@123.com (5.4ms) Date: Fri, 07 Dec 2018 00:00:43 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d44b72b6c_49932aafa9eca5f8251@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d44b71d2f_49932aafa9eca5f815d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d44b71d2f_49932aafa9eca5f815d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d44b71d2f_49932aafa9eca5f815d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d44b71d2f_49932aafa9eca5f815d–

Completed 302 Found in 151ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KWLc0iKzSZzma82NmbjsgedfuKL8vUr5H3qNkccwHei4oBXJ9KsFa"], ["created_at", "2018-12-07 02:00:43.476956"], ["updated_at", "2018-12-07 02:00:43.476956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GKuVlLCaPO9byF28Z8ujg.IqykwxJO7IIp1d/5MMpGhpXiL/g7dP2"], ["created_at", "2018-12-07 02:00:43.479998"], ["updated_at", "2018-12-07 02:00:43.479998"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.481268"], ["updated_at", "2018-12-07 02:00:43.481268"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8368], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11156], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11156], ["room_id", 8368], ["created_at", "2018-12-07 02:00:43.484011"], ["updated_at", "2018-12-07 02:00:43.484011"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4348"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4348], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8368], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11156], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:00:43.488586"], ["id", 4348]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:00:43 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d44b783e6_49932aafa9eca5f84f@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d44b77e57_49932aafa9eca5f8398";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d44b77e57_49932aafa9eca5f8398 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d44b77e57_49932aafa9eca5f8398 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d44b77e57_49932aafa9eca5f8398–

Completed 302 Found in 8ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bZnwSsAgwBRiO17wXqUqXeyI4TyErLbBIf2N7z2mGShnz64/LNTTu"], ["created_at", "2018-12-07 02:00:43.497858"], ["updated_at", "2018-12-07 02:00:43.497858"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3naYYyRPx7VUkNztVjXo1ujHJoXUEl6gVfrZijEzLzIZRqy5Gt0qG"], ["created_at", "2018-12-07 02:00:43.501244"], ["updated_at", "2018-12-07 02:00:43.501244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.502925"], ["updated_at", "2018-12-07 02:00:43.502925"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8369], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11158], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11158], ["room_id", 8369], ["created_at", "2018-12-07 02:00:43.506548"], ["updated_at", "2018-12-07 02:00:43.506548"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hzXLeHTF3L1M0aPwi4kMhuutkUMAlo4WPVCq8HhNuxnmwgDY3Nszi"], ["created_at", "2018-12-07 02:00:43.513030"], ["updated_at", "2018-12-07 02:00:43.513030"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$chl7OxIyyaF1nx2JG7v3COLVoQIStXcB4V.4XJ7b15gS4o3iwvK5m"], ["created_at", "2018-12-07 02:00:43.516206"], ["updated_at", "2018-12-07 02:00:43.516206"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.517531"], ["updated_at", "2018-12-07 02:00:43.517531"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8370], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11160], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11160], ["room_id", 8370], ["created_at", "2018-12-07 02:00:43.520361"], ["updated_at", "2018-12-07 02:00:43.520361"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4350], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$13r/aHNfDnsVRXXwzcZjEuTxbiw9ueBfj2m838LgGaZwYgdaC.sFW"], ["created_at", "2018-12-07 02:00:43.525396"], ["updated_at", "2018-12-07 02:00:43.525396"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11161"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "cv6629YE5Dg1DbnZIzxdDw"], ["updated_at", "2018-12-07 02:00:43.528623"], ["id", 11161]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:00:43.530157"], ["reset_sent_at", "2018-12-07 02:00:43.529816"], ["id", 11161]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.6ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:00:43 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d44b8344d_49932aafa9eca5f873e@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d44b82e54_49932aafa9eca5f8651";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d44b82e54_49932aafa9eca5f8651 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/cv6629YE5Dg1DbnZIzxdDw/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d44b82e54_49932aafa9eca5f8651 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/cv6629YE5Dg1DbnZIzxdDw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d44b82e54_49932aafa9eca5f8651–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$fIElaFe4YIDLdBk3dRiF2eidUTxwpArttKgqRZTNt7eLq7eDDO9Gy"], ["created_at", "2018-12-07 02:00:43.543325"], ["updated_at", "2018-12-07 02:00:43.543325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$8VNFAyL5NR/DiDq.XTAX6Oh6tYffAAfzQs3aypSHCLyGrzbmGjaza"], ["created_at", "2018-12-07 02:00:43.550540"], ["updated_at", "2018-12-07 02:00:43.550540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11163"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$IQe9Kc5lVUBFwS1Nx2UiouXYjz/3M0YH/k3qHSa26rtARQr8cxjvi"], ["updated_at", "2018-12-07 02:00:43.554521"], ["id", 11163]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ME7mKTI0yXl6QY3XOJVLeON.OSeHhO27pqLFDwcgSE.q4UHFPr6Ey"], ["created_at", "2018-12-07 02:00:43.559250"], ["updated_at", "2018-12-07 02:00:43.559250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11164"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$JcR/i.L8j3oNSjYCzJbN5eCK8fiGQjcQ5wZuZ.cO7BlYB7/VDRRCu"], ["created_at", "2018-12-07 02:00:43.567118"], ["updated_at", "2018-12-07 02:00:43.567118"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11165"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vcJUEr1tcOWn1fpaHYC.luOlKWXhf1jz1zh8RKkc9q7G6JRS34dFG"], ["created_at", "2018-12-07 02:00:43.580697"], ["updated_at", "2018-12-07 02:00:43.580697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11166"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$re1/4jFOlyRsbDfotI7XSOtJfphU0gVqwuOhiD4Gu0Uco.mPit78K"], ["created_at", "2018-12-07 02:00:43.589012"], ["updated_at", "2018-12-07 02:00:43.589012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11167"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6VXEl2KXX6vJGxIrcutQIeUP9bTUpGSz2MjpFTVJXuPP6ChEQcwyu"], ["created_at", "2018-12-07 02:00:43.596524"], ["updated_at", "2018-12-07 02:00:43.596524"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.0ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YN/JkPAcBE6XpS6yjTab5e5vusVnSAOPG3LsmmuBRW3YOEYnIw2dW"], ["created_at", "2018-12-07 02:00:43.604039"], ["updated_at", "2018-12-07 02:00:43.604039"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zJykHptJ1d4PqpWs5k/mm.zCsbUVT1Xeh1X8Xd4Qca6T4GphPe6Gq"], ["created_at", "2018-12-07 02:00:43.611079"], ["updated_at", "2018-12-07 02:00:43.611079"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.612686"], ["updated_at", "2018-12-07 02:00:43.612686"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8371], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11170], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11170], ["room_id", 8371], ["created_at", "2018-12-07 02:00:43.615669"], ["updated_at", "2018-12-07 02:00:43.615669"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AhPNh2eFs9ytsTsYZnhjxuarsyu9Ywvx2nt.A6fZYvRmeu1P19L1m"], ["created_at", "2018-12-07 02:00:43.621931"], ["updated_at", "2018-12-07 02:00:43.621931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.623452"], ["updated_at", "2018-12-07 02:00:43.623452"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8372], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11171], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11171], ["room_id", 8372], ["created_at", "2018-12-07 02:00:43.626266"], ["updated_at", "2018-12-07 02:00:43.626266"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GEcFTtYfoeKDcJf1D2/eCuRkPm61NEZj6Lzjcy1OD9m6.oEiA6/ra"], ["created_at", "2018-12-07 02:00:43.648760"], ["updated_at", "2018-12-07 02:00:43.648760"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.650326"], ["updated_at", "2018-12-07 02:00:43.650326"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.657155"], ["last_sign_in_at", "2018-12-07 02:00:43.657155"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.657537"], ["id", 11172]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8373"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8373 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8373], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11172], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11172], ["room_id", 8373], ["created_at", "2018-12-07 02:00:43.665419"], ["updated_at", "2018-12-07 02:00:43.665419"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8373], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mbOgwOUgmuGUC3WN66pBvOAQDuPvojmUX62NKoGFr//kJH9iTryI6"], ["created_at", "2018-12-07 02:00:43.671228"], ["updated_at", "2018-12-07 02:00:43.671228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.672715"], ["updated_at", "2018-12-07 02:00:43.672715"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.674506"], ["last_sign_in_at", "2018-12-07 02:00:43.674506"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.674857"], ["id", 11173]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8374"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8374 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8374], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11173], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11173], ["room_id", 8374], ["created_at", "2018-12-07 02:00:43.679106"], ["updated_at", "2018-12-07 02:00:43.679106"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yqwIybAjYxX75qqQ30VT.eWKDunksOAGsmhuAMhQTKFPzt1G14gqy"], ["created_at", "2018-12-07 02:00:43.684137"], ["updated_at", "2018-12-07 02:00:43.684137"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.685605"], ["updated_at", "2018-12-07 02:00:43.685605"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.687655"], ["last_sign_in_at", "2018-12-07 02:00:43.687655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.687999"], ["id", 11174]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8375", "user_id"=>"11174"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8375 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8375], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11174], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11174], ["room_id", 8375], ["created_at", "2018-12-07 02:00:43.692668"], ["updated_at", "2018-12-07 02:00:43.692668"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8375", "user_id"=>"11174"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11174], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8375 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8375], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11174], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11174], ["room_id", 8375], ["created_at", "2018-12-07 02:00:43.699577"], ["updated_at", "2018-12-07 02:00:43.699577"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UwYqVF.2owC/14uuISfeIeHFhsO0YKntlplDvIKjptPqc2mwiLr9i"], ["created_at", "2018-12-07 02:00:43.704638"], ["updated_at", "2018-12-07 02:00:43.704638"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.706178"], ["updated_at", "2018-12-07 02:00:43.706178"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.708256"], ["last_sign_in_at", "2018-12-07 02:00:43.708256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.708617"], ["id", 11175]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8376", "user_id"=>"11175"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8376 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8376], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11175], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11175], ["room_id", 8376], ["created_at", "2018-12-07 02:00:43.712966"], ["updated_at", "2018-12-07 02:00:43.712966"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8376", "user_id"=>"11175"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11175], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8376 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8376], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11175], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11175], ["room_id", 8376], ["created_at", "2018-12-07 02:00:43.719183"], ["updated_at", "2018-12-07 02:00:43.719183"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8376], ["user_id", 11175], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CiQnYLSwcQNGW0BYUci39Ohv6uQnldQ9ChVuagPaLzLlEaOzIrh.K"], ["created_at", "2018-12-07 02:00:43.725743"], ["updated_at", "2018-12-07 02:00:43.725743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.727419"], ["updated_at", "2018-12-07 02:00:43.727419"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.729629"], ["last_sign_in_at", "2018-12-07 02:00:43.729629"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.729995"], ["id", 11176]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8377", "user_id"=>"11176"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8377 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8377], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11176], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11176], ["room_id", 8377], ["created_at", "2018-12-07 02:00:43.734580"], ["updated_at", "2018-12-07 02:00:43.734580"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8377", "user_id"=>"11176"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11176], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8377 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8377], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11176], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11176], ["room_id", 8377], ["created_at", "2018-12-07 02:00:43.740829"], ["updated_at", "2018-12-07 02:00:43.740829"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8377], ["user_id", 11176], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0oAcoZoUkwkmf/t9G3VTEumjkaWGAGjIp.UBdI0tm/DYRSc6IPgO2"], ["created_at", "2018-12-07 02:00:43.746350"], ["updated_at", "2018-12-07 02:00:43.746350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.747849"], ["updated_at", "2018-12-07 02:00:43.747849"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.749577"], ["last_sign_in_at", "2018-12-07 02:00:43.749577"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.749926"], ["id", 11177]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8378"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8378], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZalAmto6pxkHbk6eZMUm5.QNWsdM/CWS5EeoX5z1N8tGJG0KvZbxu"], ["created_at", "2018-12-07 02:00:43.757599"], ["updated_at", "2018-12-07 02:00:43.757599"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.759412"], ["updated_at", "2018-12-07 02:00:43.759412"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.761285"], ["last_sign_in_at", "2018-12-07 02:00:43.761285"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.761653"], ["id", 11178]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8379"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zUjlTAYOd91iYRvZcMcGR.nPJ17GOoeMd9oVlq4/MWA.KRgXc2MAS"], ["created_at", "2018-12-07 02:00:43.768577"], ["updated_at", "2018-12-07 02:00:43.768577"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.770105"], ["updated_at", "2018-12-07 02:00:43.770105"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8380], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11179], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11179], ["room_id", 8380], ["created_at", "2018-12-07 02:00:43.772955"], ["updated_at", "2018-12-07 02:00:43.772955"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8380” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.774485"], ["last_sign_in_at", "2018-12-07 02:00:43.774485"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.774862"], ["id", 11179]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8380"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8380], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8380')
Rendered appointments/show.html.erb within layouts/application (6.0ms)
Rendered layouts/_header-user.html.erb (3.1ms)

Completed 200 OK in 151ms (Views: 149.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$a4h/hKNlpTxEJWmetTMvBePm2M9lcFF7PjSUVE1acJ8EUVgppaV0S"], ["created_at", "2018-12-07 02:00:43.935751"], ["updated_at", "2018-12-07 02:00:43.935751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:43.938266"], ["updated_at", "2018-12-07 02:00:43.938266"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8381], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11180], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11180], ["room_id", 8381], ["created_at", "2018-12-07 02:00:43.946187"], ["updated_at", "2018-12-07 02:00:43.946187"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4362/edit” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.949027"], ["last_sign_in_at", "2018-12-07 02:00:43.949027"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.949482"], ["id", 11180]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4362"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4362], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jIydBjaYo01SUeEZYaZkQuEYCQZVYz2aV7ASa5hDXNCB7pIiJS85e"], ["created_at", "2018-12-07 02:00:43.971452"], ["updated_at", "2018-12-07 02:00:43.971452"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:00:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:43.974334"], ["last_sign_in_at", "2018-12-07 02:00:43.974334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:43.974781"], ["id", 11181]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.7ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OvTKlT.frUC4bt6doN8zIOliAzNRcDM1K7r4uPe.nvdVH0X.F4PY2"], ["created_at", "2018-12-07 02:00:44.001019"], ["updated_at", "2018-12-07 02:00:44.001019"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.004233"], ["updated_at", "2018-12-07 02:00:44.004233"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8382], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11182], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11182], ["room_id", 8382], ["created_at", "2018-12-07 02:00:44.009690"], ["updated_at", "2018-12-07 02:00:44.009690"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8382], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11182], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11182], ["room_id", 8382], ["created_at", "2018-12-07 02:00:44.014967"], ["updated_at", "2018-12-07 02:00:44.014967"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.017212"], ["last_sign_in_at", "2018-12-07 02:00:44.017212"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.017667"], ["id", 11182]]
 (0.6ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11182]]
Rendered appointments/my_appointments.html.erb within layouts/application (12.1ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 22ms (Views: 14.4ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$AmA./QMJcXRxa/bkOCCE.u.SJbWuHq3O7Lc13rKq.Z6hPgBWBb2Oe"], ["created_at", "2018-12-07 02:00:44.048406"], ["updated_at", "2018-12-07 02:00:44.048406"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.050406"], ["updated_at", "2018-12-07 02:00:44.050406"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8383], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11183], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11183], ["room_id", 8383], ["created_at", "2018-12-07 02:00:44.054506"], ["updated_at", "2018-12-07 02:00:44.054506"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8383], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11183], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11183], ["room_id", 8383], ["created_at", "2018-12-07 02:00:44.058324"], ["updated_at", "2018-12-07 02:00:44.058324"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.060080"], ["last_sign_in_at", "2018-12-07 02:00:44.060080"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.060510"], ["id", 11183]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11183]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5yqzy6qKosK0UEgSgBi7NeI3g6f.IYYQjeurN36QVxLBX.VNM33XS"], ["created_at", "2018-12-07 02:00:44.071004"], ["updated_at", "2018-12-07 02:00:44.071004"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.072836"], ["updated_at", "2018-12-07 02:00:44.072836"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8384], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11184], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11184], ["room_id", 8384], ["created_at", "2018-12-07 02:00:44.075971"], ["updated_at", "2018-12-07 02:00:44.075971"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4367” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.077557"], ["last_sign_in_at", "2018-12-07 02:00:44.077557"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.077959"], ["id", 11184]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4367"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4367], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4367]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LKqP1I4ge9olLT5Toezgn.VFxFk5Lw91vLFFIiAk4ZoGYy.rSiQZe"], ["created_at", "2018-12-07 02:00:44.087488"], ["updated_at", "2018-12-07 02:00:44.087488"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.089324"], ["updated_at", "2018-12-07 02:00:44.089324"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$A1zu.ndrR6Ou.zDYlI8G3u89W6/uY./5/5Tr8n1fspNu70zu0ke6q"], ["created_at", "2018-12-07 02:00:44.092587"], ["updated_at", "2018-12-07 02:00:44.092587"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8385], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11186], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11186], ["room_id", 8385], ["created_at", "2018-12-07 02:00:44.095705"], ["updated_at", "2018-12-07 02:00:44.095705"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4368” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.097591"], ["last_sign_in_at", "2018-12-07 02:00:44.097591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.097956"], ["id", 11185]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4368"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4368], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8385], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11186], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9pzU.2AmOF27HOPfiOSsXeLwJslDcEdUH3KPRuDM/KCHXpkEHnXzO"], ["created_at", "2018-12-07 02:00:44.107537"], ["updated_at", "2018-12-07 02:00:44.107537"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.109095"], ["updated_at", "2018-12-07 02:00:44.109095"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FzB2SbhEIthKvWMfAniWse/5J7N1HBrjcknlVw5ft.KhHjapzYV2y"], ["created_at", "2018-12-07 02:00:44.112183"], ["updated_at", "2018-12-07 02:00:44.112183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8386], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11188], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11188], ["room_id", 8386], ["created_at", "2018-12-07 02:00:44.115336"], ["updated_at", "2018-12-07 02:00:44.115336"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4369” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.117468"], ["last_sign_in_at", "2018-12-07 02:00:44.117468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.117968"], ["id", 11187]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4369"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4369], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8386], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11188], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vW3f6OMI46YRqBbES4z9QOOV.xzy5a4Y8iUoEe9DD4bnLxUpvFXeW"], ["created_at", "2018-12-07 02:00:44.127587"], ["updated_at", "2018-12-07 02:00:44.127587"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.129197"], ["updated_at", "2018-12-07 02:00:44.129197"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2aDTMfzkSE7zeJi4PFLxW.KPtJdLehg7ae5oXOOPWhzrY6xYtaVr."], ["created_at", "2018-12-07 02:00:44.132425"], ["updated_at", "2018-12-07 02:00:44.132425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8387], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11190], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11190], ["room_id", 8387], ["created_at", "2018-12-07 02:00:44.135526"], ["updated_at", "2018-12-07 02:00:44.135526"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4370” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.137427"], ["last_sign_in_at", "2018-12-07 02:00:44.137427"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.137793"], ["id", 11189]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4370"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4370], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8387], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11190], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:00:44.141926"], ["id", 4370]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.8ms) Date: Fri, 07 Dec 2018 00:00:44 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d44c239a6_49932aafa9eca5f8143@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d44c233ca_49932aafa9eca5f81310";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d44c233ca_49932aafa9eca5f81310 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d44c233ca_49932aafa9eca5f81310 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d44c233ca_49932aafa9eca5f81310–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.BuF4IppZmmV5g5UUQ.mAOf5hDgSI9STmferRO80Bo.VVi1OjJ4wq"], ["created_at", "2018-12-07 02:00:44.153227"], ["updated_at", "2018-12-07 02:00:44.153227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.154900"], ["updated_at", "2018-12-07 02:00:44.154900"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uBiMN8QhDRKOFQmui1ooAeeD50HmBT2bLybyIVMvZQwTibBLRlPc2"], ["created_at", "2018-12-07 02:00:44.158007"], ["updated_at", "2018-12-07 02:00:44.158007"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8388], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11192], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11192], ["room_id", 8388], ["created_at", "2018-12-07 02:00:44.161045"], ["updated_at", "2018-12-07 02:00:44.161045"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:00:44.162432"], ["id", 4371]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8388], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11192], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11192], ["room_id", 8388], ["created_at", "2018-12-07 02:00:44.165112"], ["updated_at", "2018-12-07 02:00:44.165112"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:00:44.166378"], ["id", 4372]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.167777"], ["last_sign_in_at", "2018-12-07 02:00:44.167777"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.168128"], ["id", 11191]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11192], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8388], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11192], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8388], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$y3xi3CZTU1lQoP3iTH/ae.JWFxDVLgbeXeOn25t4Zf9oPHfGHhIeG"], ["created_at", "2018-12-07 02:00:44.181394"], ["updated_at", "2018-12-07 02:00:44.181394"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.183429"], ["updated_at", "2018-12-07 02:00:44.183429"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OcOSaxWugVy1Sw.XAghrju5CDF2rDJuFSQmQ0CeOIUK4LMChooC76"], ["created_at", "2018-12-07 02:00:44.186760"], ["updated_at", "2018-12-07 02:00:44.186760"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8389], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11194], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11194], ["room_id", 8389], ["created_at", "2018-12-07 02:00:44.189777"], ["updated_at", "2018-12-07 02:00:44.189777"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:00:44.191159"], ["id", 4373]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8389], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11194], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11194], ["room_id", 8389], ["created_at", "2018-12-07 02:00:44.193816"], ["updated_at", "2018-12-07 02:00:44.193816"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:00:44.195082"], ["id", 4374]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.196468"], ["last_sign_in_at", "2018-12-07 02:00:44.196468"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.196842"], ["id", 11193]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11194], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8389], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11194], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8389], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fCpeiqxDg86TNQr1sgAA4.U0wIEWiPPehFdMMhiAMXihc5mzoT9cG"], ["created_at", "2018-12-07 02:00:44.208929"], ["updated_at", "2018-12-07 02:00:44.208929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.210767"], ["last_sign_in_at", "2018-12-07 02:00:44.210767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.211198"], ["id", 11195]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4RVhF9rAAG9qJZYoKVO26ullAkE.ozPhtckN0xH7vmmUJUFfD49x."], ["created_at", "2018-12-07 02:00:44.224787"], ["updated_at", "2018-12-07 02:00:44.224787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.226471"], ["last_sign_in_at", "2018-12-07 02:00:44.226471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.226819"], ["id", 11196]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0HkM/WDAwPgotYJxsF//E.M6Dk2nLMV.dExc97n7Ou6PvDT4dD8m."], ["created_at", "2018-12-07 02:00:44.232728"], ["updated_at", "2018-12-07 02:00:44.232728"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.234293"], ["last_sign_in_at", "2018-12-07 02:00:44.234293"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.234634"], ["id", 11197]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rkGi51XTJ1A8OZ8WsPJUzuUDcwsRTNbfJzG85FQd7nxUBsoW3np4O"], ["created_at", "2018-12-07 02:00:44.244419"], ["updated_at", "2018-12-07 02:00:44.244419"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.246413"], ["last_sign_in_at", "2018-12-07 02:00:44.246413"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.246809"], ["id", 11198]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Xlr4XNd6oruvO737HbiyX.RhpJU1C/VVxGfFlHxmZ2k7Cn3JeTvL6"], ["created_at", "2018-12-07 02:00:44.260808"], ["updated_at", "2018-12-07 02:00:44.260808"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.262406"], ["updated_at", "2018-12-07 02:00:44.262406"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8390” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.263805"], ["last_sign_in_at", "2018-12-07 02:00:44.263805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.264159"], ["id", 11199]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8390"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8390], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aQtqMgs8EU2otjyj9s844.u4.Yk3c8pgzcDgXQBlGKMn12v9NhFDq"], ["created_at", "2018-12-07 02:00:44.272947"], ["updated_at", "2018-12-07 02:00:44.272947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.274739"], ["updated_at", "2018-12-07 02:00:44.274739"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8391” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.276426"], ["last_sign_in_at", "2018-12-07 02:00:44.276426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.276929"], ["id", 11200]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8391"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8391], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.283648"], ["updated_at", "2018-12-07 02:00:44.283648"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8392” for 127.0.0.1 at 2018-12-07 00:00:44 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8392"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$evn8wdTcORu0wQuhT6dWDOTURe3yMaAISmfS2pwkGQfxmAuuqg63."], ["created_at", "2018-12-07 02:00:44.289767"], ["updated_at", "2018-12-07 02:00:44.289767"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.291333"], ["updated_at", "2018-12-07 02:00:44.291333"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8393” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.292716"], ["last_sign_in_at", "2018-12-07 02:00:44.292716"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.293071"], ["id", 11201]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8393"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.300903"], ["updated_at", "2018-12-07 02:00:44.300903"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8394” for 127.0.0.1 at 2018-12-07 00:00:44 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8394"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YgXVwzMh7ldA/UoeQER.v.MJ.5G3hWeUBvGaWQQMzXODmwGwm/DMe"], ["created_at", "2018-12-07 02:00:44.307646"], ["updated_at", "2018-12-07 02:00:44.307646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.309549"], ["updated_at", "2018-12-07 02:00:44.309549"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8395/edit” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.311078"], ["last_sign_in_at", "2018-12-07 02:00:44.311078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.311464"], ["id", 11202]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8395"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8395], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IVKb/Pi1jGrzUh3WVdkHvODBjQafxq8HT0rRqk6JJjeh2iyQI0uqy"], ["created_at", "2018-12-07 02:00:44.322065"], ["updated_at", "2018-12-07 02:00:44.322065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.323647"], ["updated_at", "2018-12-07 02:00:44.323647"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8396/edit” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.325050"], ["last_sign_in_at", "2018-12-07 02:00:44.325050"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.325425"], ["id", 11203]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8396"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8396], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.333101"], ["updated_at", "2018-12-07 02:00:44.333101"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8397” for 127.0.0.1 at 2018-12-07 00:00:44 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8397"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L4HUtt.UcWI9aeHAHRx9OerEsVMotou/6rJxK/B22.EjPAFRMwxyK"], ["created_at", "2018-12-07 02:00:44.340080"], ["updated_at", "2018-12-07 02:00:44.340080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.342405"], ["last_sign_in_at", "2018-12-07 02:00:44.342405"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.342773"], ["id", 11204]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.345258"], ["updated_at", "2018-12-07 02:00:44.345258"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XHM9fPGKZlOQSAbmmovPbOKbPLEcHWGSCs3QlLS5qza7TVhKUAvWC"], ["created_at", "2018-12-07 02:00:44.351140"], ["updated_at", "2018-12-07 02:00:44.351140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.353121"], ["last_sign_in_at", "2018-12-07 02:00:44.353121"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.353492"], ["id", 11205]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.355883"], ["updated_at", "2018-12-07 02:00:44.355883"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L8201i66ZARgHj1Tyg3GkOVIGcj.mZTDAJIoLUilQdOu2KtwrJmLa"], ["created_at", "2018-12-07 02:00:44.360972"], ["updated_at", "2018-12-07 02:00:44.360972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.363009"], ["last_sign_in_at", "2018-12-07 02:00:44.363009"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.363350"], ["id", 11206]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HYmTvGZuaqe5qdAXso9osOOz3hoUrO9rbfWcs1egFhyTxzQIoNcuO"], ["created_at", "2018-12-07 02:00:44.371515"], ["updated_at", "2018-12-07 02:00:44.371515"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.373894"], ["last_sign_in_at", "2018-12-07 02:00:44.373894"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.374265"], ["id", 11207]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sD3hu6XoDyOTAVKcm6kQVOdFr3gzlo/O2ROipCXGyUNGnhK9BICXy"], ["created_at", "2018-12-07 02:00:44.381779"], ["updated_at", "2018-12-07 02:00:44.381779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.383773"], ["last_sign_in_at", "2018-12-07 02:00:44.383773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.384117"], ["id", 11208]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Qd0vm83EeB1LWLvqJS05T.RpU8A0bJeSD1v4C.bZMdWsHU./wa2SS"], ["created_at", "2018-12-07 02:00:44.390181"], ["updated_at", "2018-12-07 02:00:44.390181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.391771"], ["updated_at", "2018-12-07 02:00:44.391771"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8400” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.393532"], ["last_sign_in_at", "2018-12-07 02:00:44.393532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.393919"], ["id", 11209]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8400"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8400], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:00:44.396891"], ["id", 8400]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8400 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4luJAr9EAl9KQ2CK8Cy1B.Z09rBVCrRO7YjAZf1PLyou6LP0Sahu6"], ["created_at", "2018-12-07 02:00:44.403060"], ["updated_at", "2018-12-07 02:00:44.403060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.404992"], ["updated_at", "2018-12-07 02:00:44.404992"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8401” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.406858"], ["last_sign_in_at", "2018-12-07 02:00:44.406858"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.407229"], ["id", 11210]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8401"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8401], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:00:44.410119"], ["id", 8401]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8401 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sg72GSwhEzw8ZW1zwWkRYOXradn78HYdVKRDeAm41.PYoX2AE68PO"], ["created_at", "2018-12-07 02:00:44.415506"], ["updated_at", "2018-12-07 02:00:44.415506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.417071"], ["updated_at", "2018-12-07 02:00:44.417071"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8402” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.418804"], ["last_sign_in_at", "2018-12-07 02:00:44.418804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.419185"], ["id", 11211]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8402"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8402], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XbyXfgtkGf0R/o4.hj9hROgTsZFOU.4CtB8MtzyCscLzp3Fcj97Ju"], ["created_at", "2018-12-07 02:00:44.430412"], ["updated_at", "2018-12-07 02:00:44.430412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.432336"], ["updated_at", "2018-12-07 02:00:44.432336"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8403” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.434491"], ["last_sign_in_at", "2018-12-07 02:00:44.434491"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.434981"], ["id", 11212]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8403"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8403], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rm35k1DwrH0n8r4vaI68xu2XuUyLhRT2UBU6wHEhc/m3WkXTYCgsK"], ["created_at", "2018-12-07 02:00:44.446375"], ["updated_at", "2018-12-07 02:00:44.446375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.448492"], ["last_sign_in_at", "2018-12-07 02:00:44.448492"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.448837"], ["id", 11213]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$B4nw2GN833nauawZpR4CcO/1VpAAKDBTRNNtex5E5jCuWda4ootcO"], ["created_at", "2018-12-07 02:00:44.454764"], ["updated_at", "2018-12-07 02:00:44.454764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.456285"], ["updated_at", "2018-12-07 02:00:44.456285"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8404” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.457666"], ["last_sign_in_at", "2018-12-07 02:00:44.457666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.458027"], ["id", 11214]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8404"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8404], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8404]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.3ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lzSumSV6.PMxJd6DTCAbV.xeocYZaxq7bOD.X9kqTMoZPd4DJcd9q"], ["created_at", "2018-12-07 02:00:44.466231"], ["updated_at", "2018-12-07 02:00:44.466231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.467937"], ["updated_at", "2018-12-07 02:00:44.467937"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8405” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.469373"], ["last_sign_in_at", "2018-12-07 02:00:44.469373"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.469748"], ["id", 11215]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8405"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8405], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8405]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/l9xb3.J95SmoK6c/vl7qu0NpI2yTtf/kSvwasuHdCSKoLKckdUR."], ["created_at", "2018-12-07 02:00:44.476991"], ["updated_at", "2018-12-07 02:00:44.476991"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.478619"], ["updated_at", "2018-12-07 02:00:44.478619"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8406” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.480022"], ["last_sign_in_at", "2018-12-07 02:00:44.480022"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.480408"], ["id", 11216]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8406"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j1QaA2Ca2NrULxOkKX1VbeH7/W.NxLkBYg4IrspWQgxpuXff4waHe"], ["created_at", "2018-12-07 02:00:44.486507"], ["updated_at", "2018-12-07 02:00:44.486507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.488030"], ["updated_at", "2018-12-07 02:00:44.488030"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8407” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.489415"], ["last_sign_in_at", "2018-12-07 02:00:44.489415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.489801"], ["id", 11217]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8407"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6lb8WMJYXxvuLGgisdjoN.z3.r8tlKJkidhd7RqR2u9Y839fqN77u"], ["created_at", "2018-12-07 02:00:44.495891"], ["updated_at", "2018-12-07 02:00:44.495891"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.497896"], ["last_sign_in_at", "2018-12-07 02:00:44.497896"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.498326"], ["id", 11218]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KmFYVE8ajL7rf.7oW4Cyl.wv.d8LTEBNIiFr.dnKLH6HaZZgiQb.S"], ["created_at", "2018-12-07 02:00:44.510325"], ["updated_at", "2018-12-07 02:00:44.510325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.511874"], ["updated_at", "2018-12-07 02:00:44.511874"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.513101"], ["updated_at", "2018-12-07 02:00:44.513101"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.514244"], ["updated_at", "2018-12-07 02:00:44.514244"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8408], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11219], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11219], ["room_id", 8408], ["created_at", "2018-12-07 02:00:44.517016"], ["updated_at", "2018-12-07 02:00:44.517016"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.518632"], ["last_sign_in_at", "2018-12-07 02:00:44.518632"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.518996"], ["id", 11219]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 10ms (Views: 3.4ms | ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$T.e49/ppUMIzdb8se/2uEeAT1AZO0GMCbCS.PFDqSPLIstTSjK3v."], ["created_at", "2018-12-07 02:00:44.536421"], ["updated_at", "2018-12-07 02:00:44.536421"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.537985"], ["updated_at", "2018-12-07 02:00:44.537985"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.539340"], ["updated_at", "2018-12-07 02:00:44.539340"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:00:44.540522"], ["updated_at", "2018-12-07 02:00:44.540522"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8411], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11220], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11220], ["room_id", 8411], ["created_at", "2018-12-07 02:00:44.543301"], ["updated_at", "2018-12-07 02:00:44.543301"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:00:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:00:44.544831"], ["last_sign_in_at", "2018-12-07 02:00:44.544831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:00:44.545190"], ["id", 11220]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xZeUYJh0m4SL0BldkOxrt.4sMAyunBzWzjip90N6qZ5uVonx0Wod6"], ["created_at", "2018-12-07 02:03:42.818101"], ["updated_at", "2018-12-07 02:03:42.818101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1wXgYAOGZlg7tLqHnmWvV.yuLqd1nwt7w3Cox7SZrcN5.ik9qmOjq"], ["created_at", "2018-12-07 02:03:42.823901"], ["updated_at", "2018-12-07 02:03:42.823901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:42.838678"], ["updated_at", "2018-12-07 02:03:42.838678"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8414], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11222], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11222], ["room_id", 8414], ["created_at", "2018-12-07 02:03:42.875209"], ["updated_at", "2018-12-07 02:03:42.875209"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4377"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4377], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8414], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11222], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 135.3ms Sent mail to 123@123.com (5.7ms) Date: Fri, 07 Dec 2018 00:03:43 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d4ff9cde_4a352b09328d25f050110@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d4ff8de1_4a352b09328d25f0500c3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d4ff8de1_4a352b09328d25f0500c3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d4ff8de1_4a352b09328d25f0500c3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d4ff8de1_4a352b09328d25f0500c3–

Completed 302 Found in 156ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.KIzDCk/ahVvhVsPIwUQGehkMOxaa4pD82gXFf5LJch0moqEkqihG"], ["created_at", "2018-12-07 02:03:43.047582"], ["updated_at", "2018-12-07 02:03:43.047582"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$weI1XlxobxtgddEpChWH1.PvZZQb2M1YL4euUOXZNZcMqTnxMsGBS"], ["created_at", "2018-12-07 02:03:43.050786"], ["updated_at", "2018-12-07 02:03:43.050786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.052219"], ["updated_at", "2018-12-07 02:03:43.052219"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8415], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11224], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11224], ["room_id", 8415], ["created_at", "2018-12-07 02:03:43.055306"], ["updated_at", "2018-12-07 02:03:43.055306"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4378"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4378], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8415], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11224], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:03:43.059818"], ["id", 4378]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:03:43 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d4fff8e9_4a352b09328d25f05032@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d4fff34f_4a352b09328d25f05028d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d4fff34f_4a352b09328d25f05028d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d4fff34f_4a352b09328d25f05028d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d4fff34f_4a352b09328d25f05028d–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TZXlouqqMDZzXt89zggmvOXhIzT/bmUlRuk9T0SbihDFMddXnpjhu"], ["created_at", "2018-12-07 02:03:43.069243"], ["updated_at", "2018-12-07 02:03:43.069243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lMv81KqjbwqZvTBXX2H3BOo4I9YDq1spi4atl5Bb7MsCMxg0yYtJy"], ["created_at", "2018-12-07 02:03:43.072762"], ["updated_at", "2018-12-07 02:03:43.072762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.074384"], ["updated_at", "2018-12-07 02:03:43.074384"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8416], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11226], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11226], ["room_id", 8416], ["created_at", "2018-12-07 02:03:43.077786"], ["updated_at", "2018-12-07 02:03:43.077786"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ictQ1p45BUGHPrUVQjDLNeU3i8pBrPhKWhSBanEM9Yx8JKGA8eHU."], ["created_at", "2018-12-07 02:03:43.084430"], ["updated_at", "2018-12-07 02:03:43.084430"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DzW0LkTObvI5sgjNBEu2iOsrghtD5H1CAIPdd2McTC2ZvtzMSYOgy"], ["created_at", "2018-12-07 02:03:43.087569"], ["updated_at", "2018-12-07 02:03:43.087569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.089025"], ["updated_at", "2018-12-07 02:03:43.089025"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8417], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11228], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11228], ["room_id", 8417], ["created_at", "2018-12-07 02:03:43.091976"], ["updated_at", "2018-12-07 02:03:43.091976"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4380], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$t.ioURUgX.oLtqNc4aoenO3hNIXfoovcOva.gg5m8z6kPwF6bjeD."], ["created_at", "2018-12-07 02:03:43.097090"], ["updated_at", "2018-12-07 02:03:43.097090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11229"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "n1mK9_T37VKhYzXWI7gg_g"], ["updated_at", "2018-12-07 02:03:43.100260"], ["id", 11229]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:03:43.101943"], ["reset_sent_at", "2018-12-07 02:03:43.101568"], ["id", 11229]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:03:43 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d4ff1aa73_4a352b09328d25f0506a1@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d4ff1a48f_4a352b09328d25f0505aa";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d4ff1a48f_4a352b09328d25f0505aa Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/n1mK9_T37VKhYzXWI7gg_g/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d4ff1a48f_4a352b09328d25f0505aa Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/n1mK9_T37VKhYzXWI7gg_g/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d4ff1a48f_4a352b09328d25f0505aa–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$W3K2oyGstTO0bUFMAudqeOWB6/Z/of8r6BFRUrRjxvbCu/kW536ky"], ["created_at", "2018-12-07 02:03:43.114651"], ["updated_at", "2018-12-07 02:03:43.114651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$msPnfjU3B6A7pR1rBJqB/eWXtrZhnwmh6tDm6UuomezRdJckrl/Y2"], ["created_at", "2018-12-07 02:03:43.121558"], ["updated_at", "2018-12-07 02:03:43.121558"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11231"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$tl38Hed1EOwdnLD1TMLpluhDjSS0UoCNsQRm8h7GW6hm0msRvfSOq"], ["updated_at", "2018-12-07 02:03:43.125344"], ["id", 11231]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$6Laq1z.B8dbiV/OS6aEz8uVjYoqFlVCOxo7w//lv4tckkOPJF4lX6"], ["created_at", "2018-12-07 02:03:43.129745"], ["updated_at", "2018-12-07 02:03:43.129745"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11232"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$c747cKfggKarDTqG47T.e.YyD6LNrsK1dZn6Ssf.c24XWfpbD.UVy"], ["created_at", "2018-12-07 02:03:43.137541"], ["updated_at", "2018-12-07 02:03:43.137541"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11233"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ZGYE2Uww22qjt3wKq/kdh.SBL6OGzdFLZF/knCX7Cv0l7DcrIhdsm"], ["created_at", "2018-12-07 02:03:43.150397"], ["updated_at", "2018-12-07 02:03:43.150397"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11234"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.0ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Rbi2MvDnjxroMxlBHxwDVeNRW7f4kNyZ5To5s3Gm599juw7WCXxz6"], ["created_at", "2018-12-07 02:03:43.158293"], ["updated_at", "2018-12-07 02:03:43.158293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11235"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$G51/L8PvJuNA1uWguwl.geNkjQazYo5aUbbKBy08P0.y4Lt0U72bu"], ["created_at", "2018-12-07 02:03:43.165459"], ["updated_at", "2018-12-07 02:03:43.165459"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BgZz67WFg843bAgvyJGInuZY084SqIKvjUkYXqCdvx30yWKZPLiui"], ["created_at", "2018-12-07 02:03:43.172275"], ["updated_at", "2018-12-07 02:03:43.172275"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nXLq24/bnr5e4gI2AjJk1ODMcQRb1omwrL8HkrAbn7r1oVPLEZRh."], ["created_at", "2018-12-07 02:03:43.179069"], ["updated_at", "2018-12-07 02:03:43.179069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.180522"], ["updated_at", "2018-12-07 02:03:43.180522"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8418], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11238], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11238], ["room_id", 8418], ["created_at", "2018-12-07 02:03:43.183308"], ["updated_at", "2018-12-07 02:03:43.183308"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RPsjO8vuPk8Rdk4TvW7e5eYHaWfaqDDwQX2vlz7KcC3ZLJf0n1GM."], ["created_at", "2018-12-07 02:03:43.189179"], ["updated_at", "2018-12-07 02:03:43.189179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.190572"], ["updated_at", "2018-12-07 02:03:43.190572"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8419], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11239], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11239], ["room_id", 8419], ["created_at", "2018-12-07 02:03:43.193186"], ["updated_at", "2018-12-07 02:03:43.193186"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DIKs38t/NoFRl5AJHr1EfeKJujEpkU30lTFuGFCeYDHhUVLeecQxW"], ["created_at", "2018-12-07 02:03:43.214733"], ["updated_at", "2018-12-07 02:03:43.214733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.216176"], ["updated_at", "2018-12-07 02:03:43.216176"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.222988"], ["last_sign_in_at", "2018-12-07 02:03:43.222988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.223347"], ["id", 11240]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8420"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8420 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8420], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11240], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11240], ["room_id", 8420], ["created_at", "2018-12-07 02:03:43.231818"], ["updated_at", "2018-12-07 02:03:43.231818"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8420], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KfSycJgGw25Mv/cSiPGSdO9bNk45rI17ygUhviYzzgBFe7pnsM4Q."], ["created_at", "2018-12-07 02:03:43.238374"], ["updated_at", "2018-12-07 02:03:43.238374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.240034"], ["updated_at", "2018-12-07 02:03:43.240034"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.241920"], ["last_sign_in_at", "2018-12-07 02:03:43.241920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.242330"], ["id", 11241]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8421"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8421 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8421], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11241], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11241], ["room_id", 8421], ["created_at", "2018-12-07 02:03:43.246829"], ["updated_at", "2018-12-07 02:03:43.246829"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7ZKB1BNjKQSm54WjVEnryeQUaE/xlOs84QPWOTlm.MstuiUmCg4PK"], ["created_at", "2018-12-07 02:03:43.252223"], ["updated_at", "2018-12-07 02:03:43.252223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.253689"], ["updated_at", "2018-12-07 02:03:43.253689"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.255819"], ["last_sign_in_at", "2018-12-07 02:03:43.255819"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.256235"], ["id", 11242]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8422", "user_id"=>"11242"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8422 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8422], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11242], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11242], ["room_id", 8422], ["created_at", "2018-12-07 02:03:43.261075"], ["updated_at", "2018-12-07 02:03:43.261075"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8422", "user_id"=>"11242"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11242], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8422 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8422], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11242], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11242], ["room_id", 8422], ["created_at", "2018-12-07 02:03:43.268569"], ["updated_at", "2018-12-07 02:03:43.268569"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6GhLDnuZCkQdW6ujLR4h1.WubJ1FVfI1BEDncoVjrm1xNfl39I6Wm"], ["created_at", "2018-12-07 02:03:43.273974"], ["updated_at", "2018-12-07 02:03:43.273974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.275493"], ["updated_at", "2018-12-07 02:03:43.275493"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.277667"], ["last_sign_in_at", "2018-12-07 02:03:43.277667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.278095"], ["id", 11243]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8423", "user_id"=>"11243"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8423 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8423], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11243], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11243], ["room_id", 8423], ["created_at", "2018-12-07 02:03:43.282794"], ["updated_at", "2018-12-07 02:03:43.282794"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8423", "user_id"=>"11243"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11243], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8423 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8423], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11243], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11243], ["room_id", 8423], ["created_at", "2018-12-07 02:03:43.289111"], ["updated_at", "2018-12-07 02:03:43.289111"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8423], ["user_id", 11243], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$q6YBbujelF8ZFoN5Nan3DuC84yPL2qIxOVuXbYOYqwVXJvIuhJNSG"], ["created_at", "2018-12-07 02:03:43.296005"], ["updated_at", "2018-12-07 02:03:43.296005"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.297972"], ["updated_at", "2018-12-07 02:03:43.297972"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.300328"], ["last_sign_in_at", "2018-12-07 02:03:43.300328"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.300771"], ["id", 11244]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8424", "user_id"=>"11244"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8424 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8424], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11244], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11244], ["room_id", 8424], ["created_at", "2018-12-07 02:03:43.305364"], ["updated_at", "2018-12-07 02:03:43.305364"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8424", "user_id"=>"11244"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11244], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8424 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8424], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11244], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11244], ["room_id", 8424], ["created_at", "2018-12-07 02:03:43.311742"], ["updated_at", "2018-12-07 02:03:43.311742"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8424], ["user_id", 11244], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WnzP5m0dD5g46BEI7ZfmB.ScC4tTnZcWFVXu65YbWjGz17yedK.wK"], ["created_at", "2018-12-07 02:03:43.317451"], ["updated_at", "2018-12-07 02:03:43.317451"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.319117"], ["updated_at", "2018-12-07 02:03:43.319117"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.320934"], ["last_sign_in_at", "2018-12-07 02:03:43.320934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.321356"], ["id", 11245]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8425"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8425], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kcdI34JshDAxAbdBz2wbTu253N7zHSGZFUBXno7gDrp3NtpAqbMOa"], ["created_at", "2018-12-07 02:03:43.329603"], ["updated_at", "2018-12-07 02:03:43.329603"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.331503"], ["updated_at", "2018-12-07 02:03:43.331503"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.333483"], ["last_sign_in_at", "2018-12-07 02:03:43.333483"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.333910"], ["id", 11246]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8426"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nL3CsnySutGI82alhKwYF.d9YtsfgJCV3EsfZTHIWxyZ0eNb3Wc/."], ["created_at", "2018-12-07 02:03:43.341067"], ["updated_at", "2018-12-07 02:03:43.341067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.342606"], ["updated_at", "2018-12-07 02:03:43.342606"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8427], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11247], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11247], ["room_id", 8427], ["created_at", "2018-12-07 02:03:43.345687"], ["updated_at", "2018-12-07 02:03:43.345687"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8427” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.347238"], ["last_sign_in_at", "2018-12-07 02:03:43.347238"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.347599"], ["id", 11247]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8427"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8427], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8427')
Rendered appointments/show.html.erb within layouts/application (6.6ms)
Rendered layouts/_header-user.html.erb (3.2ms)

Completed 200 OK in 154ms (Views: 152.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qmLhkOZu3xlMg2qC6/Hsl.tgoYea2wPO1qxYQmxGJo9z9bnqXPs/i"], ["created_at", "2018-12-07 02:03:43.510842"], ["updated_at", "2018-12-07 02:03:43.510842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.513934"], ["updated_at", "2018-12-07 02:03:43.513934"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8428], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11248], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11248], ["room_id", 8428], ["created_at", "2018-12-07 02:03:43.520007"], ["updated_at", "2018-12-07 02:03:43.520007"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4392/edit” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.524699"], ["last_sign_in_at", "2018-12-07 02:03:43.524699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.525187"], ["id", 11248]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4392"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4392], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.4ms)
Rendered layouts/_header-user.html.erb (1.4ms)

Completed 200 OK in 12ms (Views: 10.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bkzJT0xhY9b8aMV0nddAOeeqtfI0cQn1CbGXf.Rpo/prZzD1DhnTS"], ["created_at", "2018-12-07 02:03:43.547435"], ["updated_at", "2018-12-07 02:03:43.547435"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.549882"], ["last_sign_in_at", "2018-12-07 02:03:43.549882"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.550683"], ["id", 11249]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 11ms (Views: 10.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$unkQMVeTPR9RhM1g6XJva.p8SmGx2GM6jHqMd8KJE8A2I6Zs1/64q"], ["created_at", "2018-12-07 02:03:43.575842"], ["updated_at", "2018-12-07 02:03:43.575842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.578930"], ["updated_at", "2018-12-07 02:03:43.578930"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8429], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11250], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11250], ["room_id", 8429], ["created_at", "2018-12-07 02:03:43.584816"], ["updated_at", "2018-12-07 02:03:43.584816"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8429], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11250], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11250], ["room_id", 8429], ["created_at", "2018-12-07 02:03:43.590419"], ["updated_at", "2018-12-07 02:03:43.590419"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.592717"], ["last_sign_in_at", "2018-12-07 02:03:43.592717"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.593174"], ["id", 11250]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11250]]
Rendered appointments/my_appointments.html.erb within layouts/application (12.8ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 23ms (Views: 15.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FX55mOuykI1bdyEAF.b7FOgz6r/qSvrEaQbkRBem41ywlx2uhv6Zy"], ["created_at", "2018-12-07 02:03:43.625241"], ["updated_at", "2018-12-07 02:03:43.625241"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.627689"], ["updated_at", "2018-12-07 02:03:43.627689"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8430], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11251], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11251], ["room_id", 8430], ["created_at", "2018-12-07 02:03:43.632423"], ["updated_at", "2018-12-07 02:03:43.632423"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8430], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11251], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11251], ["room_id", 8430], ["created_at", "2018-12-07 02:03:43.636135"], ["updated_at", "2018-12-07 02:03:43.636135"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.637879"], ["last_sign_in_at", "2018-12-07 02:03:43.637879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.638311"], ["id", 11251]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11251]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7YpkUxWW/heJR4m0FUVq3OeuT9KEFZjtZ1TWUaA2ZzEgo0TxkBzJa"], ["created_at", "2018-12-07 02:03:43.648793"], ["updated_at", "2018-12-07 02:03:43.648793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.650721"], ["updated_at", "2018-12-07 02:03:43.650721"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8431], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11252], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11252], ["room_id", 8431], ["created_at", "2018-12-07 02:03:43.654104"], ["updated_at", "2018-12-07 02:03:43.654104"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4397” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.655788"], ["last_sign_in_at", "2018-12-07 02:03:43.655788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.656185"], ["id", 11252]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4397"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4397], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4397]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5rjPiEnr6aXZavgYe6iBgeY60mMM7pU79r0T6enP5pWzPApppMA7i"], ["created_at", "2018-12-07 02:03:43.667001"], ["updated_at", "2018-12-07 02:03:43.667001"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.668981"], ["updated_at", "2018-12-07 02:03:43.668981"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$59R37r3irNdyUDhzhuzekOxkTOrQGpEB47PYeqJwXaMBacGyDys0W"], ["created_at", "2018-12-07 02:03:43.672358"], ["updated_at", "2018-12-07 02:03:43.672358"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8432], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11254], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11254], ["room_id", 8432], ["created_at", "2018-12-07 02:03:43.675542"], ["updated_at", "2018-12-07 02:03:43.675542"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4398” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.677427"], ["last_sign_in_at", "2018-12-07 02:03:43.677427"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.677816"], ["id", 11253]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4398"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4398], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8432], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11254], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YgW8Gypq.7YH6P67MWkFmeDMZnD8vh7TigLJyuvbN16txzYfjteDO"], ["created_at", "2018-12-07 02:03:43.687539"], ["updated_at", "2018-12-07 02:03:43.687539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.689213"], ["updated_at", "2018-12-07 02:03:43.689213"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MKmrHhh6WZuFghj7u0s2X.ls0FhX7YCPgWOdZdtYtQY8umAoAIVxq"], ["created_at", "2018-12-07 02:03:43.692976"], ["updated_at", "2018-12-07 02:03:43.692976"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8433], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11256], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11256], ["room_id", 8433], ["created_at", "2018-12-07 02:03:43.696773"], ["updated_at", "2018-12-07 02:03:43.696773"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4399” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.698838"], ["last_sign_in_at", "2018-12-07 02:03:43.698838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.699220"], ["id", 11255]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4399"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4399], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8433], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11256], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rT9n.Jz7tKr4PutJrBOUo.L/x170mHW.J4FY.0TkaTnJNbl8sknK."], ["created_at", "2018-12-07 02:03:43.708072"], ["updated_at", "2018-12-07 02:03:43.708072"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.709656"], ["updated_at", "2018-12-07 02:03:43.709656"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iNozLu/jj79ieigOPKkLO.zvyE/QLcrXOlm7XqDQl3EDhgTQ5I.H2"], ["created_at", "2018-12-07 02:03:43.712956"], ["updated_at", "2018-12-07 02:03:43.712956"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8434], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11258], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11258], ["room_id", 8434], ["created_at", "2018-12-07 02:03:43.716034"], ["updated_at", "2018-12-07 02:03:43.716034"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4400” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.717941"], ["last_sign_in_at", "2018-12-07 02:03:43.717941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.718312"], ["id", 11257]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4400"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4400], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8434], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11258], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:03:43.722514"], ["id", 4400]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.1ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:03:43 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d4ffb1840_4a352b09328d25f0513ad@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d4ffb1231_4a352b09328d25f051250";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d4ffb1231_4a352b09328d25f051250 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d4ffb1231_4a352b09328d25f051250 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d4ffb1231_4a352b09328d25f051250–

Completed 302 Found in 9ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TA/De/fDTwp2lQqSv5a17eRwqkUsWnI/Ncabecf/mmZkEYpNZDTw."], ["created_at", "2018-12-07 02:03:43.733772"], ["updated_at", "2018-12-07 02:03:43.733772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.735468"], ["updated_at", "2018-12-07 02:03:43.735468"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SXaDOgg2O/VK/XF9YjmIuuKfY7O3/jD69i/WAnM/YgDGgpEVreSVK"], ["created_at", "2018-12-07 02:03:43.738743"], ["updated_at", "2018-12-07 02:03:43.738743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8435], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11260], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11260], ["room_id", 8435], ["created_at", "2018-12-07 02:03:43.741864"], ["updated_at", "2018-12-07 02:03:43.741864"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:03:43.743263"], ["id", 4401]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8435], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11260], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11260], ["room_id", 8435], ["created_at", "2018-12-07 02:03:43.745855"], ["updated_at", "2018-12-07 02:03:43.745855"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:03:43.747126"], ["id", 4402]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.748515"], ["last_sign_in_at", "2018-12-07 02:03:43.748515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.748886"], ["id", 11259]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11260], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8435], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11260], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8435], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.3ms)

Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FGf4OWwliErOJdgAHb6do..lq11H/ZiqMgVtSJCCg2odHUhOOuCMu"], ["created_at", "2018-12-07 02:03:43.762972"], ["updated_at", "2018-12-07 02:03:43.762972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.764823"], ["updated_at", "2018-12-07 02:03:43.764823"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7rHs5WVSkS3GDEXmNfwnVuycxLiVmWC0aA8PypMoz8wkudclCPghe"], ["created_at", "2018-12-07 02:03:43.767905"], ["updated_at", "2018-12-07 02:03:43.767905"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8436], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11262], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11262], ["room_id", 8436], ["created_at", "2018-12-07 02:03:43.771013"], ["updated_at", "2018-12-07 02:03:43.771013"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:03:43.772470"], ["id", 4403]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8436], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11262], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11262], ["room_id", 8436], ["created_at", "2018-12-07 02:03:43.775166"], ["updated_at", "2018-12-07 02:03:43.775166"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:03:43.776468"], ["id", 4404]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.777885"], ["last_sign_in_at", "2018-12-07 02:03:43.777885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.778267"], ["id", 11261]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11262], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8436], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11262], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8436], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$krqd.3Sbi8fYgAN0qLREoOz9IcTEEWf.Ey/Ocve3oY/WgfiipOJ3O"], ["created_at", "2018-12-07 02:03:43.791799"], ["updated_at", "2018-12-07 02:03:43.791799"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.793691"], ["last_sign_in_at", "2018-12-07 02:03:43.793691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.794098"], ["id", 11263]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UN/Un9cU9ywAu350F983Me933FvCvJVD8DfZ0z.v3ZEgWX/MC7CEG"], ["created_at", "2018-12-07 02:03:43.807286"], ["updated_at", "2018-12-07 02:03:43.807286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.808996"], ["last_sign_in_at", "2018-12-07 02:03:43.808996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.809339"], ["id", 11264]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$k0R73GknX9mlTzW4/wOZu.GIG9dMzZcQ2FIDjELMX.QhtcuToIqNK"], ["created_at", "2018-12-07 02:03:43.815332"], ["updated_at", "2018-12-07 02:03:43.815332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.816857"], ["last_sign_in_at", "2018-12-07 02:03:43.816857"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.817206"], ["id", 11265]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0vnRiIcOsXlEzOZCeMJRPeqxts2yQRBgmPFbHQIBOSoKtOGtipRYq"], ["created_at", "2018-12-07 02:03:43.827841"], ["updated_at", "2018-12-07 02:03:43.827841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.829510"], ["last_sign_in_at", "2018-12-07 02:03:43.829510"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.829859"], ["id", 11266]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$F0eEyB7Qug83c5WWI5OLcOlSnClw926ieP7OytUzLgYctXuZyiBfm"], ["created_at", "2018-12-07 02:03:43.843555"], ["updated_at", "2018-12-07 02:03:43.843555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.845145"], ["updated_at", "2018-12-07 02:03:43.845145"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8437” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.846616"], ["last_sign_in_at", "2018-12-07 02:03:43.846616"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.847035"], ["id", 11267]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8437"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8437], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jhoTbB.lo/UQcRxIjKmW.OQsv6UOnN927cUkACMoOQQqSnrlFcxuu"], ["created_at", "2018-12-07 02:03:43.856941"], ["updated_at", "2018-12-07 02:03:43.856941"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.858548"], ["updated_at", "2018-12-07 02:03:43.858548"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8438” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.860019"], ["last_sign_in_at", "2018-12-07 02:03:43.860019"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.860410"], ["id", 11268]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8438"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8438], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.867159"], ["updated_at", "2018-12-07 02:03:43.867159"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8439” for 127.0.0.1 at 2018-12-07 00:03:43 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8439"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sAGSFRd9Ek2IUIfmFX0n7ezfJsKeTzow5SNH9gJSLjuwNEjrev97S"], ["created_at", "2018-12-07 02:03:43.873437"], ["updated_at", "2018-12-07 02:03:43.873437"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.875001"], ["updated_at", "2018-12-07 02:03:43.875001"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8440” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.876343"], ["last_sign_in_at", "2018-12-07 02:03:43.876343"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.876653"], ["id", 11269]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8440"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.885276"], ["updated_at", "2018-12-07 02:03:43.885276"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8441” for 127.0.0.1 at 2018-12-07 00:03:43 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8441"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2Z/5jGCPLM5sH4sF5zgIQOd3dWRzHn9GG.JEuO.WMn/9g2UXPM/jK"], ["created_at", "2018-12-07 02:03:43.891777"], ["updated_at", "2018-12-07 02:03:43.891777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.893335"], ["updated_at", "2018-12-07 02:03:43.893335"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8442/edit” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.894749"], ["last_sign_in_at", "2018-12-07 02:03:43.894749"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.895163"], ["id", 11270]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8442"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8442], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ur./bAPATeyilXFOSAi8benL3oHXZyxTTagJMnc6dU.IW13y5RYdO"], ["created_at", "2018-12-07 02:03:43.905867"], ["updated_at", "2018-12-07 02:03:43.905867"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.907444"], ["updated_at", "2018-12-07 02:03:43.907444"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8443/edit” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.908877"], ["last_sign_in_at", "2018-12-07 02:03:43.908877"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.909233"], ["id", 11271]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8443"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8443], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.917746"], ["updated_at", "2018-12-07 02:03:43.917746"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8444” for 127.0.0.1 at 2018-12-07 00:03:43 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8444"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xslgAtniUdpXDvFo1YQMQOI3EjpJjfy37uCteC8E0sHS26bsIYYCu"], ["created_at", "2018-12-07 02:03:43.924223"], ["updated_at", "2018-12-07 02:03:43.924223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.926268"], ["last_sign_in_at", "2018-12-07 02:03:43.926268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.926622"], ["id", 11272]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.929116"], ["updated_at", "2018-12-07 02:03:43.929116"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SlHb4YXdSBxX2FXY4LOF2eO9Wvuy1YZ6w4H2JaejxD7LiP5A0cToS"], ["created_at", "2018-12-07 02:03:43.934932"], ["updated_at", "2018-12-07 02:03:43.934932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.936912"], ["last_sign_in_at", "2018-12-07 02:03:43.936912"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.937255"], ["id", 11273]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.939586"], ["updated_at", "2018-12-07 02:03:43.939586"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KpbCV7w3m1ROCwXpd5TQYeL44aA0NXo6W.j7XGCs2CZ27LCw3wbbu"], ["created_at", "2018-12-07 02:03:43.944857"], ["updated_at", "2018-12-07 02:03:43.944857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.947478"], ["last_sign_in_at", "2018-12-07 02:03:43.947478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.947981"], ["id", 11274]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Sx7t7bFn0YRIglqVh58JDuoITxPOmghU0CfIzfuHCoxN5we23Y/uC"], ["created_at", "2018-12-07 02:03:43.956212"], ["updated_at", "2018-12-07 02:03:43.956212"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.958251"], ["last_sign_in_at", "2018-12-07 02:03:43.958251"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.958607"], ["id", 11275]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jPmSo.6meyPsSomvXdFYseiHN4E3c61shWpjpLpJ8qz9K8r5x4GrG"], ["created_at", "2018-12-07 02:03:43.966025"], ["updated_at", "2018-12-07 02:03:43.966025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.968250"], ["last_sign_in_at", "2018-12-07 02:03:43.968250"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.968603"], ["id", 11276]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tQ7.LOa1KDQe1Rg0Qj8K5.NXCCP1F5ky.PHnpBCR4i5TESllVLxG2"], ["created_at", "2018-12-07 02:03:43.974804"], ["updated_at", "2018-12-07 02:03:43.974804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.976344"], ["updated_at", "2018-12-07 02:03:43.976344"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8447” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.978426"], ["last_sign_in_at", "2018-12-07 02:03:43.978426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.978965"], ["id", 11277]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8447"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8447], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:03:43.982453"], ["id", 8447]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8447 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8mRNT3s9eJI1eh1j1jamCeMQVB7G5mLInN4C97yEUkLN7Omk5lEQu"], ["created_at", "2018-12-07 02:03:43.988273"], ["updated_at", "2018-12-07 02:03:43.988273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:43.989859"], ["updated_at", "2018-12-07 02:03:43.989859"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8448” for 127.0.0.1 at 2018-12-07 00:03:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:43.991638"], ["last_sign_in_at", "2018-12-07 02:03:43.991638"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:43.992000"], ["id", 11278]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8448"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8448], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:03:43.994830"], ["id", 8448]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8448 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$buPETcZoIMGFw5zufnNXDegY5XBJqV3b5.f6ctQ0GNxq1c8g8Bmoe"], ["created_at", "2018-12-07 02:03:44.000183"], ["updated_at", "2018-12-07 02:03:44.000183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.001757"], ["updated_at", "2018-12-07 02:03:44.001757"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8449” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.003492"], ["last_sign_in_at", "2018-12-07 02:03:44.003492"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.003871"], ["id", 11279]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8449"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8449], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FR.8J2KeRQZHo6GG6R5.ReNPRDEdAVfc459reAT1bL8n/GTfJwP22"], ["created_at", "2018-12-07 02:03:44.016036"], ["updated_at", "2018-12-07 02:03:44.016036"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.017650"], ["updated_at", "2018-12-07 02:03:44.017650"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8450” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.019429"], ["last_sign_in_at", "2018-12-07 02:03:44.019429"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.019795"], ["id", 11280]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8450"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8450], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uIkLYnH92vL4sGes0hPopuaCUrd.biK.bf1DVaq2b2YKpwY0VehLy"], ["created_at", "2018-12-07 02:03:44.030783"], ["updated_at", "2018-12-07 02:03:44.030783"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.032881"], ["last_sign_in_at", "2018-12-07 02:03:44.032881"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.033229"], ["id", 11281]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CZYq6NIN0OvKooqJgmvKjuGsbccJZQP4DWfiUA/3yUTn1xaLX7qva"], ["created_at", "2018-12-07 02:03:44.039303"], ["updated_at", "2018-12-07 02:03:44.039303"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.041178"], ["updated_at", "2018-12-07 02:03:44.041178"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8451” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.042907"], ["last_sign_in_at", "2018-12-07 02:03:44.042907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.043390"], ["id", 11282]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8451"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8451], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8451]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kSFipWudtv.AMhADfVe66u88Aqq8C7OA4fDRp8i9WZfp2VykHl8Sq"], ["created_at", "2018-12-07 02:03:44.051427"], ["updated_at", "2018-12-07 02:03:44.051427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.052989"], ["updated_at", "2018-12-07 02:03:44.052989"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8452” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.054444"], ["last_sign_in_at", "2018-12-07 02:03:44.054444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.054876"], ["id", 11283]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8452"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8452], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8452]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7rQ8WsXILCsCF.GxZfyDlecPdRUfYxi2TnL7otrAPj9qqRSQC1Ssq"], ["created_at", "2018-12-07 02:03:44.062111"], ["updated_at", "2018-12-07 02:03:44.062111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.063715"], ["updated_at", "2018-12-07 02:03:44.063715"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8453” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.065125"], ["last_sign_in_at", "2018-12-07 02:03:44.065125"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.065533"], ["id", 11284]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8453"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M2tvpaVe11ZlQfAnznUuFuR5wTiYM1zPHwLC2eYTbwpdUtUnpZIr6"], ["created_at", "2018-12-07 02:03:44.071952"], ["updated_at", "2018-12-07 02:03:44.071952"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.073841"], ["updated_at", "2018-12-07 02:03:44.073841"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8454” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.075775"], ["last_sign_in_at", "2018-12-07 02:03:44.075775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.076235"], ["id", 11285]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8454"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VSFodnuyV5uSjAuOfKPKd.thF110FYs/Kn.9fJzvcMh1ODw1q8tku"], ["created_at", "2018-12-07 02:03:44.082663"], ["updated_at", "2018-12-07 02:03:44.082663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.084269"], ["last_sign_in_at", "2018-12-07 02:03:44.084269"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.084626"], ["id", 11286]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cUIJkb9sT1.2fskA8QyNweFfwLt/aSPrdRfCZo3MLw//Y05XHf7oS"], ["created_at", "2018-12-07 02:03:44.096344"], ["updated_at", "2018-12-07 02:03:44.096344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.097964"], ["updated_at", "2018-12-07 02:03:44.097964"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.099351"], ["updated_at", "2018-12-07 02:03:44.099351"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.100678"], ["updated_at", "2018-12-07 02:03:44.100678"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8455], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11287], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11287], ["room_id", 8455], ["created_at", "2018-12-07 02:03:44.103632"], ["updated_at", "2018-12-07 02:03:44.103632"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.105545"], ["last_sign_in_at", "2018-12-07 02:03:44.105545"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.106133"], ["id", 11287]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lk8FN.UYb8VKkz3xzKdwcuHLp1UwXa5oPBGbPFzSljNTydGhFAF3i"], ["created_at", "2018-12-07 02:03:44.123286"], ["updated_at", "2018-12-07 02:03:44.123286"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.124868"], ["updated_at", "2018-12-07 02:03:44.124868"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.126190"], ["updated_at", "2018-12-07 02:03:44.126190"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:03:44.127419"], ["updated_at", "2018-12-07 02:03:44.127419"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8458], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11288], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11288], ["room_id", 8458], ["created_at", "2018-12-07 02:03:44.130161"], ["updated_at", "2018-12-07 02:03:44.130161"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:03:44 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:44.131722"], ["last_sign_in_at", "2018-12-07 02:03:44.131722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:44.132085"], ["id", 11288]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$1CPX9AysNlg0naDdgwCXE.ZQs9OBVMsDRrIbDj4Q4AxZWV9GAiVgO"], ["created_at", "2018-12-07 02:03:50.861108"], ["updated_at", "2018-12-07 02:03:50.861108"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (36.9ms)
Rendered users/sessions/new.html.erb within layouts/application (169.1ms)

Completed 200 OK in 192ms (Views: 183.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.100219"], ["last_sign_in_at", "2018-12-07 02:03:51.100219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.100885"], ["id", 11289]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 16ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11289], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (2.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11289], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11289], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 6.1ms | ActiveRecord: 2.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11289], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11289], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$XgkU8ptiAVZXhOajboQu3OfIhOY24i/tB.Fj33hT./vgBnk/jBwT2"], ["created_at", "2018-12-07 02:03:51.163712"], ["updated_at", "2018-12-07 02:03:51.163712"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.175949"], ["last_sign_in_at", "2018-12-07 02:03:51.175949"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.176503"], ["id", 11290]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11290], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11290], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11290], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11290], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11290], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$2RGLYp6n0t75XKtkk5LHTu621Xur5Dpz.t4/1M0IBrsFXWBfJedlG"], ["created_at", "2018-12-07 02:03:51.221803"], ["updated_at", "2018-12-07 02:03:51.221803"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.234940"], ["last_sign_in_at", "2018-12-07 02:03:51.234940"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.235403"], ["id", 11291]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11291], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$iMB6fIOPFDiXCWS7dc3axuoR5Y5guhj2eRVa3KFK3LKmCIU4kQtKG"], ["created_at", "2018-12-07 02:03:51.250939"], ["updated_at", "2018-12-07 02:03:51.250939"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UTWHgTcuK58oNQlb1S0bhux37apakWYt3imEWSylMzf8NC6y3BsYG"], ["created_at", "2018-12-07 02:03:51.274448"], ["updated_at", "2018-12-07 02:03:51.274448"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.286592"], ["last_sign_in_at", "2018-12-07 02:03:51.286592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.287062"], ["id", 11293]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11293], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:51.296368"], ["updated_at", "2018-12-07 02:03:51.296368"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11293], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started GET “/appointments/8461” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8461"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8461], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8461')
Rendered appointments/show.html.erb within layouts/application (5.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11293], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 14ms (Views: 6.9ms | ActiveRecord: 1.8ms) Started POST “/appointments.8461” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11293], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8461 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8461], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11293], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11293], ["room_id", 8461], ["created_at", "2018-12-07 02:03:51.349608"], ["updated_at", "2018-12-07 02:03:51.349608"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11293], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ZTPk371FNqOIruOX3wD7hO.axR3TrxKFy2AZOkwWUpNFZzCQPCXOW"], ["created_at", "2018-12-07 02:03:51.361773"], ["updated_at", "2018-12-07 02:03:51.361773"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.374388"], ["last_sign_in_at", "2018-12-07 02:03:51.374388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.374879"], ["id", 11294]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11294], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:51.383500"], ["updated_at", "2018-12-07 02:03:51.383500"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8462], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11294], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11294], ["room_id", 8462], ["created_at", "2018-12-07 02:03:51.388596"], ["updated_at", "2018-12-07 02:03:51.388596"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11294], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/8462” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8462"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8462], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8462')
Rendered appointments/show.html.erb within layouts/application (3.0ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11294], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.8462” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11294], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8462 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8462], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11294], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11294], ["room_id", 8462], ["created_at", "2018-12-07 02:03:51.417062"], ["updated_at", "2018-12-07 02:03:51.417062"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11294], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$SF1jFcd2vMZf/OFrc0ZN2.Ktv6k44iBFCzpZEWCiNCs4uRG9oaiNu"], ["created_at", "2018-12-07 02:03:51.428983"], ["updated_at", "2018-12-07 02:03:51.428983"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.441206"], ["last_sign_in_at", "2018-12-07 02:03:51.441206"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.441651"], ["id", 11295]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11295], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:51.449599"], ["updated_at", "2018-12-07 02:03:51.449599"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8463], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11295], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11295], ["room_id", 8463], ["created_at", "2018-12-07 02:03:51.453742"], ["updated_at", "2018-12-07 02:03:51.453742"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11295], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11295]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/4410” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4410"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4410], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4410]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11295], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11295]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$1Wbxnw/G4yQ13sc1jxICIuXdybZfcuxolKgMySOKoJ9Fgg/plfrjC"], ["created_at", "2018-12-07 02:03:51.483083"], ["updated_at", "2018-12-07 02:03:51.483083"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.495921"], ["last_sign_in_at", "2018-12-07 02:03:51.495921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.496332"], ["id", 11296]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11296], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:03:51.503271"], ["updated_at", "2018-12-07 02:03:51.503271"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8464], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11296], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11296], ["room_id", 8464], ["created_at", "2018-12-07 02:03:51.507290"], ["updated_at", "2018-12-07 02:03:51.507290"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11296], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11296]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/4411” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4411"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4411], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4411]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11296], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11296]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$aTJmbEwwiZKDH.DK7ihNi.mvI9e.6oQSPsBOez7LfE7CZmUbF4UxG"], ["created_at", "2018-12-07 02:03:51.537560"], ["updated_at", "2018-12-07 02:03:51.537560"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.549558"], ["last_sign_in_at", "2018-12-07 02:03:51.549558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.550137"], ["id", 11297]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11297], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 02:03:51.558469"], ["updated_at", "2018-12-07 02:03:51.558469"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:03:51.559929"], ["updated_at", "2018-12-07 02:03:51.559929"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11297], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11297], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.5ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11297], ["LIMIT", 1]]
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$WiZ0CKWwt/6fM1wMlJBTduV7Ytt8fpPgjOAcVkNzCGHem3Berw5ei"], ["created_at", "2018-12-07 02:03:51.585114"], ["updated_at", "2018-12-07 02:03:51.585114"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.597312"], ["last_sign_in_at", "2018-12-07 02:03:51.597312"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.597764"], ["id", 11298]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11298], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11298], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11298], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 1.9ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$aWO6j0DXW1bWnfOrdXE8GO42fNmVt.mqCthFleiVy/dOzuYTP86fa"], ["created_at", "2018-12-07 02:03:51.622690"], ["updated_at", "2018-12-07 02:03:51.622690"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.634102"], ["last_sign_in_at", "2018-12-07 02:03:51.634102"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.634543"], ["id", 11299]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11299], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11299], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9BcxzI.noHlj96Hvgx34U.jiY7Jp5y78rWU9deY6LertNetjJ23mO"], ["created_at", "2018-12-07 02:03:51.673014"], ["updated_at", "2018-12-07 02:03:51.673014"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.685521"], ["last_sign_in_at", "2018-12-07 02:03:51.685521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.685990"], ["id", 11300]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11300], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:51.695172"], ["updated_at", "2018-12-07 02:03:51.695172"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8467], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11300], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11300], ["room_id", 8467], ["created_at", "2018-12-07 02:03:51.699003"], ["updated_at", "2018-12-07 02:03:51.699003"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11300], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/8467” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8467"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8467], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8467')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11300], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.6ms | ActiveRecord: 0.8ms) Started POST “/appointments.8467” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11300], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8467 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8467], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11300], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11300], ["room_id", 8467], ["created_at", "2018-12-07 02:03:51.728951"], ["updated_at", "2018-12-07 02:03:51.728951"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11300], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9JqUVHCVicM0n159bEtble8yd9ZJEuW2uO4uq93fe/zA7F6l2Xg7G"], ["created_at", "2018-12-07 02:03:51.741329"], ["updated_at", "2018-12-07 02:03:51.741329"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.754283"], ["last_sign_in_at", "2018-12-07 02:03:51.754283"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.754786"], ["id", 11301]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11301], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:51.762750"], ["updated_at", "2018-12-07 02:03:51.762750"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8468], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11301], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11301], ["room_id", 8468], ["created_at", "2018-12-07 02:03:51.766912"], ["updated_at", "2018-12-07 02:03:51.766912"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11301], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11301]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$LhduKYmueijNtUpGenXXIueDJC0wuOs8yLOLXnp5SZVuIyN6wc8gq"], ["created_at", "2018-12-07 02:03:51.783059"], ["updated_at", "2018-12-07 02:03:51.783059"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.794924"], ["last_sign_in_at", "2018-12-07 02:03:51.794924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.795328"], ["id", 11302]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11302], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:03:51.802781"], ["updated_at", "2018-12-07 02:03:51.802781"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8469], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11302], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11302], ["room_id", 8469], ["created_at", "2018-12-07 02:03:51.807061"], ["updated_at", "2018-12-07 02:03:51.807061"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11302], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11302]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$ALuv1QR1GXc3qSk36OTLou0te8Mw9UqbVHvKpoccocdLCjbs72vzS"], ["created_at", "2018-12-07 02:03:51.823769"], ["updated_at", "2018-12-07 02:03:51.823769"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.835611"], ["last_sign_in_at", "2018-12-07 02:03:51.835611"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.836015"], ["id", 11303]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11303], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$WwdiNA5En5j1lE1Xymdp9.zFZXZoFmCpXzcrZaKRMu49ucEOfmQoe"], ["created_at", "2018-12-07 02:03:51.851624"], ["updated_at", "2018-12-07 02:03:51.851624"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.863873"], ["last_sign_in_at", "2018-12-07 02:03:51.863873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.864310"], ["id", 11304]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11304], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:03:51.871747"], ["updated_at", "2018-12-07 02:03:51.871747"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:51.873458"], ["updated_at", "2018-12-07 02:03:51.873458"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11304], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/appointments/8470” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8470"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8470], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8470')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11304], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.6ms) Started POST “/appointments.8470” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11304], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8470 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8470], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11304], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11304], ["room_id", 8470], ["created_at", "2018-12-07 02:03:51.903447"], ["updated_at", "2018-12-07 02:03:51.903447"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11304], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$OA25yxqHPooIJdwr/KYaZuWJGO87h833v2KT/MAe9ytv.wJmV93Yq"], ["created_at", "2018-12-07 02:03:51.917806"], ["updated_at", "2018-12-07 02:03:51.917806"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.930640"], ["last_sign_in_at", "2018-12-07 02:03:51.930640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.931128"], ["id", 11305]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11305], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:03:51.945974"], ["updated_at", "2018-12-07 02:03:51.945974"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:51.947587"], ["updated_at", "2018-12-07 02:03:51.947587"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11305], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/appointments/8472” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8472"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8472], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8472')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11305], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.6ms) Started POST “/appointments.8472” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11305], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8472 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11305], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$XdulyrjgCMEbbfaj/kQWSei0vCG21b3ID/9xHZLilw6UNzZanUcj."], ["created_at", "2018-12-07 02:03:51.985741"], ["updated_at", "2018-12-07 02:03:51.985741"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:51.997312"], ["last_sign_in_at", "2018-12-07 02:03:51.997312"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:51.997780"], ["id", 11306]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11306], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:03:52.006218"], ["updated_at", "2018-12-07 02:03:52.006218"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11306], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11306], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started DELETE “/rooms/8474” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8474"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11306], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8474], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8474]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11306], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$xtIB6IL4NktRl1XYkcgVveaONpnD6ujiegnRN4Cq.oDufImIugwgi"], ["created_at", "2018-12-07 02:03:52.035399"], ["updated_at", "2018-12-07 02:03:52.035399"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:03:52.036931"], ["updated_at", "2018-12-07 02:03:52.036931"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.053136"], ["last_sign_in_at", "2018-12-07 02:03:52.053136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.053651"], ["id", 11307]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11307], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11307], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.5ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.9ms) Started GET “/rooms/8475/edit” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8475"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11307], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8475], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.5ms) Started PATCH “/rooms/8475” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"8475"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11307], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8475], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$I/NGJpnFi77dhIJ8yJwXRu7QwTcKd9.A8sbtKBQ6JLJk4FwC8fNni"], ["created_at", "2018-12-07 02:03:52.099973"], ["updated_at", "2018-12-07 02:03:52.099973"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$rRIso6A8u6oLb5HrBaBHLuE4nGSr3TBYta3YUSIoTUzx1pq2Jr00K"], ["created_at", "2018-12-07 02:03:52.109382"], ["updated_at", "2018-12-07 02:03:52.109382"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.120885"], ["last_sign_in_at", "2018-12-07 02:03:52.120885"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.121336"], ["id", 11309]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11309], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11309], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 02:03:52.135189"], ["updated_at", "2018-12-07 02:03:52.135189"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 02:03:52.136631"], ["updated_at", "2018-12-07 02:03:52.136631"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 02:03:52.137833"], ["updated_at", "2018-12-07 02:03:52.137833"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$2.bYSQUSe7q5lJ7JCIIG5.zyfk0Jrx9CK54Q0uWdM38mx9UM9Zch."], ["created_at", "2018-12-07 02:03:52.153284"], ["updated_at", "2018-12-07 02:03:52.153284"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.166096"], ["last_sign_in_at", "2018-12-07 02:03:52.166096"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.166571"], ["id", 11310]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11310], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:03:52.173911"], ["updated_at", "2018-12-07 02:03:52.173911"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:52.175158"], ["updated_at", "2018-12-07 02:03:52.175158"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11310], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$N.ljRaKhPwmii54RNBxILuQ.EE9v04kBq.Zm3.RpJC8Mi1Spw62pG"], ["created_at", "2018-12-07 02:03:52.191160"], ["updated_at", "2018-12-07 02:03:52.191160"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.203775"], ["last_sign_in_at", "2018-12-07 02:03:52.203775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.204184"], ["id", 11311]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11311], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:03:52.211924"], ["updated_at", "2018-12-07 02:03:52.211924"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:52.213145"], ["updated_at", "2018-12-07 02:03:52.213145"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11311], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$LdeYi1fAqdKsuQpriYJYQO0GDxwQ4pJL6Vu.F.x5QvUQBNgtwFh9W"], ["created_at", "2018-12-07 02:03:52.231246"], ["updated_at", "2018-12-07 02:03:52.231246"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.243162"], ["last_sign_in_at", "2018-12-07 02:03:52.243162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.243624"], ["id", 11312]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11312], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:03:52.250985"], ["updated_at", "2018-12-07 02:03:52.250985"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:52.252318"], ["updated_at", "2018-12-07 02:03:52.252318"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11312], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11312], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11312], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11312], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11312], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-08", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11312], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-08' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 12ms (Views: 3.9ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$wWAhuyfyke.A3olCjQahj.VYiSAGQ6dtrIohV/B2gBFZK8emjG0EC"], ["created_at", "2018-12-07 02:03:52.300866"], ["updated_at", "2018-12-07 02:03:52.300866"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.3ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.313846"], ["last_sign_in_at", "2018-12-07 02:03:52.313846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.314302"], ["id", 11313]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11313], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:03:52.323114"], ["updated_at", "2018-12-07 02:03:52.323114"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:03:52.324583"], ["updated_at", "2018-12-07 02:03:52.324583"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11313], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11313], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11313], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11313], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11313], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.2ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11313], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11313], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$N7JYl5dY3P1xE7rut.ckGuCBMaLGMwZnskSSCKb58UveolfDtUQ0G"], ["created_at", "2018-12-07 02:03:52.366741"], ["updated_at", "2018-12-07 02:03:52.366741"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.385830"], ["last_sign_in_at", "2018-12-07 02:03:52.385830"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.386271"], ["id", 11314]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11314], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.6ms)
Rendered users/registrations/new.html.erb within layouts/application (3.1ms)

Completed 200 OK in 6ms (Views: 5.7ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$kqRn/PYR0ZfmTn0FoQDguubtre0z7nJ4Vc38jKDQFfhTGnyRXmPgC"], ["created_at", "2018-12-07 02:03:52.425586"], ["updated_at", "2018-12-07 02:03:52.425586"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:03:52.426725"], ["last_sign_in_at", "2018-12-07 02:03:52.426725"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:03:52.426988"], ["id", 11315]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11315], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$MNJYTTZQdeNej4soCFfIiOfXbd70DcsA3qbe2hpOUNwfC/4/Sa7my"], ["created_at", "2018-12-07 02:03:52.438480"], ["updated_at", "2018-12-07 02:03:52.438480"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.456500"], ["last_sign_in_at", "2018-12-07 02:03:52.456500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.456984"], ["id", 11316]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11316], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started GET “/users/11316/edit” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"11316"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11316], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started PUT “/users/11316” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"11316"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11316], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11316], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 11316], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 02:03:52.489177"], ["id", 11316]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.2ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11316], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$PBHgDkeL5x4qeYIfICaWe.Bbx1TqLTP71.z23mfG453iWrtzWpPZK"], ["created_at", "2018-12-07 02:03:52.503185"], ["updated_at", "2018-12-07 02:03:52.503185"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.515549"], ["last_sign_in_at", "2018-12-07 02:03:52.515549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.515958"], ["id", 11317]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11317], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:03:52.523361"], ["updated_at", "2018-12-07 02:03:52.523361"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11317], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11317], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11317], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11317], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11317], ["room_id", 1], ["created_at", "2018-12-07 02:03:52.550077"], ["updated_at", "2018-12-07 02:03:52.550077"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11317], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$8vYSnRk4ZxVQOtW/q7P5UeCJI3Y3j8OH.1CkcbhEXHKu6uuio6uze"], ["created_at", "2018-12-07 02:03:52.561366"], ["updated_at", "2018-12-07 02:03:52.561366"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:03:52.574231"], ["last_sign_in_at", "2018-12-07 02:03:52.574231"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:03:52.574690"], ["id", 11318]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11318], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:03:52.582272"], ["updated_at", "2018-12-07 02:03:52.582272"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11318], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11318], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11318], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11318], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11318], ["room_id", 1], ["created_at", "2018-12-07 02:03:52.608771"], ["updated_at", "2018-12-07 02:03:52.608771"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11318], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$igl.a.iCNRtDJ563yMkkU.aFqsM0qKmrQIdsoBlVOhsVSKNfp5MZ."], ["created_at", "2018-12-07 02:03:52.620264"], ["updated_at", "2018-12-07 02:03:52.620264"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.9ms)
Rendered password_resets/new.html.erb within layouts/application (2.6ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$rK55nmWDsEZ97ko0IkKXFe128RvLLIUdVvGYe85ETL1o0H9wOmQwW"], ["updated_at", "2018-12-07 02:03:52.650495"], ["id", 11319]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$Aq0D5uHDTghQjm08jVsDVeNyiwVL3hl8laaBBk3WGOgJQjI9eVN9i"], ["created_at", "2018-12-07 02:03:52.656685"], ["updated_at", "2018-12-07 02:03:52.656685"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.4ms)
Rendered password_resets/new.html.erb within layouts/application (1.2ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:03:52 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$6vX6ElODROtVeWAaHxLD5.17uu6.vKeXR5xeyk.QVIVfVzx6/HqYm"], ["created_at", "2018-12-07 02:08:54.548528"], ["updated_at", "2018-12-07 02:08:54.548528"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (35.7ms)
Rendered users/sessions/new.html.erb within layouts/application (191.5ms)

Completed 200 OK in 211ms (Views: 201.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:54.790189"], ["last_sign_in_at", "2018-12-07 02:08:54.790189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:54.790701"], ["id", 11321]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11321], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11321], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11321], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 16ms (Views: 6.1ms | ActiveRecord: 2.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11321], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11321], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$cn.75CsmIYpwMrKNygFMKuZ1xfEDOlHu6VQa3vrJ6jMJyiTl9Gp86"], ["created_at", "2018-12-07 02:08:54.850959"], ["updated_at", "2018-12-07 02:08:54.850959"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:54.863230"], ["last_sign_in_at", "2018-12-07 02:08:54.863230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:54.863670"], ["id", 11322]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11322], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11322], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11322], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11322], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11322], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$S.jFrR1Nh3LirTeK/5FXRevGQKOLkLc8sq7z7Vy/3YQ5KvxH76hwG"], ["created_at", "2018-12-07 02:08:54.908760"], ["updated_at", "2018-12-07 02:08:54.908760"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:54.922072"], ["last_sign_in_at", "2018-12-07 02:08:54.922072"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:54.922516"], ["id", 11323]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11323], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$okXVtLKzAmg3O3Jgvxw9Mett1fJvgQP95LCCtN.g6g0lGxUR3bSZ2"], ["created_at", "2018-12-07 02:08:54.937767"], ["updated_at", "2018-12-07 02:08:54.937767"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.3ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$CR/3Znkpwk5S50oSIfEOG.gc.XI3SgtyK.zc5E5P5he4PvIl0Qc62"], ["created_at", "2018-12-07 02:08:54.961240"], ["updated_at", "2018-12-07 02:08:54.961240"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:54.973235"], ["last_sign_in_at", "2018-12-07 02:08:54.973235"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:54.973691"], ["id", 11325]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11325], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:54.982579"], ["updated_at", "2018-12-07 02:08:54.982579"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11325], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started GET “/appointments/8487” for 127.0.0.1 at 2018-12-07 00:08:54 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8487"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8487], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8487')
Rendered appointments/show.html.erb within layouts/application (5.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11325], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 14ms (Views: 6.7ms | ActiveRecord: 1.8ms) Started POST “/appointments.8487” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11325], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8487 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8487], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11325], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11325], ["room_id", 8487], ["created_at", "2018-12-07 02:08:55.035398"], ["updated_at", "2018-12-07 02:08:55.035398"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11325], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7SeBFpVhNxWHaCgjB2ohz.DdvNxrAZCKRrSqbT43DKCac34jAycDy"], ["created_at", "2018-12-07 02:08:55.047295"], ["updated_at", "2018-12-07 02:08:55.047295"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.059224"], ["last_sign_in_at", "2018-12-07 02:08:55.059224"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.059710"], ["id", 11326]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11326], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.068101"], ["updated_at", "2018-12-07 02:08:55.068101"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8488], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11326], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11326], ["room_id", 8488], ["created_at", "2018-12-07 02:08:55.072664"], ["updated_at", "2018-12-07 02:08:55.072664"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11326], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/8488” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8488"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8488], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8488')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11326], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.7ms) Started POST “/appointments.8488” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11326], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8488 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8488], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11326], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11326], ["room_id", 8488], ["created_at", "2018-12-07 02:08:55.100905"], ["updated_at", "2018-12-07 02:08:55.100905"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11326], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$9DlA0NdQh/6f0vOZOvo/7ePdkEjAAeEJPtz/MMucLu45nkQ9hFNzi"], ["created_at", "2018-12-07 02:08:55.112578"], ["updated_at", "2018-12-07 02:08:55.112578"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.124308"], ["last_sign_in_at", "2018-12-07 02:08:55.124308"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.124755"], ["id", 11327]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11327], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.132438"], ["updated_at", "2018-12-07 02:08:55.132438"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8489], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11327], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11327], ["room_id", 8489], ["created_at", "2018-12-07 02:08:55.136451"], ["updated_at", "2018-12-07 02:08:55.136451"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11327], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11327]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.6ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/4422” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4422"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4422], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4422]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11327], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11327]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$uHKAQ3Bmuxu.x.C.mc5kLOKCnQYdqyX7v9OUip4qLmo/ce.hjT87q"], ["created_at", "2018-12-07 02:08:55.166654"], ["updated_at", "2018-12-07 02:08:55.166654"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.184771"], ["last_sign_in_at", "2018-12-07 02:08:55.184771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.185256"], ["id", 11328]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11328], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:08:55.192739"], ["updated_at", "2018-12-07 02:08:55.192739"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8490], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11328], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11328], ["room_id", 8490], ["created_at", "2018-12-07 02:08:55.196915"], ["updated_at", "2018-12-07 02:08:55.196915"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11328], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11328]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/4423” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4423"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4423], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4423]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.8ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11328], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11328]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.2ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Cv/MvdwjZeNl8ghd0CZbyugAZE6eAGl9dBsqdQe7z1fZR1OZVJAcu"], ["created_at", "2018-12-07 02:08:55.220937"], ["updated_at", "2018-12-07 02:08:55.220937"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.232735"], ["last_sign_in_at", "2018-12-07 02:08:55.232735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.233259"], ["id", 11329]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11329], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 02:08:55.241271"], ["updated_at", "2018-12-07 02:08:55.241271"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:08:55.242666"], ["updated_at", "2018-12-07 02:08:55.242666"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11329], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11329], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11329], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$PYU1RqasFo52/eJqmXCh5.mYwm.mPtCteyk5ZAX5MCSwuI1lgt9qW"], ["created_at", "2018-12-07 02:08:55.267238"], ["updated_at", "2018-12-07 02:08:55.267238"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.279012"], ["last_sign_in_at", "2018-12-07 02:08:55.279012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.279449"], ["id", 11330]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11330], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11330], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11330], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.0ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$Sn8S2ft2saIoYjDp1qCI8.iEAV5QipNP6jOpHz6/JrRrJ.dqgZ1NW"], ["created_at", "2018-12-07 02:08:55.305245"], ["updated_at", "2018-12-07 02:08:55.305245"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.317070"], ["last_sign_in_at", "2018-12-07 02:08:55.317070"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.317456"], ["id", 11331]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11331], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11331], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$KkUDm8TutzGNXbiOpqciruS1gLsMtjt/Bjcav2F8gJW8nkfsOToSS"], ["created_at", "2018-12-07 02:08:55.354307"], ["updated_at", "2018-12-07 02:08:55.354307"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.366629"], ["last_sign_in_at", "2018-12-07 02:08:55.366629"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.367070"], ["id", 11332]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11332], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.375409"], ["updated_at", "2018-12-07 02:08:55.375409"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8493], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11332], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11332], ["room_id", 8493], ["created_at", "2018-12-07 02:08:55.379091"], ["updated_at", "2018-12-07 02:08:55.379091"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11332], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET “/appointments/8493” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8493"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8493], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8493')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11332], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.8ms) Started POST “/appointments.8493” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11332], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8493 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8493], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11332], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 11332], ["room_id", 8493], ["created_at", "2018-12-07 02:08:55.407703"], ["updated_at", "2018-12-07 02:08:55.407703"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11332], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$JbFx8GL4fjAps9LtRkJdqup39oEjC08ECovnpTTNtpropRAnS9wUe"], ["created_at", "2018-12-07 02:08:55.419567"], ["updated_at", "2018-12-07 02:08:55.419567"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.431815"], ["last_sign_in_at", "2018-12-07 02:08:55.431815"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.432240"], ["id", 11333]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11333], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.439811"], ["updated_at", "2018-12-07 02:08:55.439811"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8494], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11333], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 11333], ["room_id", 8494], ["created_at", "2018-12-07 02:08:55.443311"], ["updated_at", "2018-12-07 02:08:55.443311"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11333], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11333]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$esg6u8Dp8oizfvD3PU.giOshPPFwInMJGuihpt5DkFCeTW96N3sz2"], ["created_at", "2018-12-07 02:08:55.458628"], ["updated_at", "2018-12-07 02:08:55.458628"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.470432"], ["last_sign_in_at", "2018-12-07 02:08:55.470432"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.470996"], ["id", 11334]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11334], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:08:55.477955"], ["updated_at", "2018-12-07 02:08:55.477955"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8495], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11334], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 11334], ["room_id", 8495], ["created_at", "2018-12-07 02:08:55.481756"], ["updated_at", "2018-12-07 02:08:55.481756"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11334], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11334]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rEa9izaPoQi.ik.1kMnKfuWu4a9OfnDhMaqrY09kZg0a.my4.IvKi"], ["created_at", "2018-12-07 02:08:55.497887"], ["updated_at", "2018-12-07 02:08:55.497887"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.509909"], ["last_sign_in_at", "2018-12-07 02:08:55.509909"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.510334"], ["id", 11335]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11335], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$vTxpL60NsNzaYTxKcb5rFOBK19ZgLL6ZwPDC29oHO4CPtoBCdGu4W"], ["created_at", "2018-12-07 02:08:55.524887"], ["updated_at", "2018-12-07 02:08:55.524887"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.537432"], ["last_sign_in_at", "2018-12-07 02:08:55.537432"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.537923"], ["id", 11336]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11336], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:08:55.545926"], ["updated_at", "2018-12-07 02:08:55.545926"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.547370"], ["updated_at", "2018-12-07 02:08:55.547370"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11336], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.6ms) Started GET “/appointments/8496” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8496"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8496], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8496')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11336], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.8ms) Started POST “/appointments.8496” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11336], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8496 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8496], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11336], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 11336], ["room_id", 8496], ["created_at", "2018-12-07 02:08:55.578642"], ["updated_at", "2018-12-07 02:08:55.578642"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11336], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$zRzg4TPhcSWha.yXqnWTkehyopdBK4L.NILquMo5ZYLCs.kiTd5LG"], ["created_at", "2018-12-07 02:08:55.598364"], ["updated_at", "2018-12-07 02:08:55.598364"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.610783"], ["last_sign_in_at", "2018-12-07 02:08:55.610783"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.611191"], ["id", 11337]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11337], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:08:55.619470"], ["updated_at", "2018-12-07 02:08:55.619470"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.620890"], ["updated_at", "2018-12-07 02:08:55.620890"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11337], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/8498” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8498"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8498], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8498')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11337], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.6ms) Started POST “/appointments.8498” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11337], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8498 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11337], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$ArpO/TDlZ9bzModtBUDsS.lbNuvJ3.fDlJYZ/qlGP/qw.X77WQ0JK"], ["created_at", "2018-12-07 02:08:55.657397"], ["updated_at", "2018-12-07 02:08:55.657397"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.669314"], ["last_sign_in_at", "2018-12-07 02:08:55.669314"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.669757"], ["id", 11338]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11338], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:08:55.676671"], ["updated_at", "2018-12-07 02:08:55.676671"], ["tipo_sala", "tipoTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11338], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11338], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started DELETE “/rooms/8500” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8500"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11338], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8500], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8500]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11338], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$39Wiyj9znzfqq5sTKNK6YOnpZFREq.ijinjsvTfwio37wNg6ipPW."], ["created_at", "2018-12-07 02:08:55.705976"], ["updated_at", "2018-12-07 02:08:55.705976"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:08:55.707418"], ["updated_at", "2018-12-07 02:08:55.707418"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.724729"], ["last_sign_in_at", "2018-12-07 02:08:55.724729"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.725166"], ["id", 11339]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11339], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11339], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/rooms/8501/edit” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8501"}
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11339], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8501], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.7ms) Started PATCH “/rooms/8501” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"8501"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11339], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8501], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 2.9ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$R23rzN4iVfrT4WwrTx7ShutMd2Xb0yyTfRnwsdx2wP06uTa2Xx3sy"], ["created_at", "2018-12-07 02:08:55.769729"], ["updated_at", "2018-12-07 02:08:55.769729"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$pvmdzG0YqEZfNA86tuFiR.gBI6M0JElnH/EhqOIvNxlZKC1BL8S8K"], ["created_at", "2018-12-07 02:08:55.779477"], ["updated_at", "2018-12-07 02:08:55.779477"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.790910"], ["last_sign_in_at", "2018-12-07 02:08:55.790910"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.791305"], ["id", 11341]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11341], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11341], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 02:08:55.802841"], ["updated_at", "2018-12-07 02:08:55.802841"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 02:08:55.804048"], ["updated_at", "2018-12-07 02:08:55.804048"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 02:08:55.805143"], ["updated_at", "2018-12-07 02:08:55.805143"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$N1HYg3PTfoxpXDxmpa8f3.E/0QYPEX7/xPpZ8X3EpyDIK2WjpfAea"], ["created_at", "2018-12-07 02:08:55.820787"], ["updated_at", "2018-12-07 02:08:55.820787"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.832343"], ["last_sign_in_at", "2018-12-07 02:08:55.832343"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.832756"], ["id", 11342]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11342], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:08:55.840306"], ["updated_at", "2018-12-07 02:08:55.840306"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.842084"], ["updated_at", "2018-12-07 02:08:55.842084"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11342], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$ox9tF/OaB1HP9l0hDN39lO6UG26PQoTnv/1nxjsa8sQcobTuEAAxi"], ["created_at", "2018-12-07 02:08:55.858497"], ["updated_at", "2018-12-07 02:08:55.858497"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.870664"], ["last_sign_in_at", "2018-12-07 02:08:55.870664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.871215"], ["id", 11343]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11343], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:08:55.880192"], ["updated_at", "2018-12-07 02:08:55.880192"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.881589"], ["updated_at", "2018-12-07 02:08:55.881589"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11343], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Os.AFtUF.cwsiHtCNcbxJObdWee33IRWy7aeFmZQJXtULqz512RpS"], ["created_at", "2018-12-07 02:08:55.898491"], ["updated_at", "2018-12-07 02:08:55.898491"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.911608"], ["last_sign_in_at", "2018-12-07 02:08:55.911608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.912048"], ["id", 11344]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11344], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:08:55.919406"], ["updated_at", "2018-12-07 02:08:55.919406"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.920648"], ["updated_at", "2018-12-07 02:08:55.920648"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11344], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11344], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11344], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.0ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11344], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11344], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.6ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-08", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11344], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-08' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$/m.jKf27uk1iLFSAAF307endflsvuQdmEppeNpnpKzMHpih2fxi2m"], ["created_at", "2018-12-07 02:08:55.966591"], ["updated_at", "2018-12-07 02:08:55.966591"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (2.3ms)

Completed 200 OK in 4ms (Views: 3.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:55.980803"], ["last_sign_in_at", "2018-12-07 02:08:55.980803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:55.981262"], ["id", 11345]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:55 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11345], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (6.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 8ms (Views: 7.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:08:55.994388"], ["updated_at", "2018-12-07 02:08:55.994388"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:08:55.995849"], ["updated_at", "2018-12-07 02:08:55.995849"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11345], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11345], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11345], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11345], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11345], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11345], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11345], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$IydU/83Kjom4TOKzOek8ieKqFmj3B2MZZpZJQec461GiIJdi5P/Qi"], ["created_at", "2018-12-07 02:08:56.031051"], ["updated_at", "2018-12-07 02:08:56.031051"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:56.049988"], ["last_sign_in_at", "2018-12-07 02:08:56.049988"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:56.050470"], ["id", 11346]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11346], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.2ms)
Rendered users/registrations/new.html.erb within layouts/application (2.6ms)

Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$YOOrUqHTl82PgD9qaiKVYuXqYy.Z4iz90ssE8MAX3o2S5MAtKwdwO"], ["created_at", "2018-12-07 02:08:56.089583"], ["updated_at", "2018-12-07 02:08:56.089583"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:08:56.090771"], ["last_sign_in_at", "2018-12-07 02:08:56.090771"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:08:56.091080"], ["id", 11347]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11347], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$jtES6cpOtU3atXb/nwpWhuHasVPnyqpu6TARknuCIlGTxQVRg1IpK"], ["created_at", "2018-12-07 02:08:56.103332"], ["updated_at", "2018-12-07 02:08:56.103332"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:56.121146"], ["last_sign_in_at", "2018-12-07 02:08:56.121146"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:56.121608"], ["id", 11348]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11348], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started GET “/users/11348/edit” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"11348"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11348], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started PUT “/users/11348” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"11348"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11348], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11348], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 11348], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 02:08:56.153837"], ["id", 11348]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11348], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$AVZHa4h0x8bY3hIS.6kuMOEayVJdvwWVS3xCEfF/3IULZGQdGCY4m"], ["created_at", "2018-12-07 02:08:56.168203"], ["updated_at", "2018-12-07 02:08:56.168203"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.1ms)
Rendered users/sessions/new.html.erb within layouts/application (1.9ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:56.180536"], ["last_sign_in_at", "2018-12-07 02:08:56.180536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:56.181000"], ["id", 11349]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11349], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:08:56.188241"], ["updated_at", "2018-12-07 02:08:56.188241"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11349], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11349], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.8ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11349], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11349], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11349], ["room_id", 1], ["created_at", "2018-12-07 02:08:56.214374"], ["updated_at", "2018-12-07 02:08:56.214374"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11349], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$Zx2FLNPlWixt4FCTFcKN7.dknJa7lNotNOe2Bhr26w7Sj3jhGkc4e"], ["created_at", "2018-12-07 02:08:56.225630"], ["updated_at", "2018-12-07 02:08:56.225630"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:08:56.237791"], ["last_sign_in_at", "2018-12-07 02:08:56.237791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:08:56.238282"], ["id", 11350]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11350], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:08:56.246319"], ["updated_at", "2018-12-07 02:08:56.246319"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11350], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11350], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11350], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11350], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11350], ["room_id", 1], ["created_at", "2018-12-07 02:08:56.272671"], ["updated_at", "2018-12-07 02:08:56.272671"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11350], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$THsRq6MIPxkX5PyzZz5lNejnqOsEYaeLgqBpNPAuvzAIqEj.EZDGa"], ["created_at", "2018-12-07 02:08:56.284116"], ["updated_at", "2018-12-07 02:08:56.284116"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.9ms)
Rendered password_resets/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 5ms (Views: 4.3ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.1ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$NoGKsP8rVVvN8xN/F8b3ju4qZNMN7IK/07QbnQnVXQjIL.N0CiICe"], ["updated_at", "2018-12-07 02:08:56.315244"], ["id", 11351]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$gjHu62o6bwOlni4d3h7VeeyIrAXJywsXSmJCacehuAVlEJ8rYz19O"], ["created_at", "2018-12-07 02:08:56.321758"], ["updated_at", "2018-12-07 02:08:56.321758"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.4ms)
Rendered password_resets/new.html.erb within layouts/application (1.2ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:08:56 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fj4andlriyDv5cOiMNUUBu7iCYGjXjGQU5E9oAeDxm4b8hDv54iwC"], ["created_at", "2018-12-07 02:09:10.446766"], ["updated_at", "2018-12-07 02:09:10.446766"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kB2Gca58VSl29s24MDw4n.v3hfyaYpMTyfwBMCCBpM2QigyQttXsi"], ["created_at", "2018-12-07 02:09:10.452469"], ["updated_at", "2018-12-07 02:09:10.452469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.466343"], ["updated_at", "2018-12-07 02:09:10.466343"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.6ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8513], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11354], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11354], ["room_id", 8513], ["created_at", "2018-12-07 02:09:10.500157"], ["updated_at", "2018-12-07 02:09:10.500157"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4431"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4431], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8513], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11354], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 132.1ms Sent mail to 123@123.com (5.3ms) Date: Fri, 07 Dec 2018 00:09:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d646a187f_4bf12b142ecee6004857c@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d646a0a9d_4bf12b142ecee600484ee";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d646a0a9d_4bf12b142ecee600484ee Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d646a0a9d_4bf12b142ecee600484ee Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d646a0a9d_4bf12b142ecee600484ee–

Completed 302 Found in 152ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VjIiJFWt9q3UWNtLYzQTw.5FOxnOISNjaTbT5T9mvf3W.K0NH5BAq"], ["created_at", "2018-12-07 02:09:10.668643"], ["updated_at", "2018-12-07 02:09:10.668643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VD7wT64HtoZRxrAWWKmnZeiQdXqYcfgI6Q7mzynCODznTYMDZntuC"], ["created_at", "2018-12-07 02:09:10.671753"], ["updated_at", "2018-12-07 02:09:10.671753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.673085"], ["updated_at", "2018-12-07 02:09:10.673085"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8514], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11356], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11356], ["room_id", 8514], ["created_at", "2018-12-07 02:09:10.675768"], ["updated_at", "2018-12-07 02:09:10.675768"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4432"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4432], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8514], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11356], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:09:10.680281"], ["id", 4432]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:09:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d646a7071_4bf12b142ecee600487e5@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d646a6b05_4bf12b142ecee60048691";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d646a6b05_4bf12b142ecee60048691 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d646a6b05_4bf12b142ecee60048691 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d646a6b05_4bf12b142ecee60048691–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZYGJJf95kDTnCCsnDdetJem/ZZWaUpfXSpbjsNtD.KUjUnc2ZUUM6"], ["created_at", "2018-12-07 02:09:10.689585"], ["updated_at", "2018-12-07 02:09:10.689585"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CmGa7f2SGRno6hB4dDhTz.PhU8lkfsbkx4Nu5RdIfH7S6HJnFLx1."], ["created_at", "2018-12-07 02:09:10.692972"], ["updated_at", "2018-12-07 02:09:10.692972"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.694670"], ["updated_at", "2018-12-07 02:09:10.694670"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8515], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11358], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11358], ["room_id", 8515], ["created_at", "2018-12-07 02:09:10.698108"], ["updated_at", "2018-12-07 02:09:10.698108"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l0pm5HMm3W22GBGE/R2CIeIb.77G3fuMp3/1kJ6WQX4PsQ6/Ecdwa"], ["created_at", "2018-12-07 02:09:10.704500"], ["updated_at", "2018-12-07 02:09:10.704500"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$adgr6RqT1RWwPjTOPT6.QekYPcdRppmip/RSkZjqiNNHrnlml7lUK"], ["created_at", "2018-12-07 02:09:10.707715"], ["updated_at", "2018-12-07 02:09:10.707715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.709244"], ["updated_at", "2018-12-07 02:09:10.709244"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8516], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11360], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11360], ["room_id", 8516], ["created_at", "2018-12-07 02:09:10.712130"], ["updated_at", "2018-12-07 02:09:10.712130"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4434], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$0CC7o.hXaTd/NqKR.vXLPeSX6n4uEn5luoBAdRfFFcfa7n3y3o6ja"], ["created_at", "2018-12-07 02:09:10.717173"], ["updated_at", "2018-12-07 02:09:10.717173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11361"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "VztSUkWFqqkep-kpX-Ml9w"], ["updated_at", "2018-12-07 02:09:10.720383"], ["id", 11361]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:09:10.721823"], ["reset_sent_at", "2018-12-07 02:09:10.721515"], ["id", 11361]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:09:10 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d646b1f5e_4bf12b142ecee6004902b@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d646b198a_4bf12b142ecee600489ef";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d646b198a_4bf12b142ecee600489ef Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/VztSUkWFqqkep-kpX-Ml9w/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d646b198a_4bf12b142ecee600489ef Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/VztSUkWFqqkep-kpX-Ml9w/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d646b198a_4bf12b142ecee600489ef–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$XnvT2mzz0kK00MhHfVJvl.wZafOGYso0rV1Wa397R9W0JH3pHiTpC"], ["created_at", "2018-12-07 02:09:10.734617"], ["updated_at", "2018-12-07 02:09:10.734617"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$pPoP/hlkq2K47xOypGC8TOfpPDCEb/gb06GCJ6M3yy79v4iY1EgLS"], ["created_at", "2018-12-07 02:09:10.741769"], ["updated_at", "2018-12-07 02:09:10.741769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11363"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$V0RqkCYcIw9LOkhsS6BSY.qfjQyayZVlC76JMP51oJgLM2y1amIxy"], ["updated_at", "2018-12-07 02:09:10.745703"], ["id", 11363]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$V9bHk120mk7WMQkP3Ri3/OYvhd48BTE6Er.ak7jv6kqnmhUu2dWPO"], ["created_at", "2018-12-07 02:09:10.750428"], ["updated_at", "2018-12-07 02:09:10.750428"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11364"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$IQGpF/sS9esRBPJYBJydzO8.a3bFSzO7cC2ojahvsmp1kwXADuEsS"], ["created_at", "2018-12-07 02:09:10.758263"], ["updated_at", "2018-12-07 02:09:10.758263"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11365"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$i/HpbqxhQ6fMT9k2gQjicOqX99ebnK5XRp2ta3TIjs9gtLTRs4DHi"], ["created_at", "2018-12-07 02:09:10.771424"], ["updated_at", "2018-12-07 02:09:10.771424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11366"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$nyOLc3FMVRwBxvtHysHpjusYLTjVzXnXbQGRZM8kLDPVV0U1VtH5W"], ["created_at", "2018-12-07 02:09:10.779696"], ["updated_at", "2018-12-07 02:09:10.779696"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11367"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pc5s1Nn0MPTzCXE0rrimb.uU4YihPUgxuZNxrqvV3LyJavts2yAli"], ["created_at", "2018-12-07 02:09:10.787009"], ["updated_at", "2018-12-07 02:09:10.787009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.0ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BG5rZZ5AfXTbccVgQg3vu.jrXTt0f6bvliID6iRUntgIjpZShSBdy"], ["created_at", "2018-12-07 02:09:10.794216"], ["updated_at", "2018-12-07 02:09:10.794216"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F.KVJKyHSIupFvInE6hr6eCmG0vQtqdRlycwLiP73ycvrClijBqfq"], ["created_at", "2018-12-07 02:09:10.801069"], ["updated_at", "2018-12-07 02:09:10.801069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.802586"], ["updated_at", "2018-12-07 02:09:10.802586"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8517], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11370], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11370], ["room_id", 8517], ["created_at", "2018-12-07 02:09:10.805613"], ["updated_at", "2018-12-07 02:09:10.805613"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$u5a7GC2pnp/KrX3cljSy6usUPbZrh2NDF3HxUcgbSFxNO1p6Di0pu"], ["created_at", "2018-12-07 02:09:10.811757"], ["updated_at", "2018-12-07 02:09:10.811757"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.813265"], ["updated_at", "2018-12-07 02:09:10.813265"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8518], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11371], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11371], ["room_id", 8518], ["created_at", "2018-12-07 02:09:10.816183"], ["updated_at", "2018-12-07 02:09:10.816183"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CbJLeqXlmX.RAxgZlJU7p.Og3KQmXN3aEyKvWZkvmBdXKOh.5R0z6"], ["created_at", "2018-12-07 02:09:10.838773"], ["updated_at", "2018-12-07 02:09:10.838773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.840282"], ["updated_at", "2018-12-07 02:09:10.840282"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.846805"], ["last_sign_in_at", "2018-12-07 02:09:10.846805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.847176"], ["id", 11372]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8519"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8519 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8519], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11372], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11372], ["room_id", 8519], ["created_at", "2018-12-07 02:09:10.855460"], ["updated_at", "2018-12-07 02:09:10.855460"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8519], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lOyZ9QzdzBco/LNWYCTi4.1cJ2kPs639z7q8Y3NJzoFb29ZnDdcAK"], ["created_at", "2018-12-07 02:09:10.861533"], ["updated_at", "2018-12-07 02:09:10.861533"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.863034"], ["updated_at", "2018-12-07 02:09:10.863034"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.864823"], ["last_sign_in_at", "2018-12-07 02:09:10.864823"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.865177"], ["id", 11373]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8520"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8520 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8520], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11373], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11373], ["room_id", 8520], ["created_at", "2018-12-07 02:09:10.869402"], ["updated_at", "2018-12-07 02:09:10.869402"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q1y2HnkxMXDiYdzI3Z6bTeZXF0U52rdyhZftaqjfOYYxbKehP/sCu"], ["created_at", "2018-12-07 02:09:10.874539"], ["updated_at", "2018-12-07 02:09:10.874539"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.876023"], ["updated_at", "2018-12-07 02:09:10.876023"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.878071"], ["last_sign_in_at", "2018-12-07 02:09:10.878071"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.878415"], ["id", 11374]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8521", "user_id"=>"11374"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8521 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8521], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11374], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11374], ["room_id", 8521], ["created_at", "2018-12-07 02:09:10.882982"], ["updated_at", "2018-12-07 02:09:10.882982"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8521", "user_id"=>"11374"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11374], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8521 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8521], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11374], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11374], ["room_id", 8521], ["created_at", "2018-12-07 02:09:10.890453"], ["updated_at", "2018-12-07 02:09:10.890453"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UDshPqfu9KHJjk/cN4SFXe0dhTOubrEAqRwoPpF4Z7E/SvpMKaHEK"], ["created_at", "2018-12-07 02:09:10.895618"], ["updated_at", "2018-12-07 02:09:10.895618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.897117"], ["updated_at", "2018-12-07 02:09:10.897117"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.899236"], ["last_sign_in_at", "2018-12-07 02:09:10.899236"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.899646"], ["id", 11375]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8522", "user_id"=>"11375"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8522 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8522], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11375], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11375], ["room_id", 8522], ["created_at", "2018-12-07 02:09:10.904114"], ["updated_at", "2018-12-07 02:09:10.904114"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8522", "user_id"=>"11375"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11375], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8522 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8522], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11375], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11375], ["room_id", 8522], ["created_at", "2018-12-07 02:09:10.910238"], ["updated_at", "2018-12-07 02:09:10.910238"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8522], ["user_id", 11375], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8qCeXRE4jbRc..yu2nc.LeHxnadJ8g8D0ViLArY6rhEgmdyOPjQE2"], ["created_at", "2018-12-07 02:09:10.916636"], ["updated_at", "2018-12-07 02:09:10.916636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.918209"], ["updated_at", "2018-12-07 02:09:10.918209"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.920261"], ["last_sign_in_at", "2018-12-07 02:09:10.920261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.920571"], ["id", 11376]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8523", "user_id"=>"11376"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8523 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8523], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11376], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11376], ["room_id", 8523], ["created_at", "2018-12-07 02:09:10.924724"], ["updated_at", "2018-12-07 02:09:10.924724"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8523", "user_id"=>"11376"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11376], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8523 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8523], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11376], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11376], ["room_id", 8523], ["created_at", "2018-12-07 02:09:10.930415"], ["updated_at", "2018-12-07 02:09:10.930415"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8523], ["user_id", 11376], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1Du/8SaRdcrhYVR0YSOnnOUIxffpwcpVusnCzeM5kbLAQyfCWTvEy"], ["created_at", "2018-12-07 02:09:10.935436"], ["updated_at", "2018-12-07 02:09:10.935436"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.936768"], ["updated_at", "2018-12-07 02:09:10.936768"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.938398"], ["last_sign_in_at", "2018-12-07 02:09:10.938398"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.938710"], ["id", 11377]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8524"}
 (0.1ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.1ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8524], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/2zXqZKEvad4MmuorlyLbuKQjbT3bMEqw6u7MYB6PTnaF7xG9twP."], ["created_at", "2018-12-07 02:09:10.945200"], ["updated_at", "2018-12-07 02:09:10.945200"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.947149"], ["updated_at", "2018-12-07 02:09:10.947149"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.949142"], ["last_sign_in_at", "2018-12-07 02:09:10.949142"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.949476"], ["id", 11378]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8525"}
 (0.1ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$B677W8ZUY77kwcu42tRG3uB1vAq2NawPEiZYEjc3l761XmubfqCO6"], ["created_at", "2018-12-07 02:09:10.956053"], ["updated_at", "2018-12-07 02:09:10.956053"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:10.957437"], ["updated_at", "2018-12-07 02:09:10.957437"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8526], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11379], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11379], ["room_id", 8526], ["created_at", "2018-12-07 02:09:10.959964"], ["updated_at", "2018-12-07 02:09:10.959964"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8526” for 127.0.0.1 at 2018-12-07 00:09:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:10.961370"], ["last_sign_in_at", "2018-12-07 02:09:10.961370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:10.961686"], ["id", 11379]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8526"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8526], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8526')
Rendered appointments/show.html.erb within layouts/application (5.9ms)
Rendered layouts/_header-user.html.erb (3.4ms)

Completed 200 OK in 148ms (Views: 146.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JeTnE.Z2GO/JNIspAVsP..dsxrSJE9UTy3b5u3Iwb41S2Dixf84ey"], ["created_at", "2018-12-07 02:09:11.118654"], ["updated_at", "2018-12-07 02:09:11.118654"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.121002"], ["updated_at", "2018-12-07 02:09:11.121002"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8527], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11380], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11380], ["room_id", 8527], ["created_at", "2018-12-07 02:09:11.127296"], ["updated_at", "2018-12-07 02:09:11.127296"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4446/edit” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.131093"], ["last_sign_in_at", "2018-12-07 02:09:11.131093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.131520"], ["id", 11380]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4446"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4446], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 9.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TOTphEko4p5vRAKEtqls/eKf/ZsH9XSrTSKk3XN5rMpNKfnSupidm"], ["created_at", "2018-12-07 02:09:11.152484"], ["updated_at", "2018-12-07 02:09:11.152484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.155176"], ["last_sign_in_at", "2018-12-07 02:09:11.155176"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.155610"], ["id", 11381]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.6ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Skz4k3Yv6BfDl7XYZI2c3OcVJs1.KEzts5Whqcez52./O2DMsJVgm"], ["created_at", "2018-12-07 02:09:11.181018"], ["updated_at", "2018-12-07 02:09:11.181018"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.184379"], ["updated_at", "2018-12-07 02:09:11.184379"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8528], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11382], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11382], ["room_id", 8528], ["created_at", "2018-12-07 02:09:11.189380"], ["updated_at", "2018-12-07 02:09:11.189380"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8528], ["LIMIT", 1]]
User Load (0.6ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11382], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11382], ["room_id", 8528], ["created_at", "2018-12-07 02:09:11.194654"], ["updated_at", "2018-12-07 02:09:11.194654"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.197234"], ["last_sign_in_at", "2018-12-07 02:09:11.197234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.197672"], ["id", 11382]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11382]]
Rendered appointments/my_appointments.html.erb within layouts/application (11.6ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 22ms (Views: 14.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tOM7DaFhB8EdWbw2Ntrd0e9oUsQGQNh0PIxZFXkbVRmT5XYgk6TKq"], ["created_at", "2018-12-07 02:09:11.227347"], ["updated_at", "2018-12-07 02:09:11.227347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.229298"], ["updated_at", "2018-12-07 02:09:11.229298"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8529], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11383], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11383], ["room_id", 8529], ["created_at", "2018-12-07 02:09:11.232546"], ["updated_at", "2018-12-07 02:09:11.232546"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8529], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11383], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11383], ["room_id", 8529], ["created_at", "2018-12-07 02:09:11.235806"], ["updated_at", "2018-12-07 02:09:11.235806"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.238241"], ["last_sign_in_at", "2018-12-07 02:09:11.238241"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.238751"], ["id", 11383]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11383]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jMqrYHfTvkSualoMCV5h8.3epf5T83acj/VXRM0Eg2CVQMwIvdP5q"], ["created_at", "2018-12-07 02:09:11.249141"], ["updated_at", "2018-12-07 02:09:11.249141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.250829"], ["updated_at", "2018-12-07 02:09:11.250829"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8530], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11384], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11384], ["room_id", 8530], ["created_at", "2018-12-07 02:09:11.253845"], ["updated_at", "2018-12-07 02:09:11.253845"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4451” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.255409"], ["last_sign_in_at", "2018-12-07 02:09:11.255409"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.255803"], ["id", 11384]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4451"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4451], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4451]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W42pFD4Xg.yY9jv8IfI59evA1XdFthXy/8Yk5hoEAO2V6ubOFTvzS"], ["created_at", "2018-12-07 02:09:11.264350"], ["updated_at", "2018-12-07 02:09:11.264350"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.265908"], ["updated_at", "2018-12-07 02:09:11.265908"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.sORfCQXRk48shfSh9S.vOCziim6PUCPynVl1HmdPEBEPOQDPRnHi"], ["created_at", "2018-12-07 02:09:11.269842"], ["updated_at", "2018-12-07 02:09:11.269842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8531], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11386], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11386], ["room_id", 8531], ["created_at", "2018-12-07 02:09:11.273229"], ["updated_at", "2018-12-07 02:09:11.273229"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4452” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.275160"], ["last_sign_in_at", "2018-12-07 02:09:11.275160"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.275533"], ["id", 11385]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4452"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4452], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8531], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11386], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0gB0Mu5MD0Dz/hdDW2DKJei3.kwK/.jYN4.jsMXO9e86VpJyuEmJm"], ["created_at", "2018-12-07 02:09:11.285107"], ["updated_at", "2018-12-07 02:09:11.285107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.286689"], ["updated_at", "2018-12-07 02:09:11.286689"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F6BHWoINCI3/FtVhMkyvMuJUbgTc5CqJwxMlm4rjX2Y/YFoLLxXN."], ["created_at", "2018-12-07 02:09:11.289769"], ["updated_at", "2018-12-07 02:09:11.289769"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8532], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11388], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11388], ["room_id", 8532], ["created_at", "2018-12-07 02:09:11.292988"], ["updated_at", "2018-12-07 02:09:11.292988"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4453” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.294919"], ["last_sign_in_at", "2018-12-07 02:09:11.294919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.295348"], ["id", 11387]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4453"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4453], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8532], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11388], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6nINNefKyq186325QW8uzu1KZkMFLu9iP9bToLQxU25UVfYRYCFMO"], ["created_at", "2018-12-07 02:09:11.305063"], ["updated_at", "2018-12-07 02:09:11.305063"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.306601"], ["updated_at", "2018-12-07 02:09:11.306601"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0vjHfoHiyz4GfD.ANRIug..LUL6UryyJsgEDlxEknR0/eoFCWjlAK"], ["created_at", "2018-12-07 02:09:11.309637"], ["updated_at", "2018-12-07 02:09:11.309637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8533], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11390], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11390], ["room_id", 8533], ["created_at", "2018-12-07 02:09:11.312538"], ["updated_at", "2018-12-07 02:09:11.312538"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4454” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.314343"], ["last_sign_in_at", "2018-12-07 02:09:11.314343"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.314697"], ["id", 11389]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4454"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4454], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8533], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11390], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:09:11.318548"], ["id", 4454]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:09:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d6474eb23_4bf12b142ecee600497b3@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d6474e54e_4bf12b142ecee600496e7";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d6474e54e_4bf12b142ecee600496e7 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d6474e54e_4bf12b142ecee600496e7 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d6474e54e_4bf12b142ecee600496e7–

Completed 302 Found in 8ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WNmSqxIBX0sDggsCaPdTEOaU/VQZKVNA34i9m1EIWKHp/ef3FAIci"], ["created_at", "2018-12-07 02:09:11.328434"], ["updated_at", "2018-12-07 02:09:11.328434"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.330044"], ["updated_at", "2018-12-07 02:09:11.330044"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ii3bCYpWx1whjBd/Kog3guy32cPPxyD/Z67B8swJXCCL0CrdnjxDG"], ["created_at", "2018-12-07 02:09:11.333734"], ["updated_at", "2018-12-07 02:09:11.333734"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8534], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11392], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11392], ["room_id", 8534], ["created_at", "2018-12-07 02:09:11.337039"], ["updated_at", "2018-12-07 02:09:11.337039"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:09:11.338331"], ["id", 4455]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8534], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11392], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11392], ["room_id", 8534], ["created_at", "2018-12-07 02:09:11.340770"], ["updated_at", "2018-12-07 02:09:11.340770"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:09:11.341917"], ["id", 4456]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.343233"], ["last_sign_in_at", "2018-12-07 02:09:11.343233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.343543"], ["id", 11391]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11392], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8534], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11392], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8534], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8iMBBRrRFuonjGdTZp0U4.r3OoddOffJgPPDgFUZo790sPRpmucLq"], ["created_at", "2018-12-07 02:09:11.355679"], ["updated_at", "2018-12-07 02:09:11.355679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.357087"], ["updated_at", "2018-12-07 02:09:11.357087"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Vq4dJu8J17kcRLv61/VFc.oCrVsBNi5XkDxCLMUHNpg2tNRlPpd.m"], ["created_at", "2018-12-07 02:09:11.359923"], ["updated_at", "2018-12-07 02:09:11.359923"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8535], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11394], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11394], ["room_id", 8535], ["created_at", "2018-12-07 02:09:11.363045"], ["updated_at", "2018-12-07 02:09:11.363045"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:09:11.364929"], ["id", 4457]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8535], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11394], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11394], ["room_id", 8535], ["created_at", "2018-12-07 02:09:11.367679"], ["updated_at", "2018-12-07 02:09:11.367679"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:09:11.368875"], ["id", 4458]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.370195"], ["last_sign_in_at", "2018-12-07 02:09:11.370195"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.370528"], ["id", 11393]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11394], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8535], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11394], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8535], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$STtKLxEIxGzOcmDLWss5v.n45iQItG1ABJ78RGljXWqNkGoPUOsFS"], ["created_at", "2018-12-07 02:09:11.382142"], ["updated_at", "2018-12-07 02:09:11.382142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.383691"], ["last_sign_in_at", "2018-12-07 02:09:11.383691"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.383979"], ["id", 11395]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J7s9xIKaz46sBWKztahaFODhsAdlQdznSKodnpLWJ7darpoKbpc.S"], ["created_at", "2018-12-07 02:09:11.397105"], ["updated_at", "2018-12-07 02:09:11.397105"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.398759"], ["last_sign_in_at", "2018-12-07 02:09:11.398759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.399064"], ["id", 11396]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2TPLF69qnsHIDc5Lb5Io2OTqYNubokxIFeUlZMI8r5dlNIjzKme0y"], ["created_at", "2018-12-07 02:09:11.404742"], ["updated_at", "2018-12-07 02:09:11.404742"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.406187"], ["last_sign_in_at", "2018-12-07 02:09:11.406187"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.406483"], ["id", 11397]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Zml3jqjxiQH24CNhrCzgWeRfgzJQfyvzvCzt3YdxEvgEOCAjCdmWK"], ["created_at", "2018-12-07 02:09:11.415484"], ["updated_at", "2018-12-07 02:09:11.415484"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.416965"], ["last_sign_in_at", "2018-12-07 02:09:11.416965"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.417279"], ["id", 11398]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7nElMVJ/U6m1GclKOorBzOpnQ75/UMQ0AgUDFDVP1qCez.l04SLv6"], ["created_at", "2018-12-07 02:09:11.431424"], ["updated_at", "2018-12-07 02:09:11.431424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.433039"], ["updated_at", "2018-12-07 02:09:11.433039"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8536” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.434439"], ["last_sign_in_at", "2018-12-07 02:09:11.434439"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.434780"], ["id", 11399]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8536"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8536], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WHYgixHVj.b8SdrCA6yxCexKxzg3a8zzpbsp8Nw2/Md8BDZlgRRy."], ["created_at", "2018-12-07 02:09:11.443683"], ["updated_at", "2018-12-07 02:09:11.443683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.445238"], ["updated_at", "2018-12-07 02:09:11.445238"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8537” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.446662"], ["last_sign_in_at", "2018-12-07 02:09:11.446662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.447050"], ["id", 11400]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8537"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8537], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.453356"], ["updated_at", "2018-12-07 02:09:11.453356"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8538” for 127.0.0.1 at 2018-12-07 00:09:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8538"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nGiBUzobTGuq7KTwlVjI8ObtnlT6bDMq/nUYs10uZAPrh1y/7ZPaC"], ["created_at", "2018-12-07 02:09:11.460648"], ["updated_at", "2018-12-07 02:09:11.460648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.462314"], ["updated_at", "2018-12-07 02:09:11.462314"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8539” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.463788"], ["last_sign_in_at", "2018-12-07 02:09:11.463788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.464145"], ["id", 11401]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8539"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.472067"], ["updated_at", "2018-12-07 02:09:11.472067"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8540” for 127.0.0.1 at 2018-12-07 00:09:11 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8540"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ezdFjJ8qxXT05GXit0wPdeyOluF0UuAcLjYDmD6UIDTvkQEMQ5OzO"], ["created_at", "2018-12-07 02:09:11.478209"], ["updated_at", "2018-12-07 02:09:11.478209"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.479774"], ["updated_at", "2018-12-07 02:09:11.479774"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8541/edit” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.481170"], ["last_sign_in_at", "2018-12-07 02:09:11.481170"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.481527"], ["id", 11402]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8541"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8541], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1swUaN/J/ZyxA7CdVOD2PuYSWu5Vqr39h9xqhFgVKG0SjeZspUyOm"], ["created_at", "2018-12-07 02:09:11.492545"], ["updated_at", "2018-12-07 02:09:11.492545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.494225"], ["updated_at", "2018-12-07 02:09:11.494225"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8542/edit” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.495752"], ["last_sign_in_at", "2018-12-07 02:09:11.495752"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.496129"], ["id", 11403]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8542"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8542], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.503824"], ["updated_at", "2018-12-07 02:09:11.503824"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8543” for 127.0.0.1 at 2018-12-07 00:09:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8543"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LvXrAdd71jxuE11yh7f1CeLlfnuCTSu78VpN.R6tIV8y95mr/CAEm"], ["created_at", "2018-12-07 02:09:11.510072"], ["updated_at", "2018-12-07 02:09:11.510072"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.512166"], ["last_sign_in_at", "2018-12-07 02:09:11.512166"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.512510"], ["id", 11404]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.515012"], ["updated_at", "2018-12-07 02:09:11.515012"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qV2yhby.h2d/2ceP3A2kWuT2r1j9Wq/DI3YfooeHqY.J.ZahX2XCm"], ["created_at", "2018-12-07 02:09:11.521185"], ["updated_at", "2018-12-07 02:09:11.521185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.523678"], ["last_sign_in_at", "2018-12-07 02:09:11.523678"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.524049"], ["id", 11405]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.526568"], ["updated_at", "2018-12-07 02:09:11.526568"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V2zTe74MLWxFAnR5y69Npek1gO9SXYPCfBFTB.2Y3UxQYLU9na.Kq"], ["created_at", "2018-12-07 02:09:11.531804"], ["updated_at", "2018-12-07 02:09:11.531804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.533809"], ["last_sign_in_at", "2018-12-07 02:09:11.533809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.534149"], ["id", 11406]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W0dS6ObW/gFdv3HrQqYmzOVyBOFFeAJY6ndO5vn1MxrhQtWcQNDSa"], ["created_at", "2018-12-07 02:09:11.542381"], ["updated_at", "2018-12-07 02:09:11.542381"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.544609"], ["last_sign_in_at", "2018-12-07 02:09:11.544609"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.544969"], ["id", 11407]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$J2r0qNtMyXkJ6HqHE7Pzn.3JSH6QXqA2rYgrmd4PlsJTaf9PJTX7G"], ["created_at", "2018-12-07 02:09:11.552518"], ["updated_at", "2018-12-07 02:09:11.552518"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.554695"], ["last_sign_in_at", "2018-12-07 02:09:11.554695"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.555056"], ["id", 11408]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kTdly67iAN6HjBw2XIObcOmlL3C.ihizwCZBo9ADSqqZYO09VhqtW"], ["created_at", "2018-12-07 02:09:11.561657"], ["updated_at", "2018-12-07 02:09:11.561657"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.563295"], ["updated_at", "2018-12-07 02:09:11.563295"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8546” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.565084"], ["last_sign_in_at", "2018-12-07 02:09:11.565084"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.565452"], ["id", 11409]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8546"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8546], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:09:11.568388"], ["id", 8546]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8546 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kCaIRYlmh1wmb.srQDbSWeUdYwhC1nthv0urXnMmJBOp7qUW7Tihu"], ["created_at", "2018-12-07 02:09:11.573997"], ["updated_at", "2018-12-07 02:09:11.573997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.575560"], ["updated_at", "2018-12-07 02:09:11.575560"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8547” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.577318"], ["last_sign_in_at", "2018-12-07 02:09:11.577318"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.577676"], ["id", 11410]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8547"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8547], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:09:11.580472"], ["id", 8547]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8547 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BfPzFK7eevsYzp.GPJufPuNTvPQXW.OHFJlBDQUfcF4WtPCYndhP."], ["created_at", "2018-12-07 02:09:11.586183"], ["updated_at", "2018-12-07 02:09:11.586183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.587916"], ["updated_at", "2018-12-07 02:09:11.587916"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8548” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.589803"], ["last_sign_in_at", "2018-12-07 02:09:11.589803"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.590243"], ["id", 11411]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8548"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8548], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oROAf7yUw.nx1hEDir0gC.SqXRAJBgovP9BVBcH9iFv0CBPj6OIY."], ["created_at", "2018-12-07 02:09:11.601674"], ["updated_at", "2018-12-07 02:09:11.601674"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.603316"], ["updated_at", "2018-12-07 02:09:11.603316"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8549” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.605119"], ["last_sign_in_at", "2018-12-07 02:09:11.605119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.605554"], ["id", 11412]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8549"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8549], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/j7wyHsi6JY7yF4/rRyQzePFj5sSjzWzSNwZGYXPbfbSo2LvGYLzW"], ["created_at", "2018-12-07 02:09:11.617107"], ["updated_at", "2018-12-07 02:09:11.617107"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.619404"], ["last_sign_in_at", "2018-12-07 02:09:11.619404"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.619767"], ["id", 11413]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pQwpUPUmhWu1zYdT/l0t.eEN50PB0p0IUjjVp9tQTbDGWETSJx54y"], ["created_at", "2018-12-07 02:09:11.626076"], ["updated_at", "2018-12-07 02:09:11.626076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.627710"], ["updated_at", "2018-12-07 02:09:11.627710"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8550” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.629158"], ["last_sign_in_at", "2018-12-07 02:09:11.629158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.629573"], ["id", 11414]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8550"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8550], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8550]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$nHIx5xrWiNCI75cyJ0PWt.J3VxjOMJeS24EOGHit1tO6QFv61lMpm"], ["created_at", "2018-12-07 02:09:11.637295"], ["updated_at", "2018-12-07 02:09:11.637295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.638826"], ["updated_at", "2018-12-07 02:09:11.638826"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8551” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.640276"], ["last_sign_in_at", "2018-12-07 02:09:11.640276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.640712"], ["id", 11415]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8551"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8551], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8551]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W4IMMrDeWFatMqerGTcqmuQYG4ikR7ptx8vT4uqZdzqxm8jxwFmWq"], ["created_at", "2018-12-07 02:09:11.648481"], ["updated_at", "2018-12-07 02:09:11.648481"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.650294"], ["updated_at", "2018-12-07 02:09:11.650294"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8552” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.651763"], ["last_sign_in_at", "2018-12-07 02:09:11.651763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.652129"], ["id", 11416]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8552"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Dms40ms5lw.cVNZg/jAXpeucXRIVB16/aZIj4aXdfIslDm7kwlMg6"], ["created_at", "2018-12-07 02:09:11.658427"], ["updated_at", "2018-12-07 02:09:11.658427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.659973"], ["updated_at", "2018-12-07 02:09:11.659973"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8553” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.661339"], ["last_sign_in_at", "2018-12-07 02:09:11.661339"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.661696"], ["id", 11417]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8553"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/sguE.iHi3skuiijyngaTee.YdmC7Q7TCdnM9pyDJ3NaEebopA9a."], ["created_at", "2018-12-07 02:09:11.667584"], ["updated_at", "2018-12-07 02:09:11.667584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.669177"], ["last_sign_in_at", "2018-12-07 02:09:11.669177"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.669513"], ["id", 11418]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JT34BXeRFSJPv3dHxMTvQ.MrAFXOeeaa9ggegoW4n7cfJns0Fb90."], ["created_at", "2018-12-07 02:09:11.681384"], ["updated_at", "2018-12-07 02:09:11.681384"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.683082"], ["updated_at", "2018-12-07 02:09:11.683082"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.684367"], ["updated_at", "2018-12-07 02:09:11.684367"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.685521"], ["updated_at", "2018-12-07 02:09:11.685521"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8554], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11419], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11419], ["room_id", 8554], ["created_at", "2018-12-07 02:09:11.688305"], ["updated_at", "2018-12-07 02:09:11.688305"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.689920"], ["last_sign_in_at", "2018-12-07 02:09:11.689920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.690280"], ["id", 11419]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wCl1b4Cxd/F5Q4ifCiOWme/ZuB9FgSqR7fM4ZHtFmrra6LJ35Tspu"], ["created_at", "2018-12-07 02:09:11.706751"], ["updated_at", "2018-12-07 02:09:11.706751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.708484"], ["updated_at", "2018-12-07 02:09:11.708484"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.709987"], ["updated_at", "2018-12-07 02:09:11.709987"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:09:11.711562"], ["updated_at", "2018-12-07 02:09:11.711562"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8557], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11420], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11420], ["room_id", 8557], ["created_at", "2018-12-07 02:09:11.714521"], ["updated_at", "2018-12-07 02:09:11.714521"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:09:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:09:11.716119"], ["last_sign_in_at", "2018-12-07 02:09:11.716119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:09:11.716480"], ["id", 11420]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5r7gDCs7omnS3k0fv2bGk.puc2UIc31QZPVstMYMVJKgYSPZuB27C"], ["created_at", "2018-12-07 02:18:42.532618"], ["updated_at", "2018-12-07 02:18:42.532618"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$d37/vmXFvBHDOK9qqi1L.OuO3uoxXAl1YCQZPWTQP6iY30IHPtwya"], ["created_at", "2018-12-07 02:18:42.537032"], ["updated_at", "2018-12-07 02:18:42.537032"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.544453"], ["updated_at", "2018-12-07 02:18:42.544453"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8560], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11422], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11422], ["room_id", 8560], ["created_at", "2018-12-07 02:18:42.563180"], ["updated_at", "2018-12-07 02:18:42.563180"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4461"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4461], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8560], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11422], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 124.3ms Sent mail to 123@123.com (5.4ms) Date: Fri, 07 Dec 2018 00:18:42 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d882ab018_510e2b21c7d8e5f013420@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d882aa1b6_510e2b21c7d8e5f01332d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d882aa1b6_510e2b21c7d8e5f01332d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d882aa1b6_510e2b21c7d8e5f01332d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d882aa1b6_510e2b21c7d8e5f01332d–

Completed 302 Found in 134ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2i2bBmBco7aqFk6t3G0VcemzWI0EwjoBqhYdt7fzGSL373uk/39Ga"], ["created_at", "2018-12-07 02:18:42.707273"], ["updated_at", "2018-12-07 02:18:42.707273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$guIQYGHp7Ob7SHvUCRH9oescG8SUPoKBoVJSc3odl6aU6HqmFd22u"], ["created_at", "2018-12-07 02:18:42.710382"], ["updated_at", "2018-12-07 02:18:42.710382"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.711705"], ["updated_at", "2018-12-07 02:18:42.711705"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8561], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11424], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11424], ["room_id", 8561], ["created_at", "2018-12-07 02:18:42.714329"], ["updated_at", "2018-12-07 02:18:42.714329"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4462"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4462], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8561], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11424], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:18:42.718688"], ["id", 4462]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:18:42 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d882b0728_510e2b21c7d8e5f0136b@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d882b0138_510e2b21c7d8e5f013550";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d882b0138_510e2b21c7d8e5f013550 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d882b0138_510e2b21c7d8e5f013550 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d882b0138_510e2b21c7d8e5f013550–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DsivVZDH4v7/9BFp123I1eHvPw4edhNYMmE.LhR8HfsKF5A56A0fW"], ["created_at", "2018-12-07 02:18:42.728343"], ["updated_at", "2018-12-07 02:18:42.728343"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$k3sPot1iPxBHsmhT5kViEu3fyyRjRNtFZNm7EGZzdwXtAdGcw0uTq"], ["created_at", "2018-12-07 02:18:42.731772"], ["updated_at", "2018-12-07 02:18:42.731772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.733422"], ["updated_at", "2018-12-07 02:18:42.733422"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8562], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11426], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11426], ["room_id", 8562], ["created_at", "2018-12-07 02:18:42.736969"], ["updated_at", "2018-12-07 02:18:42.736969"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1RUO7sN16mOrBf9TSiYZkOHawL8sQSOitRSgIoagSdixKPwGYx3fy"], ["created_at", "2018-12-07 02:18:42.743501"], ["updated_at", "2018-12-07 02:18:42.743501"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tWztA7ov6RiGglv7FDKPUuguH.10hMep/OmIIpQb477hnm2l/PW5a"], ["created_at", "2018-12-07 02:18:42.746713"], ["updated_at", "2018-12-07 02:18:42.746713"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.748261"], ["updated_at", "2018-12-07 02:18:42.748261"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8563], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11428], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11428], ["room_id", 8563], ["created_at", "2018-12-07 02:18:42.751243"], ["updated_at", "2018-12-07 02:18:42.751243"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4464], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$VXKLDHkvdv.pF2sym5UHfuOCBLjQ2e.Y4G0HDou.EpG8NJg7LepQG"], ["created_at", "2018-12-07 02:18:42.756485"], ["updated_at", "2018-12-07 02:18:42.756485"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11429"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "7qqG-v75Xg4GIxw0d_WIWQ"], ["updated_at", "2018-12-07 02:18:42.759717"], ["id", 11429]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:18:42.761238"], ["reset_sent_at", "2018-12-07 02:18:42.760904"], ["id", 11429]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.3ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:18:42 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d882bba46_510e2b21c7d8e5f0139ee@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d882bb469_510e2b21c7d8e5f013881";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d882bb469_510e2b21c7d8e5f013881 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/7qqG-v75Xg4GIxw0d_WIWQ/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d882bb469_510e2b21c7d8e5f013881 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/7qqG-v75Xg4GIxw0d_WIWQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d882bb469_510e2b21c7d8e5f013881–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$UcXuKZrrSdNz86pXsbIEZeCZE9EuPxmTH9T3BjqYbOsqu9kt.MJeK"], ["created_at", "2018-12-07 02:18:42.774287"], ["updated_at", "2018-12-07 02:18:42.774287"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$7K6asMTLcgZ0U75yUgX1juHB9XIa1djx85s1eiUIb6ApHeOHrNBFq"], ["created_at", "2018-12-07 02:18:42.781572"], ["updated_at", "2018-12-07 02:18:42.781572"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11431"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$Er1fTX1UiNvnFjU.qN8KH.USdRY6BoyPCTF0SoRRyJ3Ferh61ezqe"], ["updated_at", "2018-12-07 02:18:42.785529"], ["id", 11431]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$fLXP/KAd9i0/BYX8dkYZhOsYxd7GUsO2O08n5kSnY32g19i6zAfQ6"], ["created_at", "2018-12-07 02:18:42.790244"], ["updated_at", "2018-12-07 02:18:42.790244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11432"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$VttYv/.j57XeQQ3ZUQnehuaDfg34/WdOyPBZilkLGyYkAW9xvqyXW"], ["created_at", "2018-12-07 02:18:42.798209"], ["updated_at", "2018-12-07 02:18:42.798209"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11433"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$LZgrOj0bBLgQGSpPfNMmNOi8unlu6OWcT8.ptqYGEqsH3i6WrsG9K"], ["created_at", "2018-12-07 02:18:42.811449"], ["updated_at", "2018-12-07 02:18:42.811449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11434"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ZiWqDywn8yAL0ubdw6lOPe8UYur2nxY9UGyeicWg4GuxlwCmpAYiS"], ["created_at", "2018-12-07 02:18:42.819760"], ["updated_at", "2018-12-07 02:18:42.819760"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11435"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YqpvSVCATo4OJnpoYyKw3ukJZZIyXuWJNwf9d6pepgCMDezRQ.D0e"], ["created_at", "2018-12-07 02:18:42.827390"], ["updated_at", "2018-12-07 02:18:42.827390"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.0ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$POQJoKGIQ54A/P.aMh5E7uFUdFvR1Lkk1HN1Y1rT58L/zQCO18c/K"], ["created_at", "2018-12-07 02:18:42.834602"], ["updated_at", "2018-12-07 02:18:42.834602"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IzdMnJW.rWmRc.bu1ogoQ.QHqN0PcRUdHYCLPMhmhrGMM3jYQnrlu"], ["created_at", "2018-12-07 02:18:42.841555"], ["updated_at", "2018-12-07 02:18:42.841555"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.843078"], ["updated_at", "2018-12-07 02:18:42.843078"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8564], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11438], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11438], ["room_id", 8564], ["created_at", "2018-12-07 02:18:42.845903"], ["updated_at", "2018-12-07 02:18:42.845903"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ByQx7C5f1BZGxEAGTdBsGu0FUYAzEYV/S3eYS7e0izUwrbQ8OGOru"], ["created_at", "2018-12-07 02:18:42.852166"], ["updated_at", "2018-12-07 02:18:42.852166"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.853630"], ["updated_at", "2018-12-07 02:18:42.853630"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8565], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11439], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11439], ["room_id", 8565], ["created_at", "2018-12-07 02:18:42.856574"], ["updated_at", "2018-12-07 02:18:42.856574"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$be2q8s7.P0Yk3sy8mH5KqepA9Zwje9VDVG.5qh1k4ZIANec/royrG"], ["created_at", "2018-12-07 02:18:42.879483"], ["updated_at", "2018-12-07 02:18:42.879483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.881067"], ["updated_at", "2018-12-07 02:18:42.881067"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:42.887865"], ["last_sign_in_at", "2018-12-07 02:18:42.887865"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:42.888269"], ["id", 11440]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8566"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8566 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8566], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11440], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11440], ["room_id", 8566], ["created_at", "2018-12-07 02:18:42.896567"], ["updated_at", "2018-12-07 02:18:42.896567"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8566], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$b84pdmGxhDwIlc0y7RIz1.EQAOqn/wEymUTrHYfIVFxzcvRpl3yZK"], ["created_at", "2018-12-07 02:18:42.902513"], ["updated_at", "2018-12-07 02:18:42.902513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.904026"], ["updated_at", "2018-12-07 02:18:42.904026"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:42.905953"], ["last_sign_in_at", "2018-12-07 02:18:42.905953"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:42.906326"], ["id", 11441]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8567"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8567 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8567], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11441], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11441], ["room_id", 8567], ["created_at", "2018-12-07 02:18:42.910674"], ["updated_at", "2018-12-07 02:18:42.910674"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6XUHvri97ScgAubiN836gey1VPfe9x1wVCXaaqJnFlkZ/mGdJ3H6G"], ["created_at", "2018-12-07 02:18:42.916065"], ["updated_at", "2018-12-07 02:18:42.916065"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.917576"], ["updated_at", "2018-12-07 02:18:42.917576"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:42.919838"], ["last_sign_in_at", "2018-12-07 02:18:42.919838"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:42.920230"], ["id", 11442]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8568", "user_id"=>"11442"}
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8568 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8568], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11442], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11442], ["room_id", 8568], ["created_at", "2018-12-07 02:18:42.926071"], ["updated_at", "2018-12-07 02:18:42.926071"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8568", "user_id"=>"11442"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11442], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8568 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8568], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11442], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11442], ["room_id", 8568], ["created_at", "2018-12-07 02:18:42.933179"], ["updated_at", "2018-12-07 02:18:42.933179"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$klfHZGUfi16gnTNZan6lYeXSZ3jjIr7GSF8S7CAjox0yFzV6HZbsO"], ["created_at", "2018-12-07 02:18:42.946085"], ["updated_at", "2018-12-07 02:18:42.946085"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.947652"], ["updated_at", "2018-12-07 02:18:42.947652"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:42.949722"], ["last_sign_in_at", "2018-12-07 02:18:42.949722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:42.950122"], ["id", 11443]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8569", "user_id"=>"11443"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8569 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8569], ["LIMIT", 1]]
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11443], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11443], ["room_id", 8569], ["created_at", "2018-12-07 02:18:42.955643"], ["updated_at", "2018-12-07 02:18:42.955643"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8569", "user_id"=>"11443"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11443], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8569 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8569], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11443], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11443], ["room_id", 8569], ["created_at", "2018-12-07 02:18:42.962473"], ["updated_at", "2018-12-07 02:18:42.962473"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8569], ["user_id", 11443], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Bj.QdrQ3woZhJRj8RZ0M0evx/Jml1cge7XBNGTwqmNFHJAdJTdtDG"], ["created_at", "2018-12-07 02:18:42.968545"], ["updated_at", "2018-12-07 02:18:42.968545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.970096"], ["updated_at", "2018-12-07 02:18:42.970096"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:42.972276"], ["last_sign_in_at", "2018-12-07 02:18:42.972276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:42.972654"], ["id", 11444]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8570", "user_id"=>"11444"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8570 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8570], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11444], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11444], ["room_id", 8570], ["created_at", "2018-12-07 02:18:42.977034"], ["updated_at", "2018-12-07 02:18:42.977034"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8570", "user_id"=>"11444"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11444], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8570 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8570], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11444], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11444], ["room_id", 8570], ["created_at", "2018-12-07 02:18:42.983070"], ["updated_at", "2018-12-07 02:18:42.983070"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8570], ["user_id", 11444], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hUEo1a8MO8L2bbA3oZzKLuUyK4RcgZJtrsIdOguIKTROuN65d82bu"], ["created_at", "2018-12-07 02:18:42.989682"], ["updated_at", "2018-12-07 02:18:42.989682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:42.995816"], ["updated_at", "2018-12-07 02:18:42.995816"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:42 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:42.997814"], ["last_sign_in_at", "2018-12-07 02:18:42.997814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:42.998198"], ["id", 11445]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8571"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8571], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KKjdnceqHlsVewXilHecC.Dh38HDwa53nB8d24S8dUrzkubKZWBcC"], ["created_at", "2018-12-07 02:18:43.005400"], ["updated_at", "2018-12-07 02:18:43.005400"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.006925"], ["updated_at", "2018-12-07 02:18:43.006925"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.008715"], ["last_sign_in_at", "2018-12-07 02:18:43.008715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.009091"], ["id", 11446]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8572"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dnrb/bS8NPED37jRX4259uQ3HStrKLMF/jHTAF86aMwM6UQlhICiK"], ["created_at", "2018-12-07 02:18:43.016246"], ["updated_at", "2018-12-07 02:18:43.016246"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.018291"], ["updated_at", "2018-12-07 02:18:43.018291"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8573], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11447], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11447], ["room_id", 8573], ["created_at", "2018-12-07 02:18:43.021386"], ["updated_at", "2018-12-07 02:18:43.021386"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8573” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.023009"], ["last_sign_in_at", "2018-12-07 02:18:43.023009"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.023410"], ["id", 11447]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8573"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8573], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8573')
Rendered appointments/show.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 196ms (Views: 194.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r50YTL/lv6aTRTrPmGJgY.k9CGKGPiVclf6ITzyv9YgRFLxB3ZcWS"], ["created_at", "2018-12-07 02:18:43.226236"], ["updated_at", "2018-12-07 02:18:43.226236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.227951"], ["updated_at", "2018-12-07 02:18:43.227951"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8574], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11448], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11448], ["room_id", 8574], ["created_at", "2018-12-07 02:18:43.230869"], ["updated_at", "2018-12-07 02:18:43.230869"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4476/edit” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.232406"], ["last_sign_in_at", "2018-12-07 02:18:43.232406"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.232789"], ["id", 11448]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4476"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4476], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$UPGuf3qaeMAHlP5S0dMURurbPecYOnurCS678m8VBvNkmQAEqMTfG"], ["created_at", "2018-12-07 02:18:43.244182"], ["updated_at", "2018-12-07 02:18:43.244182"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.245854"], ["last_sign_in_at", "2018-12-07 02:18:43.245854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.246252"], ["id", 11449]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hpDCf2mmmWoYZMdZUX4.PefTEsocLqYA6PcRyMlwJ9iZyCrOFSdO2"], ["created_at", "2018-12-07 02:18:43.257030"], ["updated_at", "2018-12-07 02:18:43.257030"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.258646"], ["updated_at", "2018-12-07 02:18:43.258646"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8575], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11450], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11450], ["room_id", 8575], ["created_at", "2018-12-07 02:18:43.261547"], ["updated_at", "2018-12-07 02:18:43.261547"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8575], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11450], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11450], ["room_id", 8575], ["created_at", "2018-12-07 02:18:43.264315"], ["updated_at", "2018-12-07 02:18:43.264315"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.265806"], ["last_sign_in_at", "2018-12-07 02:18:43.265806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.266174"], ["id", 11450]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11450]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xTrI5M981uKLfGIquXa8CO4tsJZP2XtgpRBLpCHMurh0lRYsTXXe6"], ["created_at", "2018-12-07 02:18:43.280623"], ["updated_at", "2018-12-07 02:18:43.280623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.282481"], ["updated_at", "2018-12-07 02:18:43.282481"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8576], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11451], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11451], ["room_id", 8576], ["created_at", "2018-12-07 02:18:43.285975"], ["updated_at", "2018-12-07 02:18:43.285975"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8576], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11451], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11451], ["room_id", 8576], ["created_at", "2018-12-07 02:18:43.289301"], ["updated_at", "2018-12-07 02:18:43.289301"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.290870"], ["last_sign_in_at", "2018-12-07 02:18:43.290870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.291239"], ["id", 11451]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11451]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FyhqsdV1x9G8m/DZR7rxm.5ycJjU31e/b08JleUlIvXyrdORRH2Ku"], ["created_at", "2018-12-07 02:18:43.300372"], ["updated_at", "2018-12-07 02:18:43.300372"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.301950"], ["updated_at", "2018-12-07 02:18:43.301950"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8577], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11452], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11452], ["room_id", 8577], ["created_at", "2018-12-07 02:18:43.304764"], ["updated_at", "2018-12-07 02:18:43.304764"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4481” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.306291"], ["last_sign_in_at", "2018-12-07 02:18:43.306291"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.306657"], ["id", 11452]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4481"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4481], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4481]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hyXWyPYrgqZ5R8EudHgYIOD5esrI8yHygEkF3bGwuXdxThsYReyFG"], ["created_at", "2018-12-07 02:18:43.315673"], ["updated_at", "2018-12-07 02:18:43.315673"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.317467"], ["updated_at", "2018-12-07 02:18:43.317467"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vTjDA0EIzlTMun1gnMwWJOkonUACmtapNOPIdHvLOLnYaRioP2yU2"], ["created_at", "2018-12-07 02:18:43.320649"], ["updated_at", "2018-12-07 02:18:43.320649"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8578], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11454], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11454], ["room_id", 8578], ["created_at", "2018-12-07 02:18:43.323951"], ["updated_at", "2018-12-07 02:18:43.323951"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4482” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.325890"], ["last_sign_in_at", "2018-12-07 02:18:43.325890"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.326287"], ["id", 11453]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4482"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4482], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8578], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11454], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MMWagLu/DAWXXdPVPJmZqeLbrHQJ.ol4JfzlE2rrZSllCjCl2FNB6"], ["created_at", "2018-12-07 02:18:43.335681"], ["updated_at", "2018-12-07 02:18:43.335681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.337242"], ["updated_at", "2018-12-07 02:18:43.337242"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EjhHES9PCnjDHOSbv/yWLOGopC3fnS6uEA4QTk53s49fgiEmvWseG"], ["created_at", "2018-12-07 02:18:43.340453"], ["updated_at", "2018-12-07 02:18:43.340453"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8579], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11456], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11456], ["room_id", 8579], ["created_at", "2018-12-07 02:18:43.343396"], ["updated_at", "2018-12-07 02:18:43.343396"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4483” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.345414"], ["last_sign_in_at", "2018-12-07 02:18:43.345414"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.345813"], ["id", 11455]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4483"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4483], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8579], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11456], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KDzuLF.NDI43fblp6SGp/OPy2v8Gz3VygpAn.q0IzA1nB9fqbqJnm"], ["created_at", "2018-12-07 02:18:43.355335"], ["updated_at", "2018-12-07 02:18:43.355335"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.356931"], ["updated_at", "2018-12-07 02:18:43.356931"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EJeRnTCvdDxSX1563n/usO/u66QFdRADUpLOidwohY0sFUQyRP5u."], ["created_at", "2018-12-07 02:18:43.360209"], ["updated_at", "2018-12-07 02:18:43.360209"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8580], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11458], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11458], ["room_id", 8580], ["created_at", "2018-12-07 02:18:43.363250"], ["updated_at", "2018-12-07 02:18:43.363250"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4484” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.365112"], ["last_sign_in_at", "2018-12-07 02:18:43.365112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.365489"], ["id", 11457]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4484"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4484], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8580], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11458], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:18:43.369475"], ["id", 4484]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Fri, 07 Dec 2018 00:18:43 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d8835b1ee_510e2b21c7d8e5f014671@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d8835ac3f_510e2b21c7d8e5f0145cc";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d8835ac3f_510e2b21c7d8e5f0145cc Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d8835ac3f_510e2b21c7d8e5f0145cc Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d8835ac3f_510e2b21c7d8e5f0145cc–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NskSKGgZZwiRkHoHtBOeMu79qcZyb74bm1gMYuECKJOuKkl2.8PWC"], ["created_at", "2018-12-07 02:18:43.380088"], ["updated_at", "2018-12-07 02:18:43.380088"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.381812"], ["updated_at", "2018-12-07 02:18:43.381812"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$QX0npayy9Haj3tY84jDZpOfBIuKH.9EiAvylvvjGUQllp27ATJdXu"], ["created_at", "2018-12-07 02:18:43.385116"], ["updated_at", "2018-12-07 02:18:43.385116"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8581], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11460], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11460], ["room_id", 8581], ["created_at", "2018-12-07 02:18:43.388190"], ["updated_at", "2018-12-07 02:18:43.388190"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:18:43.389552"], ["id", 4485]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8581], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11460], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11460], ["room_id", 8581], ["created_at", "2018-12-07 02:18:43.392187"], ["updated_at", "2018-12-07 02:18:43.392187"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:18:43.393472"], ["id", 4486]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.394871"], ["last_sign_in_at", "2018-12-07 02:18:43.394871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.395244"], ["id", 11459]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11460], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8581], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11460], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8581], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TZM.szv3eRVvo4Jg2lh9Tue8onxFTTSbkt2.PBe5LN03ae/jdt/u2"], ["created_at", "2018-12-07 02:18:43.408010"], ["updated_at", "2018-12-07 02:18:43.408010"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.409930"], ["updated_at", "2018-12-07 02:18:43.409930"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$w/IeotKUITx31qCLlgA.W.hMFajs/wg5doLAcT6yp7sXdnSYPlgbi"], ["created_at", "2018-12-07 02:18:43.413645"], ["updated_at", "2018-12-07 02:18:43.413645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8582], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11462], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11462], ["room_id", 8582], ["created_at", "2018-12-07 02:18:43.416817"], ["updated_at", "2018-12-07 02:18:43.416817"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:18:43.418244"], ["id", 4487]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8582], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11462], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11462], ["room_id", 8582], ["created_at", "2018-12-07 02:18:43.420873"], ["updated_at", "2018-12-07 02:18:43.420873"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:18:43.422171"], ["id", 4488]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.423580"], ["last_sign_in_at", "2018-12-07 02:18:43.423580"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.423937"], ["id", 11461]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11462], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8582], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11462], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8582], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PbrKOh8QMhT.pjJkaRPS..xZxU/Tf70CS.wEYQ.bguODfv9zlQH2i"], ["created_at", "2018-12-07 02:18:43.435918"], ["updated_at", "2018-12-07 02:18:43.435918"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.437532"], ["last_sign_in_at", "2018-12-07 02:18:43.437532"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.437867"], ["id", 11463]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yJQm0qYV7XMP2rOY795Dg.Oz73YV8VxaQzTlG6S5Eb0ZXDGUR1bgW"], ["created_at", "2018-12-07 02:18:43.451376"], ["updated_at", "2018-12-07 02:18:43.451376"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.453024"], ["last_sign_in_at", "2018-12-07 02:18:43.453024"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.453375"], ["id", 11464]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v1ZPTDTACdhkfvN0LemcTerVqifSfzAoIUm/HS3qPBNBX15ds5k62"], ["created_at", "2018-12-07 02:18:43.459223"], ["updated_at", "2018-12-07 02:18:43.459223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.460758"], ["last_sign_in_at", "2018-12-07 02:18:43.460758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.461099"], ["id", 11465]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q2/vTVyCTpv2Eu9jhJk4mOdLCvZzxax3IB5Z8jnrnqcrPjiGcMrY6"], ["created_at", "2018-12-07 02:18:43.470391"], ["updated_at", "2018-12-07 02:18:43.470391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.472262"], ["last_sign_in_at", "2018-12-07 02:18:43.472262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.472654"], ["id", 11466]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AXfQZx87p5j1Pd/laFIwge2DcMUmlDLBVEsbUzgy1dC3GcmTu1WLe"], ["created_at", "2018-12-07 02:18:43.487168"], ["updated_at", "2018-12-07 02:18:43.487168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.488771"], ["updated_at", "2018-12-07 02:18:43.488771"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8583” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.490180"], ["last_sign_in_at", "2018-12-07 02:18:43.490180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.490573"], ["id", 11467]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8583"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8583], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KEucA6flg0ulTqMAHW4K7uahfbvNdNdaCgt/9aFuVSqpreL/UG0aS"], ["created_at", "2018-12-07 02:18:43.499283"], ["updated_at", "2018-12-07 02:18:43.499283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.500839"], ["updated_at", "2018-12-07 02:18:43.500839"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8584” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.502268"], ["last_sign_in_at", "2018-12-07 02:18:43.502268"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.502635"], ["id", 11468]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8584"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8584], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.509873"], ["updated_at", "2018-12-07 02:18:43.509873"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8585” for 127.0.0.1 at 2018-12-07 00:18:43 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8585"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zMUU4v.bPNqgOH8tuGMYiOsm02a8fQ01MfHdL6UbrqTG.4vnQhTJS"], ["created_at", "2018-12-07 02:18:43.516150"], ["updated_at", "2018-12-07 02:18:43.516150"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.517713"], ["updated_at", "2018-12-07 02:18:43.517713"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8586” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.519093"], ["last_sign_in_at", "2018-12-07 02:18:43.519093"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.519453"], ["id", 11469]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8586"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.527201"], ["updated_at", "2018-12-07 02:18:43.527201"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8587” for 127.0.0.1 at 2018-12-07 00:18:43 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8587"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yYlMfglICeWCmHXc8FxM5un9SYvA/QCHbhfa571mu7eOCEVPFVOSa"], ["created_at", "2018-12-07 02:18:43.533285"], ["updated_at", "2018-12-07 02:18:43.533285"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.534857"], ["updated_at", "2018-12-07 02:18:43.534857"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8588/edit” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.536487"], ["last_sign_in_at", "2018-12-07 02:18:43.536487"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.536923"], ["id", 11470]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8588"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8588], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5fT2lzkUq2jAbaqNvjyqNuVC9d5tCt5sHMVJ9T7x.H0zOvkGsc9am"], ["created_at", "2018-12-07 02:18:43.547647"], ["updated_at", "2018-12-07 02:18:43.547647"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.549079"], ["updated_at", "2018-12-07 02:18:43.549079"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8589/edit” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.550421"], ["last_sign_in_at", "2018-12-07 02:18:43.550421"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.550798"], ["id", 11471]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8589"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8589], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.558110"], ["updated_at", "2018-12-07 02:18:43.558110"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8590” for 127.0.0.1 at 2018-12-07 00:18:43 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8590"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WY0Gj2BcRgm29HlkYbhLG.m1Aty2Z9EgS0rbo/TDNu6Dp65xWAEmG"], ["created_at", "2018-12-07 02:18:43.564348"], ["updated_at", "2018-12-07 02:18:43.564348"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.566384"], ["last_sign_in_at", "2018-12-07 02:18:43.566384"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.566736"], ["id", 11472]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.569615"], ["updated_at", "2018-12-07 02:18:43.569615"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ML8cOH/nEp1nhSwvm.1qeSRmbMcU2ny5GDKvZP/pdfz35zlFXvOK"], ["created_at", "2018-12-07 02:18:43.576456"], ["updated_at", "2018-12-07 02:18:43.576456"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.578596"], ["last_sign_in_at", "2018-12-07 02:18:43.578596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.578999"], ["id", 11473]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.581353"], ["updated_at", "2018-12-07 02:18:43.581353"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sHSJpsECEnoI0ZzWHMHZQ.KL/pzt2zLig7qVPdKHGa2Phr0dPg3Q."], ["created_at", "2018-12-07 02:18:43.586380"], ["updated_at", "2018-12-07 02:18:43.586380"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.588344"], ["last_sign_in_at", "2018-12-07 02:18:43.588344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.588685"], ["id", 11474]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j2prcLE3cfVLGYvQqF99DO1u1yACpsqeTv6iHZv0o9.Nq3ukV05G."], ["created_at", "2018-12-07 02:18:43.595935"], ["updated_at", "2018-12-07 02:18:43.595935"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.597846"], ["last_sign_in_at", "2018-12-07 02:18:43.597846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.598187"], ["id", 11475]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DzyJZtDPiK.d/RHz11M88.tKwIS1hg7MNxXzvrwWMldM15SQKbw0G"], ["created_at", "2018-12-07 02:18:43.606554"], ["updated_at", "2018-12-07 02:18:43.606554"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.608621"], ["last_sign_in_at", "2018-12-07 02:18:43.608621"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.608983"], ["id", 11476]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$o0SYPAEHtLiSiUJB3IPHI.DC1WxSUYvlihSfUpe45MHWHhjvYRNLO"], ["created_at", "2018-12-07 02:18:43.614827"], ["updated_at", "2018-12-07 02:18:43.614827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.616359"], ["updated_at", "2018-12-07 02:18:43.616359"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8593” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.618069"], ["last_sign_in_at", "2018-12-07 02:18:43.618069"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.618441"], ["id", 11477]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8593"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8593], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:18:43.621264"], ["id", 8593]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8593 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FrXpQKtX/DFcyqXvf9FRQuvS5hKblpoCY/InhqWnySZwRLNs3Xroi"], ["created_at", "2018-12-07 02:18:43.626777"], ["updated_at", "2018-12-07 02:18:43.626777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.628335"], ["updated_at", "2018-12-07 02:18:43.628335"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8594” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.630111"], ["last_sign_in_at", "2018-12-07 02:18:43.630111"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.630502"], ["id", 11478]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8594"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8594], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:18:43.634252"], ["id", 8594]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8594 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mTWyprPmDmF92TYcBSTMP.7ruvqiXEh.mE0gls7lBqsNmxXdfmGLm"], ["created_at", "2018-12-07 02:18:43.639902"], ["updated_at", "2018-12-07 02:18:43.639902"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.641580"], ["updated_at", "2018-12-07 02:18:43.641580"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8595” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.643408"], ["last_sign_in_at", "2018-12-07 02:18:43.643408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.643843"], ["id", 11479]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8595"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8595], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3my7AAdNOEZeQp1Gq3vgiOtyWxcoYE/Dj04w2/TkPuFiOj3q0Ej06"], ["created_at", "2018-12-07 02:18:43.655099"], ["updated_at", "2018-12-07 02:18:43.655099"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.656819"], ["updated_at", "2018-12-07 02:18:43.656819"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8596” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.658622"], ["last_sign_in_at", "2018-12-07 02:18:43.658622"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.659058"], ["id", 11480]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8596"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8596], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uWh1Sa6951ARIXEgJa0ucuUC.YMv0c7cCm9FjZrt9NmeYuuSeyl.u"], ["created_at", "2018-12-07 02:18:43.671231"], ["updated_at", "2018-12-07 02:18:43.671231"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.673378"], ["last_sign_in_at", "2018-12-07 02:18:43.673378"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.673745"], ["id", 11481]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jQdKOhcYXnyplzLSJSkh8emCPKVYUIh10BFwICXotJRtkYcR63Mp6"], ["created_at", "2018-12-07 02:18:43.679845"], ["updated_at", "2018-12-07 02:18:43.679845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.681427"], ["updated_at", "2018-12-07 02:18:43.681427"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8597” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.682851"], ["last_sign_in_at", "2018-12-07 02:18:43.682851"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.683254"], ["id", 11482]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8597"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8597], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8597]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$K.8XVv.g1XcRI.RT6B.v4ObOKrZrFznVtRoT6PA5Le1XxCkiPK2Qm"], ["created_at", "2018-12-07 02:18:43.690710"], ["updated_at", "2018-12-07 02:18:43.690710"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.692241"], ["updated_at", "2018-12-07 02:18:43.692241"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8598” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.693611"], ["last_sign_in_at", "2018-12-07 02:18:43.693611"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.694047"], ["id", 11483]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8598"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8598], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8598]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$c2sS7KRwemvkkBLv6qCjRuxX1bJk7B9bYqQDNltel8T/wqmllGOee"], ["created_at", "2018-12-07 02:18:43.702872"], ["updated_at", "2018-12-07 02:18:43.702872"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.704453"], ["updated_at", "2018-12-07 02:18:43.704453"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8599” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.705879"], ["last_sign_in_at", "2018-12-07 02:18:43.705879"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.706287"], ["id", 11484]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8599"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UcR.Nj1fEB2bmlxrCKQVWOCMn4P6Wln261jZ9vRLhLk4rsMY7UcKK"], ["created_at", "2018-12-07 02:18:43.712396"], ["updated_at", "2018-12-07 02:18:43.712396"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.713882"], ["updated_at", "2018-12-07 02:18:43.713882"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8600” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.715234"], ["last_sign_in_at", "2018-12-07 02:18:43.715234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.715633"], ["id", 11485]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8600"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9M7HVsufVNLi6eU9fIM8KevmQ5hrtHNPQX0Mj49kIjfYuId25a6Ma"], ["created_at", "2018-12-07 02:18:43.721393"], ["updated_at", "2018-12-07 02:18:43.721393"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.722962"], ["last_sign_in_at", "2018-12-07 02:18:43.722962"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.723293"], ["id", 11486]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$30Wjuiw4/PolEZ7U9iIWnuKq3IcZXhiKw5NJKAScJwTC8146Ryuta"], ["created_at", "2018-12-07 02:18:43.735473"], ["updated_at", "2018-12-07 02:18:43.735473"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.737104"], ["updated_at", "2018-12-07 02:18:43.737104"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.738425"], ["updated_at", "2018-12-07 02:18:43.738425"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.739741"], ["updated_at", "2018-12-07 02:18:43.739741"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8601], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11487], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11487], ["room_id", 8601], ["created_at", "2018-12-07 02:18:43.742547"], ["updated_at", "2018-12-07 02:18:43.742547"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.744143"], ["last_sign_in_at", "2018-12-07 02:18:43.744143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.744498"], ["id", 11487]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D75yJDJtKPY9fdijC05oLOl9Bshl4fWjhvVpsYthe9lwM56kxsgsG"], ["created_at", "2018-12-07 02:18:43.761253"], ["updated_at", "2018-12-07 02:18:43.761253"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.763147"], ["updated_at", "2018-12-07 02:18:43.763147"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.764550"], ["updated_at", "2018-12-07 02:18:43.764550"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:43.765796"], ["updated_at", "2018-12-07 02:18:43.765796"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8604], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11488], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11488], ["room_id", 8604], ["created_at", "2018-12-07 02:18:43.768627"], ["updated_at", "2018-12-07 02:18:43.768627"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:18:43 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:43.770205"], ["last_sign_in_at", "2018-12-07 02:18:43.770205"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:43.770581"], ["id", 11488]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LWB6UTuRrs2hyrdZrLqr.O8EaFQm9RqxZ45HlS.V3hvWfvS256qgq"], ["created_at", "2018-12-07 02:18:51.112516"], ["updated_at", "2018-12-07 02:18:51.112516"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eFR8sW3.NZOP8UlrM300nult7bte66kv7AEFWZaeDQ3CKpHjSaMwC"], ["created_at", "2018-12-07 02:18:51.118204"], ["updated_at", "2018-12-07 02:18:51.118204"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.132857"], ["updated_at", "2018-12-07 02:18:51.132857"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.7ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8607], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11490], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11490], ["room_id", 8607], ["created_at", "2018-12-07 02:18:51.168153"], ["updated_at", "2018-12-07 02:18:51.168153"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4491"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4491], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8607], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11490], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 130.2ms Sent mail to 123@123.com (5.4ms) Date: Fri, 07 Dec 2018 00:18:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d88b4fab8_51322abeb50da60850966@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d88b4ec94_51322abeb50da6085089d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d88b4ec94_51322abeb50da6085089d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d88b4ec94_51322abeb50da6085089d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d88b4ec94_51322abeb50da6085089d–

Completed 302 Found in 151ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e9kcgkh7T.oQlXRC0TgyoOCZhXwk2L/ngsS38S/S9sAphBuALKS86"], ["created_at", "2018-12-07 02:18:51.333507"], ["updated_at", "2018-12-07 02:18:51.333507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$31zuRhRTH9Yc9CZj0MGxG.QDSaOh/elDPeQupC8cspO39aVZsnS/2"], ["created_at", "2018-12-07 02:18:51.336625"], ["updated_at", "2018-12-07 02:18:51.336625"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.337947"], ["updated_at", "2018-12-07 02:18:51.337947"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8608], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11492], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11492], ["room_id", 8608], ["created_at", "2018-12-07 02:18:51.340744"], ["updated_at", "2018-12-07 02:18:51.340744"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4492"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4492], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8608], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11492], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:18:51.345601"], ["id", 4492]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Fri, 07 Dec 2018 00:18:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d88b55552_51322abeb50da60851150@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d88b54fe0_51322abeb50da6085102d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d88b54fe0_51322abeb50da6085102d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d88b54fe0_51322abeb50da6085102d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d88b54fe0_51322abeb50da6085102d–

Completed 302 Found in 9ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pYbJTss4OC3r1FC0D2.SoeZS6/tPQZo8JtGeI/CAgs7cvsmwhQ8JW"], ["created_at", "2018-12-07 02:18:51.355031"], ["updated_at", "2018-12-07 02:18:51.355031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bQ0TB7yMQORvpRMjgtBBmOXeu89mbWV6k/o5aF.ItEzZQ1s7kclJm"], ["created_at", "2018-12-07 02:18:51.358415"], ["updated_at", "2018-12-07 02:18:51.358415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.360514"], ["updated_at", "2018-12-07 02:18:51.360514"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8609], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11494], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11494], ["room_id", 8609], ["created_at", "2018-12-07 02:18:51.363976"], ["updated_at", "2018-12-07 02:18:51.363976"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NKvy3W8sTf8C9k1hwQu0lud8VMDgGhQKianS1kjLvVdqKU5pH.A4m"], ["created_at", "2018-12-07 02:18:51.370573"], ["updated_at", "2018-12-07 02:18:51.370573"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kevPZFU5rUD9jSB9q0PbpOSC/Dpeu1dXqZN4j50NZbRi15wEKgSpq"], ["created_at", "2018-12-07 02:18:51.373677"], ["updated_at", "2018-12-07 02:18:51.373677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.375192"], ["updated_at", "2018-12-07 02:18:51.375192"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8610], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11496], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11496], ["room_id", 8610], ["created_at", "2018-12-07 02:18:51.378056"], ["updated_at", "2018-12-07 02:18:51.378056"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4494], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$l2TzQrE1X/87J0/mgPwkMurKasomSfMEi83r3iKI9DrMFhvyXljUu"], ["created_at", "2018-12-07 02:18:51.383173"], ["updated_at", "2018-12-07 02:18:51.383173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11497"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "HSlppccz2g6LADeTcS7_xw"], ["updated_at", "2018-12-07 02:18:51.386305"], ["id", 11497]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:18:51.387641"], ["reset_sent_at", "2018-12-07 02:18:51.387366"], ["id", 11497]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.3ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:18:51 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d88b60695_51322abeb50da608514f2@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d88b600be_51322abeb50da608513d3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d88b600be_51322abeb50da608513d3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/HSlppccz2g6LADeTcS7_xw/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d88b600be_51322abeb50da608513d3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/HSlppccz2g6LADeTcS7_xw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d88b600be_51322abeb50da608513d3–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$7Xq9PlgeCWrTBNUxfg9BGureExT.FS5Vi.gBkw1kedBL5mpJjC9Dm"], ["created_at", "2018-12-07 02:18:51.400574"], ["updated_at", "2018-12-07 02:18:51.400574"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$9Ok75Xn/7CicM8QgGd9aVemfwGLFHFO8Io2UzDUJqURqmu.vKLx3K"], ["created_at", "2018-12-07 02:18:51.407746"], ["updated_at", "2018-12-07 02:18:51.407746"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11499"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$mEZQMDi7N44gbnnNdvsQh./X/1yGGQ2zPsY8e/7JtRFWMzMqmGyEu"], ["updated_at", "2018-12-07 02:18:51.411657"], ["id", 11499]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$b9WwWMI4FpslbYSGs4Rxkezsa9yStZEsSyLDrWXNepnvUjWNocXZS"], ["created_at", "2018-12-07 02:18:51.416386"], ["updated_at", "2018-12-07 02:18:51.416386"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11500"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$kb7roiawi4ei0HpAhi0g1eyCa0gtrueWWO77lJ3Uv1hyvtxoN1ZKq"], ["created_at", "2018-12-07 02:18:51.424786"], ["updated_at", "2018-12-07 02:18:51.424786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11501"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$8QbObU07WOMSH9fuwb2Jh.rK/uCypc3a8LzFhj17HtHZFBvoyDFy6"], ["created_at", "2018-12-07 02:18:51.438237"], ["updated_at", "2018-12-07 02:18:51.438237"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11502"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$kPvXQDqDMRftdvS7WIwLQOaULQsl47XEwr2qdlAQTHdn/RgpcImDa"], ["created_at", "2018-12-07 02:18:51.446507"], ["updated_at", "2018-12-07 02:18:51.446507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11503"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ByU4vKrFDejLi0fNyc9I9uAxcfoU5XAdxI9jpWFyftfLfstb/8U8W"], ["created_at", "2018-12-07 02:18:51.454696"], ["updated_at", "2018-12-07 02:18:51.454696"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aie.TGLEYLjzlJTUhqDqPevq1S3N44CyMjd.WjQc42eZYyCX40sny"], ["created_at", "2018-12-07 02:18:51.461438"], ["updated_at", "2018-12-07 02:18:51.461438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F3ytYOi73.vii9BEqn7o2O1Z0A01lnPGou30gv7OezOFxnOM4H/KS"], ["created_at", "2018-12-07 02:18:51.468281"], ["updated_at", "2018-12-07 02:18:51.468281"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.469724"], ["updated_at", "2018-12-07 02:18:51.469724"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8611], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11506], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11506], ["room_id", 8611], ["created_at", "2018-12-07 02:18:51.472576"], ["updated_at", "2018-12-07 02:18:51.472576"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/GCRgCrJvr4bOXEdPlsM8e3qmq.D6K21iKovxT3fJMnl7xwwZgbR."], ["created_at", "2018-12-07 02:18:51.478747"], ["updated_at", "2018-12-07 02:18:51.478747"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.480230"], ["updated_at", "2018-12-07 02:18:51.480230"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8612], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11507], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11507], ["room_id", 8612], ["created_at", "2018-12-07 02:18:51.482992"], ["updated_at", "2018-12-07 02:18:51.482992"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.1ms)

UserMailer#status_notification: processed outbound mail in 2.1ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$i1nlDH1r5Wyo/DL0aMyHBuwbnuCs91Ku2/XHNsGnIPNPRkoG/3k1O"], ["created_at", "2018-12-07 02:18:51.505848"], ["updated_at", "2018-12-07 02:18:51.505848"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.507432"], ["updated_at", "2018-12-07 02:18:51.507432"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.514305"], ["last_sign_in_at", "2018-12-07 02:18:51.514305"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.514741"], ["id", 11508]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8613"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8613 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8613], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11508], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11508], ["room_id", 8613], ["created_at", "2018-12-07 02:18:51.523356"], ["updated_at", "2018-12-07 02:18:51.523356"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8613], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fydPZYaRErUQQR9z0/lrsuaJFYpopt0aYwEvOsYVm7tN.WvbxuTrS"], ["created_at", "2018-12-07 02:18:51.529519"], ["updated_at", "2018-12-07 02:18:51.529519"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.531156"], ["updated_at", "2018-12-07 02:18:51.531156"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.532997"], ["last_sign_in_at", "2018-12-07 02:18:51.532997"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.533386"], ["id", 11509]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8614"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8614 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8614], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11509], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11509], ["room_id", 8614], ["created_at", "2018-12-07 02:18:51.537770"], ["updated_at", "2018-12-07 02:18:51.537770"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p3kR5i877t1n/zZ1n6LH0uHRFJQzgwL01bmMAlTDhk3qXkPyXFk1m"], ["created_at", "2018-12-07 02:18:51.542954"], ["updated_at", "2018-12-07 02:18:51.542954"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.544423"], ["updated_at", "2018-12-07 02:18:51.544423"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.546597"], ["last_sign_in_at", "2018-12-07 02:18:51.546597"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.547012"], ["id", 11510]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8615", "user_id"=>"11510"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8615 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8615], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11510], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11510], ["room_id", 8615], ["created_at", "2018-12-07 02:18:51.552450"], ["updated_at", "2018-12-07 02:18:51.552450"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8615", "user_id"=>"11510"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11510], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8615 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8615], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11510], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11510], ["room_id", 8615], ["created_at", "2018-12-07 02:18:51.558719"], ["updated_at", "2018-12-07 02:18:51.558719"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6I/bT91/LZjgaWXlIfgnN.5hgCOSi6hDFFbKFUT7fSZlvuvFjkoj6"], ["created_at", "2018-12-07 02:18:51.563733"], ["updated_at", "2018-12-07 02:18:51.563733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.565277"], ["updated_at", "2018-12-07 02:18:51.565277"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.567385"], ["last_sign_in_at", "2018-12-07 02:18:51.567385"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.567752"], ["id", 11511]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8616", "user_id"=>"11511"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8616 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8616], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11511], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11511], ["room_id", 8616], ["created_at", "2018-12-07 02:18:51.572134"], ["updated_at", "2018-12-07 02:18:51.572134"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8616", "user_id"=>"11511"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11511], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8616 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8616], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11511], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11511], ["room_id", 8616], ["created_at", "2018-12-07 02:18:51.578046"], ["updated_at", "2018-12-07 02:18:51.578046"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8616], ["user_id", 11511], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cmBFrYC.WXbJwp9dPxnaI.arQ/IZTjPN97.S55NOaGTDTiUtNwvJ6"], ["created_at", "2018-12-07 02:18:51.585067"], ["updated_at", "2018-12-07 02:18:51.585067"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.586650"], ["updated_at", "2018-12-07 02:18:51.586650"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.588791"], ["last_sign_in_at", "2018-12-07 02:18:51.588791"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.589164"], ["id", 11512]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8617", "user_id"=>"11512"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8617 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8617], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11512], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11512], ["room_id", 8617], ["created_at", "2018-12-07 02:18:51.593566"], ["updated_at", "2018-12-07 02:18:51.593566"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8617", "user_id"=>"11512"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11512], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8617 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8617], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11512], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11512], ["room_id", 8617], ["created_at", "2018-12-07 02:18:51.599523"], ["updated_at", "2018-12-07 02:18:51.599523"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8617], ["user_id", 11512], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WFgrWCwBZdIoX1UNaEWnf.HrE65uaTImmjRkPrwkMNUcNnyBAHDu."], ["created_at", "2018-12-07 02:18:51.605092"], ["updated_at", "2018-12-07 02:18:51.605092"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.606631"], ["updated_at", "2018-12-07 02:18:51.606631"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.608425"], ["last_sign_in_at", "2018-12-07 02:18:51.608425"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.608790"], ["id", 11513]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8618"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8618], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$K/p7ni4HV.Wqdsip83IlKO5F/9rUFMR7GEK.oFRrsZLvFQz3XPx8m"], ["created_at", "2018-12-07 02:18:51.617418"], ["updated_at", "2018-12-07 02:18:51.617418"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.618999"], ["updated_at", "2018-12-07 02:18:51.618999"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.620842"], ["last_sign_in_at", "2018-12-07 02:18:51.620842"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.621205"], ["id", 11514]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8619"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$a7gVjBViyy46yOkUsyTzCOm4Ip/lpanaS1pSOuw4G4DqIe/6S2LgC"], ["created_at", "2018-12-07 02:18:51.627940"], ["updated_at", "2018-12-07 02:18:51.627940"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.629642"], ["updated_at", "2018-12-07 02:18:51.629642"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8620], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11515], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11515], ["room_id", 8620], ["created_at", "2018-12-07 02:18:51.632778"], ["updated_at", "2018-12-07 02:18:51.632778"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8620” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.634296"], ["last_sign_in_at", "2018-12-07 02:18:51.634296"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.634673"], ["id", 11515]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8620"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8620], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8620')
Rendered appointments/show.html.erb within layouts/application (7.0ms)
Rendered layouts/_header-user.html.erb (3.6ms)

Completed 200 OK in 152ms (Views: 150.2ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qFJHJm3y3ZjTSapwqQsrHONbkiCoc.vsmx1X0KeHv.pEAhWAw9hQK"], ["created_at", "2018-12-07 02:18:51.795352"], ["updated_at", "2018-12-07 02:18:51.795352"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.798447"], ["updated_at", "2018-12-07 02:18:51.798447"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8621], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11516], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11516], ["room_id", 8621], ["created_at", "2018-12-07 02:18:51.804295"], ["updated_at", "2018-12-07 02:18:51.804295"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4506/edit” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.808921"], ["last_sign_in_at", "2018-12-07 02:18:51.808921"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.809381"], ["id", 11516]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4506"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4506], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nhpYTo9riS8kNqmuW3eeSOuPDzdlF7RlxbJHh4ZWfGNoWa5aSR/PS"], ["created_at", "2018-12-07 02:18:51.831250"], ["updated_at", "2018-12-07 02:18:51.831250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.834029"], ["last_sign_in_at", "2018-12-07 02:18:51.834029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.834461"], ["id", 11517]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mSIPR9YYblc6pMgBibHgz.4ks6qMqS8I.6CgSx7UhUWeMBZG.zbja"], ["created_at", "2018-12-07 02:18:51.859465"], ["updated_at", "2018-12-07 02:18:51.859465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.862622"], ["updated_at", "2018-12-07 02:18:51.862622"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8622], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11518], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11518], ["room_id", 8622], ["created_at", "2018-12-07 02:18:51.868495"], ["updated_at", "2018-12-07 02:18:51.868495"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8622], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11518], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11518], ["room_id", 8622], ["created_at", "2018-12-07 02:18:51.873903"], ["updated_at", "2018-12-07 02:18:51.873903"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.876183"], ["last_sign_in_at", "2018-12-07 02:18:51.876183"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.877087"], ["id", 11518]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11518]]
Rendered appointments/my_appointments.html.erb within layouts/application (12.4ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 24ms (Views: 15.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$x.QWlXCaWgivsFhpUh9shODNOd8UpVSnVavpNGch0EeOnsKBUTJ/u"], ["created_at", "2018-12-07 02:18:51.908507"], ["updated_at", "2018-12-07 02:18:51.908507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.910457"], ["updated_at", "2018-12-07 02:18:51.910457"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8623], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11519], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11519], ["room_id", 8623], ["created_at", "2018-12-07 02:18:51.914463"], ["updated_at", "2018-12-07 02:18:51.914463"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8623], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11519], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11519], ["room_id", 8623], ["created_at", "2018-12-07 02:18:51.918580"], ["updated_at", "2018-12-07 02:18:51.918580"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.920422"], ["last_sign_in_at", "2018-12-07 02:18:51.920422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.920871"], ["id", 11519]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11519]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EaIkXxgJc2qvVNTfzlpqgen3U42rrAlOWkHLHMnZlG5VWMlVHom/W"], ["created_at", "2018-12-07 02:18:51.931249"], ["updated_at", "2018-12-07 02:18:51.931249"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.933073"], ["updated_at", "2018-12-07 02:18:51.933073"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8624], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11520], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11520], ["room_id", 8624], ["created_at", "2018-12-07 02:18:51.936245"], ["updated_at", "2018-12-07 02:18:51.936245"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4511” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.937850"], ["last_sign_in_at", "2018-12-07 02:18:51.937850"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.938255"], ["id", 11520]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4511"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4511], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4511]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yL3KH.ddoZnXR580kHSW2OGMDt3fWN8sb5vEwkT6lOIS5gJswp4D2"], ["created_at", "2018-12-07 02:18:51.947735"], ["updated_at", "2018-12-07 02:18:51.947735"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.949515"], ["updated_at", "2018-12-07 02:18:51.949515"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6GJQn2aKDVXc9esVEBEuVeKxyJMRPE0XXBKwbe64lOrD5g7bc7Eca"], ["created_at", "2018-12-07 02:18:51.952878"], ["updated_at", "2018-12-07 02:18:51.952878"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8625], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11522], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11522], ["room_id", 8625], ["created_at", "2018-12-07 02:18:51.956017"], ["updated_at", "2018-12-07 02:18:51.956017"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4512” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.957914"], ["last_sign_in_at", "2018-12-07 02:18:51.957914"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.958280"], ["id", 11521]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4512"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4512], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8625], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11522], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DlBYt/kvQ9cxmId4LLg2jez3f3QZInACuO/uFKWfykRmtKRrHUeXq"], ["created_at", "2018-12-07 02:18:51.967914"], ["updated_at", "2018-12-07 02:18:51.967914"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.969608"], ["updated_at", "2018-12-07 02:18:51.969608"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uhmEs6CQm4CJOIXF/2YMj.nvDvsvYCWuERLPwZd71D/xOGjT/1AQS"], ["created_at", "2018-12-07 02:18:51.972832"], ["updated_at", "2018-12-07 02:18:51.972832"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8626], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11524], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11524], ["room_id", 8626], ["created_at", "2018-12-07 02:18:51.975878"], ["updated_at", "2018-12-07 02:18:51.975878"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4513” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.978213"], ["last_sign_in_at", "2018-12-07 02:18:51.978213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.978808"], ["id", 11523]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4513"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4513], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8626], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11524], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U9qNmpbJPJW4t75gzRg0JOwC8wRg4l3JZR4XOnu61E40gFzISRg0G"], ["created_at", "2018-12-07 02:18:51.988224"], ["updated_at", "2018-12-07 02:18:51.988224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:51.989825"], ["updated_at", "2018-12-07 02:18:51.989825"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ANsudlteGP7lxwVUBcZVQ.6Np1ZN66ZREVi7vrhi/zOHAV3rvMDAy"], ["created_at", "2018-12-07 02:18:51.992928"], ["updated_at", "2018-12-07 02:18:51.992928"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8627], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11526], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11526], ["room_id", 8627], ["created_at", "2018-12-07 02:18:51.995899"], ["updated_at", "2018-12-07 02:18:51.995899"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4514” for 127.0.0.1 at 2018-12-07 00:18:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:51.997817"], ["last_sign_in_at", "2018-12-07 02:18:51.997817"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:51.998213"], ["id", 11525]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4514"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4514], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8627], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11526], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:18:52.002369"], ["id", 4514]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.5ms) Date: Fri, 07 Dec 2018 00:18:52 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d88c1870_51322abeb50da608521f5@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d88c1297_51322abeb50da6085203e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d88c1297_51322abeb50da6085203e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d88c1297_51322abeb50da6085203e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d88c1297_51322abeb50da6085203e–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IyDjUAMpHXcoug36jYUW6.brZCbJ6DCwed.f/QHcXX4FVlXG1ED4O"], ["created_at", "2018-12-07 02:18:52.013663"], ["updated_at", "2018-12-07 02:18:52.013663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.015358"], ["updated_at", "2018-12-07 02:18:52.015358"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vBf5RBrGU6qWA4d6.GKYw.HOayeQyGjW4lfs2vCLkBZxzYnOa2vpa"], ["created_at", "2018-12-07 02:18:52.018560"], ["updated_at", "2018-12-07 02:18:52.018560"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8628], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11528], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11528], ["room_id", 8628], ["created_at", "2018-12-07 02:18:52.021659"], ["updated_at", "2018-12-07 02:18:52.021659"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:18:52.023042"], ["id", 4515]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8628], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11528], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11528], ["room_id", 8628], ["created_at", "2018-12-07 02:18:52.025701"], ["updated_at", "2018-12-07 02:18:52.025701"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:18:52.026989"], ["id", 4516]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.028382"], ["last_sign_in_at", "2018-12-07 02:18:52.028382"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.028735"], ["id", 11527]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11528], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8628], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11528], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8628], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bqHhrtivTyDX8sV34FRhb.6OmXOAf9qeq2unFDegw8d4Nuv3KTDEi"], ["created_at", "2018-12-07 02:18:52.042076"], ["updated_at", "2018-12-07 02:18:52.042076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.043889"], ["updated_at", "2018-12-07 02:18:52.043889"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zcJK2yMcGIdtP2LW/28cTeU01wJlPMbfhSTGDOudNULNcX8eWu5kC"], ["created_at", "2018-12-07 02:18:52.047062"], ["updated_at", "2018-12-07 02:18:52.047062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8629], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11530], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11530], ["room_id", 8629], ["created_at", "2018-12-07 02:18:52.050079"], ["updated_at", "2018-12-07 02:18:52.050079"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:18:52.051486"], ["id", 4517]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8629], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11530], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11530], ["room_id", 8629], ["created_at", "2018-12-07 02:18:52.054069"], ["updated_at", "2018-12-07 02:18:52.054069"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:18:52.055336"], ["id", 4518]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.056726"], ["last_sign_in_at", "2018-12-07 02:18:52.056726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.057098"], ["id", 11529]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11530], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8629], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11530], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8629], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uKfn./.xQGoEuDb3aTZxsuiVya8qBR/nZi.Bm2/1IndBIbSf/Rqw6"], ["created_at", "2018-12-07 02:18:52.069308"], ["updated_at", "2018-12-07 02:18:52.069308"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.071162"], ["last_sign_in_at", "2018-12-07 02:18:52.071162"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.071534"], ["id", 11531]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$C1sJ6nprhVUkj7AGx6F.PO1xQfpn5FJischaWymu/Tbpjc1GiY01G"], ["created_at", "2018-12-07 02:18:52.085281"], ["updated_at", "2018-12-07 02:18:52.085281"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.086931"], ["last_sign_in_at", "2018-12-07 02:18:52.086931"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.087278"], ["id", 11532]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CPiJYDcplNjCL3TDc594VO8IZIm2ZLGyFcKBqIE5mmB/SnO4YDX/u"], ["created_at", "2018-12-07 02:18:52.093119"], ["updated_at", "2018-12-07 02:18:52.093119"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.094664"], ["last_sign_in_at", "2018-12-07 02:18:52.094664"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.094997"], ["id", 11533]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rhNVj5/Yr1uJhH4R0ZiCFOfvpxQw3uT4zFFqRMDtnHbu3Lk9gNG8q"], ["created_at", "2018-12-07 02:18:52.104937"], ["updated_at", "2018-12-07 02:18:52.104937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.106836"], ["last_sign_in_at", "2018-12-07 02:18:52.106836"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.107220"], ["id", 11534]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FhG8MTRtOi631ifSC853uuGAXrfZ579Zcuh6r1ORV/PC60l7TLvRq"], ["created_at", "2018-12-07 02:18:52.120982"], ["updated_at", "2018-12-07 02:18:52.120982"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.122576"], ["updated_at", "2018-12-07 02:18:52.122576"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8630” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.123968"], ["last_sign_in_at", "2018-12-07 02:18:52.123968"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.124331"], ["id", 11535]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8630"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8630], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kU7omzY3agejXT17J4q29ePN9KSJocjLhMgE4xztqDr0FSbS9RgPy"], ["created_at", "2018-12-07 02:18:52.133120"], ["updated_at", "2018-12-07 02:18:52.133120"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.135010"], ["updated_at", "2018-12-07 02:18:52.135010"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8631” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.136967"], ["last_sign_in_at", "2018-12-07 02:18:52.136967"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.137527"], ["id", 11536]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8631"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8631], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.144431"], ["updated_at", "2018-12-07 02:18:52.144431"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8632” for 127.0.0.1 at 2018-12-07 00:18:52 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8632"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$S0Rp8DpZY7CZoacOPLB4c.qJqXaAjSdZEVMq4bmZfoTh4gi7.Zlre"], ["created_at", "2018-12-07 02:18:52.150616"], ["updated_at", "2018-12-07 02:18:52.150616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.152244"], ["updated_at", "2018-12-07 02:18:52.152244"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8633” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.153694"], ["last_sign_in_at", "2018-12-07 02:18:52.153694"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.154112"], ["id", 11537]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8633"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.162074"], ["updated_at", "2018-12-07 02:18:52.162074"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8634” for 127.0.0.1 at 2018-12-07 00:18:52 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8634"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$v/K9a/PF8syj79z.muyTpuQx4Qr0ekf13x/llWQzKmssaO.x3jHOy"], ["created_at", "2018-12-07 02:18:52.168456"], ["updated_at", "2018-12-07 02:18:52.168456"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.170355"], ["updated_at", "2018-12-07 02:18:52.170355"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8635/edit” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.171943"], ["last_sign_in_at", "2018-12-07 02:18:52.171943"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.172344"], ["id", 11538]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8635"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8635], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JzNSh4DTUCM2hH/04NoPy.EgDYoa0uqnwbPNcZB6wXk3zkBkZLyra"], ["created_at", "2018-12-07 02:18:52.183312"], ["updated_at", "2018-12-07 02:18:52.183312"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.185097"], ["updated_at", "2018-12-07 02:18:52.185097"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8636/edit” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.186670"], ["last_sign_in_at", "2018-12-07 02:18:52.186670"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.187050"], ["id", 11539]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8636"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8636], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.194672"], ["updated_at", "2018-12-07 02:18:52.194672"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8637” for 127.0.0.1 at 2018-12-07 00:18:52 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8637"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VeJfW1d/NLMBjm1MeUqt4OR.hL9B8580Ku9CmnAQPFFN2ylOCGei2"], ["created_at", "2018-12-07 02:18:52.201440"], ["updated_at", "2018-12-07 02:18:52.201440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.203758"], ["last_sign_in_at", "2018-12-07 02:18:52.203758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.204115"], ["id", 11540]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.206677"], ["updated_at", "2018-12-07 02:18:52.206677"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MGHTU4LiTRzCRTbXMrWO/.m1102zKurADJNCnLodmT.oVhSOAeqDy"], ["created_at", "2018-12-07 02:18:52.212506"], ["updated_at", "2018-12-07 02:18:52.212506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.214540"], ["last_sign_in_at", "2018-12-07 02:18:52.214540"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.214953"], ["id", 11541]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.217391"], ["updated_at", "2018-12-07 02:18:52.217391"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U6sscxPC8VD8JcURH5GDWO6ZqjCA7M4X7de5.fDDXpIRu/t3q55y."], ["created_at", "2018-12-07 02:18:52.222545"], ["updated_at", "2018-12-07 02:18:52.222545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.224508"], ["last_sign_in_at", "2018-12-07 02:18:52.224508"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.224848"], ["id", 11542]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sULysp4AvlQIMlDFTr56i.usplrg6aHGBQoA1YLxBtkE.vwhJ6/je"], ["created_at", "2018-12-07 02:18:52.233125"], ["updated_at", "2018-12-07 02:18:52.233125"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.235365"], ["last_sign_in_at", "2018-12-07 02:18:52.235365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.235724"], ["id", 11543]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m0Avl7WreQBXOZtv9YYXHO0GcmGRE9UyWiE/624X7sl1U/8ZkupIu"], ["created_at", "2018-12-07 02:18:52.243374"], ["updated_at", "2018-12-07 02:18:52.243374"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.245343"], ["last_sign_in_at", "2018-12-07 02:18:52.245343"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.245681"], ["id", 11544]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JaJJvPdQvhzIaHMKU8kOne7.7dgcfFXk/.zpj5PIB/uMvXyVv2UqO"], ["created_at", "2018-12-07 02:18:52.251793"], ["updated_at", "2018-12-07 02:18:52.251793"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.253398"], ["updated_at", "2018-12-07 02:18:52.253398"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8640” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.255197"], ["last_sign_in_at", "2018-12-07 02:18:52.255197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.255615"], ["id", 11545]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8640"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8640], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:18:52.258633"], ["id", 8640]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8640 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.3ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hOX8o/4BMq73iVQFTl6Be.9wNTNlNtEvt16/k7rddtfvCi2/v0S86"], ["created_at", "2018-12-07 02:18:52.265142"], ["updated_at", "2018-12-07 02:18:52.265142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.267062"], ["updated_at", "2018-12-07 02:18:52.267062"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8641” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.269027"], ["last_sign_in_at", "2018-12-07 02:18:52.269027"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.269452"], ["id", 11546]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8641"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8641], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:18:52.272479"], ["id", 8641]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8641 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j.UCWeW50WMPg9COq1H19uWrFeqqAJnfYVAOmRgw1o3.o5oWliy.2"], ["created_at", "2018-12-07 02:18:52.278015"], ["updated_at", "2018-12-07 02:18:52.278015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.279563"], ["updated_at", "2018-12-07 02:18:52.279563"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8642” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.281289"], ["last_sign_in_at", "2018-12-07 02:18:52.281289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.281681"], ["id", 11547]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8642"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8642], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PY9ovSCGHqXwIhORMvQn1e5Uwz2Wbm4c.pTAUlh849vXcESHpoz1O"], ["created_at", "2018-12-07 02:18:52.293029"], ["updated_at", "2018-12-07 02:18:52.293029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.295309"], ["updated_at", "2018-12-07 02:18:52.295309"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8643” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.297444"], ["last_sign_in_at", "2018-12-07 02:18:52.297444"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.297901"], ["id", 11548]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8643"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8643], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EogUTmHJK2B9QVVkmYt52O1wgJgnlFva.TLNEe/3lcOfFVa9xN6f."], ["created_at", "2018-12-07 02:18:52.309243"], ["updated_at", "2018-12-07 02:18:52.309243"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.311345"], ["last_sign_in_at", "2018-12-07 02:18:52.311345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.311694"], ["id", 11549]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YuHeRVfVRI4WhlitoXK.feD6hY3xJrW3mJvZIUOlL1i.p2h.YwKya"], ["created_at", "2018-12-07 02:18:52.317530"], ["updated_at", "2018-12-07 02:18:52.317530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.319048"], ["updated_at", "2018-12-07 02:18:52.319048"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8644” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.320388"], ["last_sign_in_at", "2018-12-07 02:18:52.320388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.320739"], ["id", 11550]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8644"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8644], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8644]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BxVsz9qDc5hf/LqaBXy3OubokHgdIs9i0NhzUYVUkG7dHv31g6J2."], ["created_at", "2018-12-07 02:18:52.329202"], ["updated_at", "2018-12-07 02:18:52.329202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.331025"], ["updated_at", "2018-12-07 02:18:52.331025"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8645” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.332487"], ["last_sign_in_at", "2018-12-07 02:18:52.332487"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.332865"], ["id", 11551]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8645"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8645], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8645]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7tHEUScNmam7IyvcJQXY9utGKOZ9mNSbQkJX7I4P6JGVAL/tI5IV2"], ["created_at", "2018-12-07 02:18:52.340325"], ["updated_at", "2018-12-07 02:18:52.340325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.341918"], ["updated_at", "2018-12-07 02:18:52.341918"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8646” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.343344"], ["last_sign_in_at", "2018-12-07 02:18:52.343344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.343756"], ["id", 11552]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8646"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HLuGD.vR8TB3R4v6B0fOoeXZLBLhvlpe1AD64YWzOcXZDy5Q0ONQO"], ["created_at", "2018-12-07 02:18:52.349919"], ["updated_at", "2018-12-07 02:18:52.349919"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.351429"], ["updated_at", "2018-12-07 02:18:52.351429"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8647” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.352831"], ["last_sign_in_at", "2018-12-07 02:18:52.352831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.353239"], ["id", 11553]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8647"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h0AZFXPWNqhV3TGFeHEHj.MFjN.G57JjlZSRQB6eNUFlf4Xpx0Cru"], ["created_at", "2018-12-07 02:18:52.360169"], ["updated_at", "2018-12-07 02:18:52.360169"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.361987"], ["last_sign_in_at", "2018-12-07 02:18:52.361987"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.362336"], ["id", 11554]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$iyaX6otbYo8QP3EDMUQt9.1huDjJtVcLuB2jmNp3J3p2A2FuHtWMe"], ["created_at", "2018-12-07 02:18:52.374208"], ["updated_at", "2018-12-07 02:18:52.374208"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.375820"], ["updated_at", "2018-12-07 02:18:52.375820"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.376919"], ["updated_at", "2018-12-07 02:18:52.376919"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.378032"], ["updated_at", "2018-12-07 02:18:52.378032"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8648], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11555], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11555], ["room_id", 8648], ["created_at", "2018-12-07 02:18:52.380592"], ["updated_at", "2018-12-07 02:18:52.380592"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.382082"], ["last_sign_in_at", "2018-12-07 02:18:52.382082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.382400"], ["id", 11555]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qbXiIUGfiVuFQy1KASWX7enVDrUY1KwRQPBxMW7wqswRDCKj4Dtkm"], ["created_at", "2018-12-07 02:18:52.399697"], ["updated_at", "2018-12-07 02:18:52.399697"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.401277"], ["updated_at", "2018-12-07 02:18:52.401277"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.402658"], ["updated_at", "2018-12-07 02:18:52.402658"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:18:52.403895"], ["updated_at", "2018-12-07 02:18:52.403895"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8651], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11556], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11556], ["room_id", 8651], ["created_at", "2018-12-07 02:18:52.406716"], ["updated_at", "2018-12-07 02:18:52.406716"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:18:52 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:18:52.408287"], ["last_sign_in_at", "2018-12-07 02:18:52.408287"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:18:52.408656"], ["id", 11556]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EhwbJeY0krWhpz9zkhsE7eQkihCxNdihsO/cRUbocLLRX9hXYoUMW"], ["created_at", "2018-12-07 02:19:11.632929"], ["updated_at", "2018-12-07 02:19:11.632929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.7ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JtLW.XBAntVjah1T5nqYvuSWClI/ZMNZJP2jiUEwgApNNJWJA2Y9."], ["created_at", "2018-12-07 02:19:11.638148"], ["updated_at", "2018-12-07 02:19:11.638148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:11.652460"], ["updated_at", "2018-12-07 02:19:11.652460"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8654], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11558], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11558], ["room_id", 8654], ["created_at", "2018-12-07 02:19:11.685883"], ["updated_at", "2018-12-07 02:19:11.685883"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4521"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4521], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8654], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11558], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 130.8ms Sent mail to 123@123.com (5.4ms) Date: Fri, 07 Dec 2018 00:19:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d89fcec1d_51612b082b5a45e823a7@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d89fcddce_51612b082b5a45e822b6";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d89fcddce_51612b082b5a45e822b6 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d89fcddce_51612b082b5a45e822b6 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d89fcddce_51612b082b5a45e822b6–

Completed 302 Found in 152ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zFD9ntYPADyV5QJPxQxZP.ckVFlzLj0IzJxnM5Bc7XO.Jx35FzzIq"], ["created_at", "2018-12-07 02:19:11.854141"], ["updated_at", "2018-12-07 02:19:11.854141"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qz4tq84RRXqk1UAx4cGMlOYiyJyMeUo7R00MrWC4E3sIHsBIvTVCu"], ["created_at", "2018-12-07 02:19:11.857469"], ["updated_at", "2018-12-07 02:19:11.857469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:11.858842"], ["updated_at", "2018-12-07 02:19:11.858842"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8655], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11560], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11560], ["room_id", 8655], ["created_at", "2018-12-07 02:19:11.861724"], ["updated_at", "2018-12-07 02:19:11.861724"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4522"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4522], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8655], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11560], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:19:11.866184"], ["id", 4522]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:19:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d89fd4733_51612b082b5a45e8255a@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d89fd41af_51612b082b5a45e824ce";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d89fd41af_51612b082b5a45e824ce Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d89fd41af_51612b082b5a45e824ce Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d89fd41af_51612b082b5a45e824ce–

Completed 302 Found in 8ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W79plm4j9Do.a5MXcSxml.9xgecWv8bnLEQj5MFodXWjT0fSK4ZfG"], ["created_at", "2018-12-07 02:19:11.875641"], ["updated_at", "2018-12-07 02:19:11.875641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lUY5AFIyaM4nn7p7NDAcOOVoKSl2DcX5GryboWBfQePOeGYGDdfFG"], ["created_at", "2018-12-07 02:19:11.879037"], ["updated_at", "2018-12-07 02:19:11.879037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:11.880859"], ["updated_at", "2018-12-07 02:19:11.880859"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8656], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11562], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11562], ["room_id", 8656], ["created_at", "2018-12-07 02:19:11.884344"], ["updated_at", "2018-12-07 02:19:11.884344"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NGXsqIhl7HHDrFsRfJoM6eCfLKsp9bcPbGYXXI9/iouzAXAD6uQF2"], ["created_at", "2018-12-07 02:19:11.890764"], ["updated_at", "2018-12-07 02:19:11.890764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$08/s6ABlECIYI.QqwW0X4.cpz0bj54qeyMhVWrDQZCnfm0zepNhyO"], ["created_at", "2018-12-07 02:19:11.894000"], ["updated_at", "2018-12-07 02:19:11.894000"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:11.895384"], ["updated_at", "2018-12-07 02:19:11.895384"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8657], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11564], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11564], ["room_id", 8657], ["created_at", "2018-12-07 02:19:11.898127"], ["updated_at", "2018-12-07 02:19:11.898127"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4524], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$0VQYtdCdnraBTGLvS9.94erq0YaE6F4l1./ul2uB3rVUbH/Kp/KUG"], ["created_at", "2018-12-07 02:19:11.903066"], ["updated_at", "2018-12-07 02:19:11.903066"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11565"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "AlibqoCRz5fEXjWrahdhBg"], ["updated_at", "2018-12-07 02:19:11.906200"], ["id", 11565]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:19:11.907539"], ["reset_sent_at", "2018-12-07 02:19:11.907264"], ["id", 11565]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:19:11 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d89fdf4b6_51612b082b5a45e828d6@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d89fdeed8_51612b082b5a45e82764";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d89fdeed8_51612b082b5a45e82764 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/AlibqoCRz5fEXjWrahdhBg/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d89fdeed8_51612b082b5a45e82764 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/AlibqoCRz5fEXjWrahdhBg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d89fdeed8_51612b082b5a45e82764–

Redirected to test.host/login Completed 302 Found in 11ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$EkGbDRO4DpM9ogUWUmMYGu4W69NIU3I8vrykaRmFUqdHe76.OqMMW"], ["created_at", "2018-12-07 02:19:11.920381"], ["updated_at", "2018-12-07 02:19:11.920381"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$vqhfHsl4q90/t.Wmrk6PTujt8J0NbzOXBlgyVbV002nNxnoogFZzG"], ["created_at", "2018-12-07 02:19:11.927655"], ["updated_at", "2018-12-07 02:19:11.927655"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11567"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$c6vCY58w.Lxdf17PHKY95.4gwuQow3U5KYUTrQeupTeSECMmzYwCy"], ["updated_at", "2018-12-07 02:19:11.931708"], ["id", 11567]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$x4WpBNclBtIcXQGoq0qEkOV0EBf9JjwImFHmNrO.ZX98WtyzOvHSW"], ["created_at", "2018-12-07 02:19:11.936523"], ["updated_at", "2018-12-07 02:19:11.936523"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11568"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$NMyRozU1czm3WkhWRkh0We8.R2tEA618fvLSCudaVqbjRkpDplXb."], ["created_at", "2018-12-07 02:19:11.944361"], ["updated_at", "2018-12-07 02:19:11.944361"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11569"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$lCVd0EQAS0/UleclGtg/IumzIVzBzXuue12cmZsapDH190pIIPSNC"], ["created_at", "2018-12-07 02:19:11.957934"], ["updated_at", "2018-12-07 02:19:11.957934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11570"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$6QuIXWD6p2P0tQTfkeReM.7tDI25p0reRIzb5T7azAErclFOg9Si6"], ["created_at", "2018-12-07 02:19:11.966292"], ["updated_at", "2018-12-07 02:19:11.966292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11571"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JL2e46yD8qyDEVCwpVghBehEwXJRLN3UjK/4uo4gHUuEmNnj3gsZK"], ["created_at", "2018-12-07 02:19:11.973620"], ["updated_at", "2018-12-07 02:19:11.973620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KpZeBE8b5oIMg9Tx2Q16iOEvuvwxuXhuxlOTzBel.U2JCLo1eyMwC"], ["created_at", "2018-12-07 02:19:11.980881"], ["updated_at", "2018-12-07 02:19:11.980881"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Syyesx/9280krYvOOcir5eK5SvH5JNuCWk3REh9e5Br0CjR7k/HTe"], ["created_at", "2018-12-07 02:19:11.987890"], ["updated_at", "2018-12-07 02:19:11.987890"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:11.989454"], ["updated_at", "2018-12-07 02:19:11.989454"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8658], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11574], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11574], ["room_id", 8658], ["created_at", "2018-12-07 02:19:11.992371"], ["updated_at", "2018-12-07 02:19:11.992371"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$m6.3B83Y.LQs8RNtSFbCuee7rSukkzP92xilgkb4sEN8cgnZepqk2"], ["created_at", "2018-12-07 02:19:11.998584"], ["updated_at", "2018-12-07 02:19:11.998584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.000083"], ["updated_at", "2018-12-07 02:19:12.000083"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8659], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11575], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11575], ["room_id", 8659], ["created_at", "2018-12-07 02:19:12.003020"], ["updated_at", "2018-12-07 02:19:12.003020"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$b6x7lAHW6sWFrWhyDeUDvuBqtRkwiihQaDnwKjrKeDc6nhEyWzrcu"], ["created_at", "2018-12-07 02:19:12.025718"], ["updated_at", "2018-12-07 02:19:12.025718"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.027313"], ["updated_at", "2018-12-07 02:19:12.027313"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.034189"], ["last_sign_in_at", "2018-12-07 02:19:12.034189"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.034611"], ["id", 11576]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8660"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8660 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8660], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11576], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11576], ["room_id", 8660], ["created_at", "2018-12-07 02:19:12.042590"], ["updated_at", "2018-12-07 02:19:12.042590"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8660], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lF2V4ccDLw5WzCLbQr63f.esqz4/QhlS/6gmWvGdx9h5cAiLXbXf2"], ["created_at", "2018-12-07 02:19:12.048781"], ["updated_at", "2018-12-07 02:19:12.048781"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.050299"], ["updated_at", "2018-12-07 02:19:12.050299"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.052018"], ["last_sign_in_at", "2018-12-07 02:19:12.052018"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.052324"], ["id", 11577]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8661"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8661 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8661], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11577], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11577], ["room_id", 8661], ["created_at", "2018-12-07 02:19:12.056648"], ["updated_at", "2018-12-07 02:19:12.056648"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dTpruM1QC4EaNK4ZqnAUoeO38yRLjoFotLBS4VMStSp838XLm4LfS"], ["created_at", "2018-12-07 02:19:12.061517"], ["updated_at", "2018-12-07 02:19:12.061517"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.062868"], ["updated_at", "2018-12-07 02:19:12.062868"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.064894"], ["last_sign_in_at", "2018-12-07 02:19:12.064894"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.065211"], ["id", 11578]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8662", "user_id"=>"11578"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8662 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8662], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11578], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11578], ["room_id", 8662], ["created_at", "2018-12-07 02:19:12.069901"], ["updated_at", "2018-12-07 02:19:12.069901"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8662", "user_id"=>"11578"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11578], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8662 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8662], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11578], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11578], ["room_id", 8662], ["created_at", "2018-12-07 02:19:12.076571"], ["updated_at", "2018-12-07 02:19:12.076571"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jGqYTR.UtByrkCrcjnnlBOaJPRZKm2AbBwtyq4ZqWxdFxlZ4zfdC."], ["created_at", "2018-12-07 02:19:12.088872"], ["updated_at", "2018-12-07 02:19:12.088872"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.090473"], ["updated_at", "2018-12-07 02:19:12.090473"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.092615"], ["last_sign_in_at", "2018-12-07 02:19:12.092615"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.092970"], ["id", 11579]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8663", "user_id"=>"11579"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8663 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8663], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11579], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11579], ["room_id", 8663], ["created_at", "2018-12-07 02:19:12.097448"], ["updated_at", "2018-12-07 02:19:12.097448"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8663", "user_id"=>"11579"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11579], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8663 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8663], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11579], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11579], ["room_id", 8663], ["created_at", "2018-12-07 02:19:12.104683"], ["updated_at", "2018-12-07 02:19:12.104683"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8663], ["user_id", 11579], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nFuCDxBzzXlFS3kiH8HbzeSNV5FH8dXsy/XlDLTSBZ25wzfaRAcQC"], ["created_at", "2018-12-07 02:19:12.111027"], ["updated_at", "2018-12-07 02:19:12.111027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.112612"], ["updated_at", "2018-12-07 02:19:12.112612"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.114759"], ["last_sign_in_at", "2018-12-07 02:19:12.114759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.115161"], ["id", 11580]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8664", "user_id"=>"11580"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8664 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8664], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11580], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11580], ["room_id", 8664], ["created_at", "2018-12-07 02:19:12.119719"], ["updated_at", "2018-12-07 02:19:12.119719"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8664", "user_id"=>"11580"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11580], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8664 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8664], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11580], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11580], ["room_id", 8664], ["created_at", "2018-12-07 02:19:12.125695"], ["updated_at", "2018-12-07 02:19:12.125695"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8664], ["user_id", 11580], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1.4nZctBYrPHHf4lahaB6uGOEeORgBrRfRBJK8YGccNnOg7S9nkV."], ["created_at", "2018-12-07 02:19:12.131868"], ["updated_at", "2018-12-07 02:19:12.131868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.133880"], ["updated_at", "2018-12-07 02:19:12.133880"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.135987"], ["last_sign_in_at", "2018-12-07 02:19:12.135987"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.136377"], ["id", 11581]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8665"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8665], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JfcKNGWE1UrKx1vfznQdruZfT2QMUnJDT1VWQPKvTLkkiSy1TII.e"], ["created_at", "2018-12-07 02:19:12.143584"], ["updated_at", "2018-12-07 02:19:12.143584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.145139"], ["updated_at", "2018-12-07 02:19:12.145139"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.146997"], ["last_sign_in_at", "2018-12-07 02:19:12.146997"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.147399"], ["id", 11582]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8666"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tMBHGnv32skdHirLnxsQbuXJVHDKEPKu2lVSSuN7Zy6Agpw.OwmGC"], ["created_at", "2018-12-07 02:19:12.154280"], ["updated_at", "2018-12-07 02:19:12.154280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.155911"], ["updated_at", "2018-12-07 02:19:12.155911"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8667], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11583], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11583], ["room_id", 8667], ["created_at", "2018-12-07 02:19:12.158827"], ["updated_at", "2018-12-07 02:19:12.158827"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8667” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.160395"], ["last_sign_in_at", "2018-12-07 02:19:12.160395"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.160759"], ["id", 11583]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8667"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8667], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8667')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (3.1ms)

Completed 200 OK in 157ms (Views: 155.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$66xTjjQQw1Q.24AKQ9wbOu/EdbbFqdpAvywcaR6YEPp4ZPV3/8qYa"], ["created_at", "2018-12-07 02:19:12.328764"], ["updated_at", "2018-12-07 02:19:12.328764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.331697"], ["updated_at", "2018-12-07 02:19:12.331697"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8668], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11584], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11584], ["room_id", 8668], ["created_at", "2018-12-07 02:19:12.338036"], ["updated_at", "2018-12-07 02:19:12.338036"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4536/edit” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.341257"], ["last_sign_in_at", "2018-12-07 02:19:12.341257"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.341706"], ["id", 11584]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4536"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4536], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.6ms)

Completed 200 OK in 11ms (Views: 8.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TqaqwBWZ./KFA8PVL7DfQOvd4PYFcZGrUb8HeULfQ4TPG97I5TpyS"], ["created_at", "2018-12-07 02:19:12.362929"], ["updated_at", "2018-12-07 02:19:12.362929"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.366216"], ["last_sign_in_at", "2018-12-07 02:19:12.366216"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.366663"], ["id", 11585]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (3.8ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 15ms (Views: 14.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7D43T66I5iNfk805wcPPXufhTuJafeDzM/SQYQFhmOXz85vanj4zu"], ["created_at", "2018-12-07 02:19:12.392706"], ["updated_at", "2018-12-07 02:19:12.392706"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.395747"], ["updated_at", "2018-12-07 02:19:12.395747"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8669], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11586], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11586], ["room_id", 8669], ["created_at", "2018-12-07 02:19:12.401416"], ["updated_at", "2018-12-07 02:19:12.401416"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8669], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11586], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11586], ["room_id", 8669], ["created_at", "2018-12-07 02:19:12.406115"], ["updated_at", "2018-12-07 02:19:12.406115"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.408369"], ["last_sign_in_at", "2018-12-07 02:19:12.408369"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.409290"], ["id", 11586]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11586]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 5.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Sij9gbj/fik1KL9NARzeCeH1tS97PN/AGZotl08bS1riDaDUo3JWC"], ["created_at", "2018-12-07 02:19:12.438356"], ["updated_at", "2018-12-07 02:19:12.438356"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.440353"], ["updated_at", "2018-12-07 02:19:12.440353"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8670], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11587], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11587], ["room_id", 8670], ["created_at", "2018-12-07 02:19:12.444013"], ["updated_at", "2018-12-07 02:19:12.444013"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8670], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11587], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11587], ["room_id", 8670], ["created_at", "2018-12-07 02:19:12.448211"], ["updated_at", "2018-12-07 02:19:12.448211"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.450090"], ["last_sign_in_at", "2018-12-07 02:19:12.450090"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.450545"], ["id", 11587]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11587]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nYo.K0OFcwki/5TfH9DPAO62hwK5VbN0eRn5CqjHSXot/liITaTya"], ["created_at", "2018-12-07 02:19:12.461074"], ["updated_at", "2018-12-07 02:19:12.461074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.463052"], ["updated_at", "2018-12-07 02:19:12.463052"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8671], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11588], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11588], ["room_id", 8671], ["created_at", "2018-12-07 02:19:12.466496"], ["updated_at", "2018-12-07 02:19:12.466496"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4541” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.468091"], ["last_sign_in_at", "2018-12-07 02:19:12.468091"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.468460"], ["id", 11588]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4541"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4541], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4541]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7ex.WD0Cnw1EkbU7kuAIcecYUAWlbvUbcd6shfCQkO9eo6.XcMb7q"], ["created_at", "2018-12-07 02:19:12.478069"], ["updated_at", "2018-12-07 02:19:12.478069"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.480056"], ["updated_at", "2018-12-07 02:19:12.480056"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xgNkop5d/wgvJy7KJwsff.UlkF7G5/J8ZaoRAa0ADbqYHmKHNvikC"], ["created_at", "2018-12-07 02:19:12.483552"], ["updated_at", "2018-12-07 02:19:12.483552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8672], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11590], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11590], ["room_id", 8672], ["created_at", "2018-12-07 02:19:12.486795"], ["updated_at", "2018-12-07 02:19:12.486795"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4542” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.488745"], ["last_sign_in_at", "2018-12-07 02:19:12.488745"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.489150"], ["id", 11589]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4542"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4542], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8672], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11590], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n3BFbFsw7uMjJLf6lmatg.kdl/Llvu4o98.IBu0s/PQ16.4yMtEh6"], ["created_at", "2018-12-07 02:19:12.499138"], ["updated_at", "2018-12-07 02:19:12.499138"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.500872"], ["updated_at", "2018-12-07 02:19:12.500872"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$whUKG1qcOuI/5ALA3uHnCuQlzy36twDW/ipiFARZ4kQOom8q7rVT6"], ["created_at", "2018-12-07 02:19:12.504236"], ["updated_at", "2018-12-07 02:19:12.504236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8673], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11592], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11592], ["room_id", 8673], ["created_at", "2018-12-07 02:19:12.507396"], ["updated_at", "2018-12-07 02:19:12.507396"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4543” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.509837"], ["last_sign_in_at", "2018-12-07 02:19:12.509837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.510326"], ["id", 11591]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4543"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4543], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8673], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11592], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fDUw7WmBvuyxeCmetZkA5O6WVaYLj.BJ75nKSfdEMy/kxs3XE3Q4."], ["created_at", "2018-12-07 02:19:12.519545"], ["updated_at", "2018-12-07 02:19:12.519545"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.521126"], ["updated_at", "2018-12-07 02:19:12.521126"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$d7uWee2J3aoFCbjaG4dbluCK8u/wbZsdDmsaqef70uAPMiMETLntC"], ["created_at", "2018-12-07 02:19:12.524422"], ["updated_at", "2018-12-07 02:19:12.524422"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8674], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11594], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11594], ["room_id", 8674], ["created_at", "2018-12-07 02:19:12.527514"], ["updated_at", "2018-12-07 02:19:12.527514"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4544” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.529413"], ["last_sign_in_at", "2018-12-07 02:19:12.529413"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.529796"], ["id", 11593]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4544"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4544], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8674], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11594], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:19:12.533878"], ["id", 4544]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.6ms) Date: Fri, 07 Dec 2018 00:19:12 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d8a0834b8_51612b082b5a45e8354f@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d8a082ed9_51612b082b5a45e834d6";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d8a082ed9_51612b082b5a45e834d6 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d8a082ed9_51612b082b5a45e834d6 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d8a082ed9_51612b082b5a45e834d6–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rljc/3iki5b2bvjem8fxy.8q2Oss.a2bFPYgOX8IbcJ2zVfJ7n4gu"], ["created_at", "2018-12-07 02:19:12.545157"], ["updated_at", "2018-12-07 02:19:12.545157"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.547020"], ["updated_at", "2018-12-07 02:19:12.547020"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$WEXC.3CRdzZ2dKj/emYRo.vZjYs2HIKQkQk0BsP7C8M1uhjufzAju"], ["created_at", "2018-12-07 02:19:12.550309"], ["updated_at", "2018-12-07 02:19:12.550309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8675], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11596], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11596], ["room_id", 8675], ["created_at", "2018-12-07 02:19:12.553383"], ["updated_at", "2018-12-07 02:19:12.553383"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:19:12.554798"], ["id", 4545]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8675], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11596], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11596], ["room_id", 8675], ["created_at", "2018-12-07 02:19:12.557433"], ["updated_at", "2018-12-07 02:19:12.557433"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:19:12.558719"], ["id", 4546]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.560107"], ["last_sign_in_at", "2018-12-07 02:19:12.560107"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.560459"], ["id", 11595]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11596], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8675], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11596], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8675], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f4tLTNRq.fA1diVQ5AA4Ku7XmvfiOs7TDCJTX2meGJXre.DFts5dG"], ["created_at", "2018-12-07 02:19:12.574157"], ["updated_at", "2018-12-07 02:19:12.574157"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.576110"], ["updated_at", "2018-12-07 02:19:12.576110"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uWgz2purjgqn1/DR9oj3LeeatuVDZ6CeavyrX/DRJBWFdPUkTv5Ca"], ["created_at", "2018-12-07 02:19:12.579470"], ["updated_at", "2018-12-07 02:19:12.579470"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8676], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11598], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11598], ["room_id", 8676], ["created_at", "2018-12-07 02:19:12.582607"], ["updated_at", "2018-12-07 02:19:12.582607"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:19:12.584015"], ["id", 4547]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8676], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11598], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11598], ["room_id", 8676], ["created_at", "2018-12-07 02:19:12.586752"], ["updated_at", "2018-12-07 02:19:12.586752"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:19:12.588089"], ["id", 4548]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.589521"], ["last_sign_in_at", "2018-12-07 02:19:12.589521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.589894"], ["id", 11597]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11598], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8676], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11598], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8676], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aAuTEP6ayspktTSFVa0K7.R3hSJ1CHkrjkChLaGdZutcip/Q8szri"], ["created_at", "2018-12-07 02:19:12.602779"], ["updated_at", "2018-12-07 02:19:12.602779"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.604782"], ["last_sign_in_at", "2018-12-07 02:19:12.604782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.605161"], ["id", 11599]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vXKfQZMQSCJkPYPTj6x5U.1VhCLLaEEQyDBdLlv9BlPPu/LTRDGje"], ["created_at", "2018-12-07 02:19:12.618426"], ["updated_at", "2018-12-07 02:19:12.618426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.620247"], ["last_sign_in_at", "2018-12-07 02:19:12.620247"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.620594"], ["id", 11600]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zD51lgpEYEylQ/SVZuJbJ.13tPLeKFV0vYUYIX91f4o0lshxD.c/u"], ["created_at", "2018-12-07 02:19:12.626667"], ["updated_at", "2018-12-07 02:19:12.626667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.628247"], ["last_sign_in_at", "2018-12-07 02:19:12.628247"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.628590"], ["id", 11601]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PfDoPBueMFDxxT.BhqWhRuJ3YhybPsQZdY5EmbdWSVaBr044/LsGi"], ["created_at", "2018-12-07 02:19:12.638830"], ["updated_at", "2018-12-07 02:19:12.638830"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.640543"], ["last_sign_in_at", "2018-12-07 02:19:12.640543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.640917"], ["id", 11602]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ji4D9VcoDlH6flFOjwSc4ugOLzoMwZHh01Q8KHMAwEhvGX12XVMGK"], ["created_at", "2018-12-07 02:19:12.654819"], ["updated_at", "2018-12-07 02:19:12.654819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.656383"], ["updated_at", "2018-12-07 02:19:12.656383"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8677” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.657871"], ["last_sign_in_at", "2018-12-07 02:19:12.657871"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.658299"], ["id", 11603]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8677"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8677], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oEcu3HFvrBYeMXA9.SzkkOzxs6zf6VtGSVBjeE4xifIkVaoz1PMou"], ["created_at", "2018-12-07 02:19:12.667770"], ["updated_at", "2018-12-07 02:19:12.667770"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.669552"], ["updated_at", "2018-12-07 02:19:12.669552"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8678” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.671059"], ["last_sign_in_at", "2018-12-07 02:19:12.671059"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.671477"], ["id", 11604]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8678"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8678], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.677977"], ["updated_at", "2018-12-07 02:19:12.677977"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8679” for 127.0.0.1 at 2018-12-07 00:19:12 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8679"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sgiT9H0uWmGS4ilW4okPkOjmKfcQnZEo1/cank8oRbDkfUnsT7hp."], ["created_at", "2018-12-07 02:19:12.684217"], ["updated_at", "2018-12-07 02:19:12.684217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.685881"], ["updated_at", "2018-12-07 02:19:12.685881"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8680” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.687324"], ["last_sign_in_at", "2018-12-07 02:19:12.687324"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.687737"], ["id", 11605]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8680"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.695687"], ["updated_at", "2018-12-07 02:19:12.695687"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8681” for 127.0.0.1 at 2018-12-07 00:19:12 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8681"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1agJ5fOJtum3W3u0Usl2quMrGT6kwrBDOECnblLpZ5f4ii2ym9MfK"], ["created_at", "2018-12-07 02:19:12.702743"], ["updated_at", "2018-12-07 02:19:12.702743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.704393"], ["updated_at", "2018-12-07 02:19:12.704393"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8682/edit” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.705849"], ["last_sign_in_at", "2018-12-07 02:19:12.705849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.706239"], ["id", 11606]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8682"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8682], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JQjKKJYj1ErPMmhRR0WYEeAP0Uv/dHsSBC5rewxS75iEPtnM5gDKa"], ["created_at", "2018-12-07 02:19:12.716873"], ["updated_at", "2018-12-07 02:19:12.716873"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.718446"], ["updated_at", "2018-12-07 02:19:12.718446"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8683/edit” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.719926"], ["last_sign_in_at", "2018-12-07 02:19:12.719926"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.720288"], ["id", 11607]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8683"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8683], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.727988"], ["updated_at", "2018-12-07 02:19:12.727988"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8684” for 127.0.0.1 at 2018-12-07 00:19:12 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8684"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/Gwahf8mwMxPJtAZfFgwV.LZYoAXtjQn/IPyKJU9fhMBi4Z.vw..q"], ["created_at", "2018-12-07 02:19:12.735457"], ["updated_at", "2018-12-07 02:19:12.735457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.737730"], ["last_sign_in_at", "2018-12-07 02:19:12.737730"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.738082"], ["id", 11608]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.740626"], ["updated_at", "2018-12-07 02:19:12.740626"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M8JO1Nt/nRTmVsMKvYtDKeONkOl9gc3aeKpLinkuNM7LLG66rpBla"], ["created_at", "2018-12-07 02:19:12.746458"], ["updated_at", "2018-12-07 02:19:12.746458"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.748481"], ["last_sign_in_at", "2018-12-07 02:19:12.748481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.748822"], ["id", 11609]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.751209"], ["updated_at", "2018-12-07 02:19:12.751209"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PxSzcGhJmYmXIa8ZdzCPlOmUTVWThDfY3jsj27Uz1UsEmHhg9vS1C"], ["created_at", "2018-12-07 02:19:12.756377"], ["updated_at", "2018-12-07 02:19:12.756377"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.758403"], ["last_sign_in_at", "2018-12-07 02:19:12.758403"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.758727"], ["id", 11610]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.4ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0iRZHLv7lhmODcVIjVTvmOkJEpzt.rnbWk51oMelm8keRkBZ0yJM."], ["created_at", "2018-12-07 02:19:12.767408"], ["updated_at", "2018-12-07 02:19:12.767408"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.769501"], ["last_sign_in_at", "2018-12-07 02:19:12.769501"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.769862"], ["id", 11611]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yHxEhnU/A8FawwQNwBdac.rVVCXwtRCa8c0.YVWhaI8nisoBH9OiG"], ["created_at", "2018-12-07 02:19:12.777160"], ["updated_at", "2018-12-07 02:19:12.777160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.779193"], ["last_sign_in_at", "2018-12-07 02:19:12.779193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.779549"], ["id", 11612]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PZgmoo1GXoW3fqLDNqZZc.g.z5evtyvY8JasLzDAV.ZJ41MHb9vdi"], ["created_at", "2018-12-07 02:19:12.785498"], ["updated_at", "2018-12-07 02:19:12.785498"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.787037"], ["updated_at", "2018-12-07 02:19:12.787037"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8687” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.788786"], ["last_sign_in_at", "2018-12-07 02:19:12.788786"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.789149"], ["id", 11613]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8687"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8687], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:19:12.792227"], ["id", 8687]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8687 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Jpf03cFPTLY/zN/TEmzO.uRp0moFF.skaPgdBOjmYvLOAEmj4wTzK"], ["created_at", "2018-12-07 02:19:12.798973"], ["updated_at", "2018-12-07 02:19:12.798973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.800588"], ["updated_at", "2018-12-07 02:19:12.800588"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8688” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.802348"], ["last_sign_in_at", "2018-12-07 02:19:12.802348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.802803"], ["id", 11614]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8688"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8688], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:19:12.805867"], ["id", 8688]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8688 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$EPvpAIv92N/XI2qKa7IvTO4gzatQ5GXHdV73vr2dEyXMrZuQqeQjm"], ["created_at", "2018-12-07 02:19:12.811233"], ["updated_at", "2018-12-07 02:19:12.811233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.812884"], ["updated_at", "2018-12-07 02:19:12.812884"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8689” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.814689"], ["last_sign_in_at", "2018-12-07 02:19:12.814689"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.815127"], ["id", 11615]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8689"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8689], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pRGD.1dzloCUbF18BPjhlOGIDjQbZG1DTFE5LCdvQNwYDJAVQuJ.W"], ["created_at", "2018-12-07 02:19:12.827490"], ["updated_at", "2018-12-07 02:19:12.827490"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.829311"], ["updated_at", "2018-12-07 02:19:12.829311"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8690” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.831243"], ["last_sign_in_at", "2018-12-07 02:19:12.831243"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.831670"], ["id", 11616]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8690"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8690], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sMQp1/wm5io4HBk7a.mh/Oj/.qmMHm0m8TkvYokdVQagoFafuQqZO"], ["created_at", "2018-12-07 02:19:12.843033"], ["updated_at", "2018-12-07 02:19:12.843033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.845122"], ["last_sign_in_at", "2018-12-07 02:19:12.845122"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.845513"], ["id", 11617]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$E7OhrPGUjVDGaeoj0Y3qyuxGnL9Y8JQXDK3lvzMZkyQkjXXGRyKCu"], ["created_at", "2018-12-07 02:19:12.851534"], ["updated_at", "2018-12-07 02:19:12.851534"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.853061"], ["updated_at", "2018-12-07 02:19:12.853061"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8691” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.854635"], ["last_sign_in_at", "2018-12-07 02:19:12.854635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.855023"], ["id", 11618]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8691"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8691], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8691]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qShRJE9xtjKVxPoeTnOAueEAQ1bThzteAWccAQJyBMa/ziIXqr0gC"], ["created_at", "2018-12-07 02:19:12.863239"], ["updated_at", "2018-12-07 02:19:12.863239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.864787"], ["updated_at", "2018-12-07 02:19:12.864787"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8692” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.866169"], ["last_sign_in_at", "2018-12-07 02:19:12.866169"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.866542"], ["id", 11619]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8692"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8692], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8692]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VpeJt0AZx6ydD/Bet1uoxuksB/WZNeKfzPGeoyMSKeWfhk0aQpwRW"], ["created_at", "2018-12-07 02:19:12.873563"], ["updated_at", "2018-12-07 02:19:12.873563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.875098"], ["updated_at", "2018-12-07 02:19:12.875098"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8693” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.876462"], ["last_sign_in_at", "2018-12-07 02:19:12.876462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.876814"], ["id", 11620]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8693"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qXBaiLnIkxstPaDyqgxqo.zvW7jHnZ.RfnZiKl5crxJbMtbVX5Ec2"], ["created_at", "2018-12-07 02:19:12.882848"], ["updated_at", "2018-12-07 02:19:12.882848"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.884357"], ["updated_at", "2018-12-07 02:19:12.884357"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8694” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.885769"], ["last_sign_in_at", "2018-12-07 02:19:12.885769"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.886150"], ["id", 11621]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8694"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ntzd.uXq9sdjGVK57vXJ8eHmp1myGHTXiIA9RMey/hwbay1EQWZ0."], ["created_at", "2018-12-07 02:19:12.892773"], ["updated_at", "2018-12-07 02:19:12.892773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.894384"], ["last_sign_in_at", "2018-12-07 02:19:12.894384"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.894723"], ["id", 11622]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4nv53ugrfhUqwZKFQigGaOOWQHPysb2w6hH1YQg3Ak.r4N6i5UecG"], ["created_at", "2018-12-07 02:19:12.905946"], ["updated_at", "2018-12-07 02:19:12.905946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.907426"], ["updated_at", "2018-12-07 02:19:12.907426"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.908593"], ["updated_at", "2018-12-07 02:19:12.908593"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.909670"], ["updated_at", "2018-12-07 02:19:12.909670"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8695], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11623], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11623], ["room_id", 8695], ["created_at", "2018-12-07 02:19:12.912342"], ["updated_at", "2018-12-07 02:19:12.912342"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.913889"], ["last_sign_in_at", "2018-12-07 02:19:12.913889"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.914221"], ["id", 11623]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cTfU0/9kmIAKmWvSgU8Z7.XZwV9MDlyj/OIT0pzmyxIdVPv3Fzmw6"], ["created_at", "2018-12-07 02:19:12.931009"], ["updated_at", "2018-12-07 02:19:12.931009"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.932519"], ["updated_at", "2018-12-07 02:19:12.932519"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.933658"], ["updated_at", "2018-12-07 02:19:12.933658"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:19:12.934857"], ["updated_at", "2018-12-07 02:19:12.934857"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8698], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11624], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11624], ["room_id", 8698], ["created_at", "2018-12-07 02:19:12.937496"], ["updated_at", "2018-12-07 02:19:12.937496"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:19:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:19:12.938994"], ["last_sign_in_at", "2018-12-07 02:19:12.938994"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:19:12.939322"], ["id", 11624]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L4yU6lfZjVE9mcth53zrRednWEms4DQaxH7T5Xcfu1irm96vH72WS"], ["created_at", "2018-12-07 02:20:50.673661"], ["updated_at", "2018-12-07 02:20:50.673661"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RniJjmxvAjnddJrUhPXfNOa5ozMIfUsMOWBWJrrIa7tan7ppWGYYa"], ["created_at", "2018-12-07 02:20:50.677971"], ["updated_at", "2018-12-07 02:20:50.677971"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:50.685359"], ["updated_at", "2018-12-07 02:20:50.685359"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8701], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11626], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11626], ["room_id", 8701], ["created_at", "2018-12-07 02:20:50.704153"], ["updated_at", "2018-12-07 02:20:50.704153"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4551"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4551], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8701], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11626], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 118.8ms Sent mail to 123@123.com (5.3ms) Date: Fri, 07 Dec 2018 00:20:50 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d902cc05c_51a92ae6fd8106006871b@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d902cb283_51a92ae6fd81060068666";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d902cb283_51a92ae6fd81060068666 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d902cb283_51a92ae6fd81060068666 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d902cb283_51a92ae6fd81060068666–

Completed 302 Found in 128ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tTJWLGEVXMq1xsvGfUJiQu.AdT8kSY1MXxSYEOlFW0XbN6oT6dIxm"], ["created_at", "2018-12-07 02:20:50.842478"], ["updated_at", "2018-12-07 02:20:50.842478"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1BEsj7RUCiFZjvdiJp8MT.GEQ2WrB7f7N.tJZKpZNNsF7gIF7ICg."], ["created_at", "2018-12-07 02:20:50.845461"], ["updated_at", "2018-12-07 02:20:50.845461"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:50.846839"], ["updated_at", "2018-12-07 02:20:50.846839"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8702], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11628], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11628], ["room_id", 8702], ["created_at", "2018-12-07 02:20:50.849433"], ["updated_at", "2018-12-07 02:20:50.849433"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4552"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4552], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8702], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11628], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:20:50.853717"], ["id", 4552]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:20:50 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d902d159b_51a92ae6fd81060068974@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d902d1055_51a92ae6fd810600688e8";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d902d1055_51a92ae6fd810600688e8 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d902d1055_51a92ae6fd810600688e8 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d902d1055_51a92ae6fd810600688e8–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bL0TL/DBUz9Wbs5BTACeceXRYdFieYzFZkiEKY.OQejYIywSdqHZe"], ["created_at", "2018-12-07 02:20:50.863073"], ["updated_at", "2018-12-07 02:20:50.863073"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3J7zF.u3e2cz0XtoXv/3v.q1txb3IVWGzlOXU4QdMqk7gS3X34Nr6"], ["created_at", "2018-12-07 02:20:50.866364"], ["updated_at", "2018-12-07 02:20:50.866364"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:50.867992"], ["updated_at", "2018-12-07 02:20:50.867992"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8703], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11630], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11630], ["room_id", 8703], ["created_at", "2018-12-07 02:20:50.871679"], ["updated_at", "2018-12-07 02:20:50.871679"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XCSSeSfDhJwlij9S4xvScOLN4GDGF3qYZJ7eG.h2W.s3z1TXv29/S"], ["created_at", "2018-12-07 02:20:50.878535"], ["updated_at", "2018-12-07 02:20:50.878535"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sf68ewRrqRX9DIBwafPCCOfk3CBawZ8r1wMPeEgoc.qrPiHH0s6c."], ["created_at", "2018-12-07 02:20:50.881684"], ["updated_at", "2018-12-07 02:20:50.881684"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:50.883261"], ["updated_at", "2018-12-07 02:20:50.883261"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8704], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11632], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11632], ["room_id", 8704], ["created_at", "2018-12-07 02:20:50.886187"], ["updated_at", "2018-12-07 02:20:50.886187"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4554], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$5nvWhAYg4hNkx8kiRG61Su2XUbVduNE1FAFt9448L3ZCxQ7sd8v62"], ["created_at", "2018-12-07 02:20:50.891552"], ["updated_at", "2018-12-07 02:20:50.891552"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11633"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "FHc0xJSm9M9bUzXaoIN7_A"], ["updated_at", "2018-12-07 02:20:50.894779"], ["id", 11633]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:20:50.896308"], ["reset_sent_at", "2018-12-07 02:20:50.895984"], ["id", 11633]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.3ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:20:50 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d902dc998_51a92ae6fd810600692af@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d902dc39d_51a92ae6fd810600691a5";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d902dc39d_51a92ae6fd810600691a5 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/FHc0xJSm9M9bUzXaoIN7_A/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d902dc39d_51a92ae6fd810600691a5 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/FHc0xJSm9M9bUzXaoIN7_A/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d902dc39d_51a92ae6fd810600691a5–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$H4dzKgOWwTdfZYsL5c63Qe1BetckfF320QULimXVzC3zS634/8mH6"], ["created_at", "2018-12-07 02:20:50.909321"], ["updated_at", "2018-12-07 02:20:50.909321"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$.H8wEHwE1Hw4g7KqDRO/0OkfWQyfkoHPzXUOxVjTb/9FhPquLCFDK"], ["created_at", "2018-12-07 02:20:50.916620"], ["updated_at", "2018-12-07 02:20:50.916620"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11635"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$aZ5Hz8pvzq5buWtXdzuuEu7QcysJvu1bFxFjYIstuJWx/7vHwD8qm"], ["updated_at", "2018-12-07 02:20:50.920622"], ["id", 11635]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CzmdzKI9TaHkEhP5q1JeWeWW51UyhJKJNPHoSUKEF0mzNfFAfkDl2"], ["created_at", "2018-12-07 02:20:50.925469"], ["updated_at", "2018-12-07 02:20:50.925469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11636"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$13NiRWgTXIf9CpJbdFwtnuQ/U5K2YKF2uc56AeqYyNNmlMREkW2lu"], ["created_at", "2018-12-07 02:20:50.933389"], ["updated_at", "2018-12-07 02:20:50.933389"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11637"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$sypVlZYUoy8V52gBu0NjQeqXTxuUY.JdU2I1wQqUqD.RQOLQDFUQa"], ["created_at", "2018-12-07 02:20:50.946792"], ["updated_at", "2018-12-07 02:20:50.946792"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11638"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CV4OrkZ0Mv8YemWQWECoOePVKlETmD7fNIVgVdfBKgvMebHFy6mAS"], ["created_at", "2018-12-07 02:20:50.955060"], ["updated_at", "2018-12-07 02:20:50.955060"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11639"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$b65GPZPTy.btlFc.XDsm9ulvC.5PH/gN/fy7L8ftTzWHsWAaTQVXK"], ["created_at", "2018-12-07 02:20:50.962642"], ["updated_at", "2018-12-07 02:20:50.962642"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fmcCYrMkcghySSCAmwIF9eNdXcaoCT9OJ.cLwNINtHsc7Nwd0SFG2"], ["created_at", "2018-12-07 02:20:50.970115"], ["updated_at", "2018-12-07 02:20:50.970115"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8waSP2LDpd/sQcj9nWR9c.Cf89sxlotgq90FXgAQp.45QmkMdR1Uy"], ["created_at", "2018-12-07 02:20:50.977103"], ["updated_at", "2018-12-07 02:20:50.977103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:50.978693"], ["updated_at", "2018-12-07 02:20:50.978693"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8705], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11642], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11642], ["room_id", 8705], ["created_at", "2018-12-07 02:20:50.981500"], ["updated_at", "2018-12-07 02:20:50.981500"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Hi4KqZ1VONYBG9eM37.rRuX5G3nxD1xjatvmHo73f6u4534vR/pvq"], ["created_at", "2018-12-07 02:20:50.987738"], ["updated_at", "2018-12-07 02:20:50.987738"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:50.989253"], ["updated_at", "2018-12-07 02:20:50.989253"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8706], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11643], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11643], ["room_id", 8706], ["created_at", "2018-12-07 02:20:50.992016"], ["updated_at", "2018-12-07 02:20:50.992016"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.1ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sGlVF8RytQrn59SYwWTiSetGkGk5hNTARzMC.PidHc6xnJIcNuchO"], ["created_at", "2018-12-07 02:20:51.015101"], ["updated_at", "2018-12-07 02:20:51.015101"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.016670"], ["updated_at", "2018-12-07 02:20:51.016670"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.023522"], ["last_sign_in_at", "2018-12-07 02:20:51.023522"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.023949"], ["id", 11644]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8707"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8707], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11644], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11644], ["room_id", 8707], ["created_at", "2018-12-07 02:20:51.031760"], ["updated_at", "2018-12-07 02:20:51.031760"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8707], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8rcuXoee2kNHqXC2icfAzOwdQ0d4Q/73JUghxTtKwljnGICN24AGm"], ["created_at", "2018-12-07 02:20:51.037901"], ["updated_at", "2018-12-07 02:20:51.037901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.039523"], ["updated_at", "2018-12-07 02:20:51.039523"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.041474"], ["last_sign_in_at", "2018-12-07 02:20:51.041474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.041830"], ["id", 11645]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8708"}
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8708], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11645], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11645], ["room_id", 8708], ["created_at", "2018-12-07 02:20:51.045700"], ["updated_at", "2018-12-07 02:20:51.045700"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MAfkO3flYkBCgxoEvur4LejZiTYhketitLwoGzQ21G7ngJA8K5qYq"], ["created_at", "2018-12-07 02:20:51.050828"], ["updated_at", "2018-12-07 02:20:51.050828"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.052431"], ["updated_at", "2018-12-07 02:20:51.052431"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.054757"], ["last_sign_in_at", "2018-12-07 02:20:51.054757"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.055201"], ["id", 11646]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8709", "user_id"=>"11646"}
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8709], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11646], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11646], ["room_id", 8709], ["created_at", "2018-12-07 02:20:51.060245"], ["updated_at", "2018-12-07 02:20:51.060245"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8709", "user_id"=>"11646"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11646], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8709], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11646], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11646], ["room_id", 8709], ["created_at", "2018-12-07 02:20:51.066738"], ["updated_at", "2018-12-07 02:20:51.066738"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RbrC.kUN3Nl5.uvwQEdkU.5xVLneNQc/Vw5QqGv9zT0oa6OZJw.Hq"], ["created_at", "2018-12-07 02:20:51.071846"], ["updated_at", "2018-12-07 02:20:51.071846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.073508"], ["updated_at", "2018-12-07 02:20:51.073508"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.075890"], ["last_sign_in_at", "2018-12-07 02:20:51.075890"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.076337"], ["id", 11647]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8710", "user_id"=>"11647"}
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8710], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11647], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11647], ["room_id", 8710], ["created_at", "2018-12-07 02:20:51.080402"], ["updated_at", "2018-12-07 02:20:51.080402"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8710", "user_id"=>"11647"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11647], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8710], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11647], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11647], ["room_id", 8710], ["created_at", "2018-12-07 02:20:51.085714"], ["updated_at", "2018-12-07 02:20:51.085714"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8710], ["user_id", 11647], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gdQoGIRYQY/oVAkoybp0zODTXw.egMuVgQV84E36B.p6b0ovp.EzC"], ["created_at", "2018-12-07 02:20:51.099984"], ["updated_at", "2018-12-07 02:20:51.099984"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.101579"], ["updated_at", "2018-12-07 02:20:51.101579"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.103760"], ["last_sign_in_at", "2018-12-07 02:20:51.103760"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.104133"], ["id", 11648]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8711", "user_id"=>"11648"}
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8711], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11648], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11648], ["room_id", 8711], ["created_at", "2018-12-07 02:20:51.107990"], ["updated_at", "2018-12-07 02:20:51.107990"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8711", "user_id"=>"11648"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11648], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8711], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11648], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11648], ["room_id", 8711], ["created_at", "2018-12-07 02:20:51.113538"], ["updated_at", "2018-12-07 02:20:51.113538"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8711], ["user_id", 11648], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FVYWjb/vFXcd4EgTno0zdu824T2qwTmMRhKRVOE.SYBvNJOD0ibM."], ["created_at", "2018-12-07 02:20:51.119332"], ["updated_at", "2018-12-07 02:20:51.119332"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.121611"], ["updated_at", "2018-12-07 02:20:51.121611"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.128140"], ["last_sign_in_at", "2018-12-07 02:20:51.128140"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.128559"], ["id", 11649]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8712"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8712], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yHtDp8xwx6lZI9AJeqLLA.ISBZrpkRFr8cquh8paPFZ5uNRnm/P4q"], ["created_at", "2018-12-07 02:20:51.135604"], ["updated_at", "2018-12-07 02:20:51.135604"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.137282"], ["updated_at", "2018-12-07 02:20:51.137282"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.139124"], ["last_sign_in_at", "2018-12-07 02:20:51.139124"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.139491"], ["id", 11650]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8713"}

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s7WNWx1wy1rVru.UnBUeQuHNN3BKDvY2oXSB6ehALlTUdTXlZJNjy"], ["created_at", "2018-12-07 02:20:51.145736"], ["updated_at", "2018-12-07 02:20:51.145736"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.147367"], ["updated_at", "2018-12-07 02:20:51.147367"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8714], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11651], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11651], ["room_id", 8714], ["created_at", "2018-12-07 02:20:51.150629"], ["updated_at", "2018-12-07 02:20:51.150629"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8714” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.152844"], ["last_sign_in_at", "2018-12-07 02:20:51.152844"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.153307"], ["id", 11651]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8714"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8714], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8714')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 197ms (Views: 195.4ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OooL4s7ka8l87AOutEr6i.CdFlAj40Y56R55AsPdqyjxhayeDrynO"], ["created_at", "2018-12-07 02:20:51.356885"], ["updated_at", "2018-12-07 02:20:51.356885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.358588"], ["updated_at", "2018-12-07 02:20:51.358588"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8715], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11652], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11652], ["room_id", 8715], ["created_at", "2018-12-07 02:20:51.361541"], ["updated_at", "2018-12-07 02:20:51.361541"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4566/edit” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.363110"], ["last_sign_in_at", "2018-12-07 02:20:51.363110"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.363472"], ["id", 11652]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4566"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4566], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qafACzRoBNLix2As.j0a.uOH4kakPQ0ytCPmTmTWvgpbik5Dyjol6"], ["created_at", "2018-12-07 02:20:51.374986"], ["updated_at", "2018-12-07 02:20:51.374986"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.376701"], ["last_sign_in_at", "2018-12-07 02:20:51.376701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.377051"], ["id", 11653]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fV6pPsafNJC/Usr.nDrKNuUVx00k7GeljTDTGzZBrZkk72U5AfM0C"], ["created_at", "2018-12-07 02:20:51.387986"], ["updated_at", "2018-12-07 02:20:51.387986"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.389561"], ["updated_at", "2018-12-07 02:20:51.389561"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8716], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11654], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11654], ["room_id", 8716], ["created_at", "2018-12-07 02:20:51.392514"], ["updated_at", "2018-12-07 02:20:51.392514"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8716], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11654], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11654], ["room_id", 8716], ["created_at", "2018-12-07 02:20:51.395300"], ["updated_at", "2018-12-07 02:20:51.395300"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.396784"], ["last_sign_in_at", "2018-12-07 02:20:51.396784"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.397168"], ["id", 11654]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11654]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$o4l3fLtqmtN9NuFGHZKPmeH2UUeivQWFYAVynhBP4d.C7HJfvqa7S"], ["created_at", "2018-12-07 02:20:51.411720"], ["updated_at", "2018-12-07 02:20:51.411720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.413696"], ["updated_at", "2018-12-07 02:20:51.413696"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8717], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11655], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11655], ["room_id", 8717], ["created_at", "2018-12-07 02:20:51.417268"], ["updated_at", "2018-12-07 02:20:51.417268"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8717], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11655], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11655], ["room_id", 8717], ["created_at", "2018-12-07 02:20:51.420149"], ["updated_at", "2018-12-07 02:20:51.420149"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.421668"], ["last_sign_in_at", "2018-12-07 02:20:51.421668"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.422042"], ["id", 11655]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11655]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.rhEsCn3RmEFijemjFXaMO3NMXA0sI/L3nGYKqiCbzsb7OE2Opagq"], ["created_at", "2018-12-07 02:20:51.431423"], ["updated_at", "2018-12-07 02:20:51.431423"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.432994"], ["updated_at", "2018-12-07 02:20:51.432994"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8718], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11656], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11656], ["room_id", 8718], ["created_at", "2018-12-07 02:20:51.435866"], ["updated_at", "2018-12-07 02:20:51.435866"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4571” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.437360"], ["last_sign_in_at", "2018-12-07 02:20:51.437360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.437749"], ["id", 11656]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4571"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4571], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4571]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mWm9ke.Ah97eOpXYAPsgp.GHqAavPULrmSSSC6s2XoYv3y2eX3nrC"], ["created_at", "2018-12-07 02:20:51.446785"], ["updated_at", "2018-12-07 02:20:51.446785"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.448546"], ["updated_at", "2018-12-07 02:20:51.448546"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vyUWiH8M5ILEebR1y/FDNu8VBjqD50sFu7V1lWWdW50heIG2eySPK"], ["created_at", "2018-12-07 02:20:51.451841"], ["updated_at", "2018-12-07 02:20:51.451841"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8719], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11658], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11658], ["room_id", 8719], ["created_at", "2018-12-07 02:20:51.455000"], ["updated_at", "2018-12-07 02:20:51.455000"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4572” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.456977"], ["last_sign_in_at", "2018-12-07 02:20:51.456977"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.457381"], ["id", 11657]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4572"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4572], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8719], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11658], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DMCnzFdsAUfibn7BoTcf..JyJiFobYIwTqjszTQfyVT5X8eZ.ccdm"], ["created_at", "2018-12-07 02:20:51.467079"], ["updated_at", "2018-12-07 02:20:51.467079"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.468781"], ["updated_at", "2018-12-07 02:20:51.468781"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$288uh7SalcRRyFmpdnTYoufM4XJF4g7oktvO7cJuoBznBRuI7AhB."], ["created_at", "2018-12-07 02:20:51.471974"], ["updated_at", "2018-12-07 02:20:51.471974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8720], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11660], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11660], ["room_id", 8720], ["created_at", "2018-12-07 02:20:51.474938"], ["updated_at", "2018-12-07 02:20:51.474938"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4573” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.477202"], ["last_sign_in_at", "2018-12-07 02:20:51.477202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.477786"], ["id", 11659]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4573"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4573], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8720], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11660], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tavE9CMU8DOuGwa4RHI1XeyCi30OlakX06/HAoDxmC9wuNtqpzGHS"], ["created_at", "2018-12-07 02:20:51.487070"], ["updated_at", "2018-12-07 02:20:51.487070"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.488699"], ["updated_at", "2018-12-07 02:20:51.488699"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HjhwLerWqT/OjaXAR8h0x.eLbnP9J.r6RAuRa9ZQCLo3nMl2HRQtS"], ["created_at", "2018-12-07 02:20:51.491991"], ["updated_at", "2018-12-07 02:20:51.491991"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8721], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11662], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11662], ["room_id", 8721], ["created_at", "2018-12-07 02:20:51.495070"], ["updated_at", "2018-12-07 02:20:51.495070"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4574” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.496933"], ["last_sign_in_at", "2018-12-07 02:20:51.496933"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.497294"], ["id", 11661]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4574"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4574], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8721], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11662], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:20:51.501308"], ["id", 4574]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Fri, 07 Dec 2018 00:20:51 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d9037b4e2_51a92ae6fd81060069962@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9037af4f_51a92ae6fd810600698e2";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9037af4f_51a92ae6fd810600698e2 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d9037af4f_51a92ae6fd810600698e2 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9037af4f_51a92ae6fd810600698e2–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sC980BoXERSrRz04mUfIV.RXRw81RWn5eZoHpY/SV2NG.317nGP/q"], ["created_at", "2018-12-07 02:20:51.512236"], ["updated_at", "2018-12-07 02:20:51.512236"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.513934"], ["updated_at", "2018-12-07 02:20:51.513934"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$FIQatwt43xmTp0P5Rr2cjuTizKOhXsVS0Pjs1sQKxxQcgBV6mvQf."], ["created_at", "2018-12-07 02:20:51.517075"], ["updated_at", "2018-12-07 02:20:51.517075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8722], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11664], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11664], ["room_id", 8722], ["created_at", "2018-12-07 02:20:51.520050"], ["updated_at", "2018-12-07 02:20:51.520050"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:20:51.521415"], ["id", 4575]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8722], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11664], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11664], ["room_id", 8722], ["created_at", "2018-12-07 02:20:51.524059"], ["updated_at", "2018-12-07 02:20:51.524059"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:20:51.525354"], ["id", 4576]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.526770"], ["last_sign_in_at", "2018-12-07 02:20:51.526770"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.527128"], ["id", 11663]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11664], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8722], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11664], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8722], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1BhYwO9YAo64GcBlUsAHVusKIT1mHGGpPLmvyhI7tUo.rzDRQkbJe"], ["created_at", "2018-12-07 02:20:51.539806"], ["updated_at", "2018-12-07 02:20:51.539806"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.542090"], ["updated_at", "2018-12-07 02:20:51.542090"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xEgDLwgyZGpR9x8bYcQxSuHgJ71kZOKP5VW4vj8Swx4XBBsYdYPPG"], ["created_at", "2018-12-07 02:20:51.545515"], ["updated_at", "2018-12-07 02:20:51.545515"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8723], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11666], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11666], ["room_id", 8723], ["created_at", "2018-12-07 02:20:51.548641"], ["updated_at", "2018-12-07 02:20:51.548641"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:20:51.550081"], ["id", 4577]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8723], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11666], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11666], ["room_id", 8723], ["created_at", "2018-12-07 02:20:51.552767"], ["updated_at", "2018-12-07 02:20:51.552767"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:20:51.554118"], ["id", 4578]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.555538"], ["last_sign_in_at", "2018-12-07 02:20:51.555538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.555917"], ["id", 11665]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11666], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8723], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11666], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8723], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qqvJ17F1ZH3Mu1pWlGVJWuYO.yk7MYHrSw692PQ0DjY6iOFEw8rdq"], ["created_at", "2018-12-07 02:20:51.568188"], ["updated_at", "2018-12-07 02:20:51.568188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.569848"], ["last_sign_in_at", "2018-12-07 02:20:51.569848"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.570244"], ["id", 11667]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$q5b2Of32JYCmSdCJ6mwK0ujVDm5MQRClCVDqqINhIKeBixZ6roipe"], ["created_at", "2018-12-07 02:20:51.583980"], ["updated_at", "2018-12-07 02:20:51.583980"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.585648"], ["last_sign_in_at", "2018-12-07 02:20:51.585648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.585995"], ["id", 11668]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PuhQ/8pWnnuTAPgL1Ucyye2zW0kjfTsaY0kpjOgusAOc3QdqD9AKq"], ["created_at", "2018-12-07 02:20:51.591772"], ["updated_at", "2018-12-07 02:20:51.591772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.593299"], ["last_sign_in_at", "2018-12-07 02:20:51.593299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.593662"], ["id", 11669]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XfnIP0v1QPHlifHc0EtdLe.MU47yLAhNX/bzbhIsHvBaw/OGJC4dK"], ["created_at", "2018-12-07 02:20:51.603540"], ["updated_at", "2018-12-07 02:20:51.603540"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.605482"], ["last_sign_in_at", "2018-12-07 02:20:51.605482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.605849"], ["id", 11670]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qAyifj8fYITHoUEJ9OLBT.bL4ztlg9ANmlJ1gbHLCHD3NTg2zACGS"], ["created_at", "2018-12-07 02:20:51.619667"], ["updated_at", "2018-12-07 02:20:51.619667"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.621283"], ["updated_at", "2018-12-07 02:20:51.621283"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8724” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.622686"], ["last_sign_in_at", "2018-12-07 02:20:51.622686"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.623050"], ["id", 11671]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8724"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8724], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wqE88xbGfKpLjOgbZ7Srju5Ipi9bzNrxUwzOIr2La79uVoTwaiQW."], ["created_at", "2018-12-07 02:20:51.631775"], ["updated_at", "2018-12-07 02:20:51.631775"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.633452"], ["updated_at", "2018-12-07 02:20:51.633452"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8725” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.635390"], ["last_sign_in_at", "2018-12-07 02:20:51.635390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.635879"], ["id", 11672]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8725"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8725], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.642639"], ["updated_at", "2018-12-07 02:20:51.642639"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8726” for 127.0.0.1 at 2018-12-07 00:20:51 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8726"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OFyWGgB45.1eIx3pNPMYTOHaCLJ72n5fvtRduFc3KPqRIVxdmhuai"], ["created_at", "2018-12-07 02:20:51.648814"], ["updated_at", "2018-12-07 02:20:51.648814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.650427"], ["updated_at", "2018-12-07 02:20:51.650427"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8727” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.651810"], ["last_sign_in_at", "2018-12-07 02:20:51.651810"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.652175"], ["id", 11673]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8727"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.659931"], ["updated_at", "2018-12-07 02:20:51.659931"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8728” for 127.0.0.1 at 2018-12-07 00:20:51 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8728"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$57CQ0oodJ7swaSv2eoF5duXI3XrMddF6n/if4VjH3ggxs/OMSCdn."], ["created_at", "2018-12-07 02:20:51.666687"], ["updated_at", "2018-12-07 02:20:51.666687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.668521"], ["updated_at", "2018-12-07 02:20:51.668521"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8729/edit” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.670000"], ["last_sign_in_at", "2018-12-07 02:20:51.670000"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.670372"], ["id", 11674]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8729"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8729], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$863joqMlEzZhM4IgJKS7neyVv1pwzhuf13S9SuHeammwBf1Dm1aVq"], ["created_at", "2018-12-07 02:20:51.680936"], ["updated_at", "2018-12-07 02:20:51.680936"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.682535"], ["updated_at", "2018-12-07 02:20:51.682535"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8730/edit” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.683982"], ["last_sign_in_at", "2018-12-07 02:20:51.683982"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.684383"], ["id", 11675]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8730"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8730], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.691934"], ["updated_at", "2018-12-07 02:20:51.691934"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8731” for 127.0.0.1 at 2018-12-07 00:20:51 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8731"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$92Rz5rcwrgYw7pfKleGyA./ZsP8Boo6ZL2ro4pDvuPMk58oG53b0m"], ["created_at", "2018-12-07 02:20:51.698764"], ["updated_at", "2018-12-07 02:20:51.698764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.701052"], ["last_sign_in_at", "2018-12-07 02:20:51.701052"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.701409"], ["id", 11676]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.703959"], ["updated_at", "2018-12-07 02:20:51.703959"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9qd4CRjBXvZGuI6bb4acm.OEzjwMifcI7ifoSkAbMHMGRCzAJQIjy"], ["created_at", "2018-12-07 02:20:51.709803"], ["updated_at", "2018-12-07 02:20:51.709803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.711862"], ["last_sign_in_at", "2018-12-07 02:20:51.711862"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.712272"], ["id", 11677]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.714646"], ["updated_at", "2018-12-07 02:20:51.714646"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qt4iPN1U3ytkonD1LWpbC.uZyKEz2SNxHd1s//8njUR/wsgbkJ0zS"], ["created_at", "2018-12-07 02:20:51.719772"], ["updated_at", "2018-12-07 02:20:51.719772"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.721750"], ["last_sign_in_at", "2018-12-07 02:20:51.721750"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.722093"], ["id", 11678]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a19xda3npRWBdrhDf.X/TOWX/z8Jv1NX1nlVN4eEYe9sjPst0wUSi"], ["created_at", "2018-12-07 02:20:51.730354"], ["updated_at", "2018-12-07 02:20:51.730354"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.732572"], ["last_sign_in_at", "2018-12-07 02:20:51.732572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.732952"], ["id", 11679]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AoEgN/ia3pCRz4OqXluOd.MfwVxAy2zz1fjk19eth5D0c/7qJchSq"], ["created_at", "2018-12-07 02:20:51.740385"], ["updated_at", "2018-12-07 02:20:51.740385"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.742422"], ["last_sign_in_at", "2018-12-07 02:20:51.742422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.742785"], ["id", 11680]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V1/DtoljAn0KX67X0L7B3.OZGHvZXbPN8kXG.oPYicN4GRUf3T6ky"], ["created_at", "2018-12-07 02:20:51.748741"], ["updated_at", "2018-12-07 02:20:51.748741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.750319"], ["updated_at", "2018-12-07 02:20:51.750319"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8734” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.752082"], ["last_sign_in_at", "2018-12-07 02:20:51.752082"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.752471"], ["id", 11681]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8734"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8734], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:20:51.755412"], ["id", 8734]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8734 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5iKCq/9/vKsx3V4RyDQpgeKXj9kEDgZ0qn/7hTH0sVfgcUnMaXEAW"], ["created_at", "2018-12-07 02:20:51.761743"], ["updated_at", "2018-12-07 02:20:51.761743"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.763550"], ["updated_at", "2018-12-07 02:20:51.763550"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8735” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.765422"], ["last_sign_in_at", "2018-12-07 02:20:51.765422"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.765824"], ["id", 11682]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8735"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8735], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:20:51.768794"], ["id", 8735]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8735 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N2BL2xyzy0gYaw6N65HhC.jhe1sqF1rpxhDlznl3vJIQV62sy7Iea"], ["created_at", "2018-12-07 02:20:51.774187"], ["updated_at", "2018-12-07 02:20:51.774187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.775801"], ["updated_at", "2018-12-07 02:20:51.775801"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8736” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.777572"], ["last_sign_in_at", "2018-12-07 02:20:51.777572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.777970"], ["id", 11683]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8736"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8736], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Exe.rbSBzObi0WNpwiMLquN9qIQS26qQQBa1bEDA4YVP0wggR7UWW"], ["created_at", "2018-12-07 02:20:51.789219"], ["updated_at", "2018-12-07 02:20:51.789219"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.791009"], ["updated_at", "2018-12-07 02:20:51.791009"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8737” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.793356"], ["last_sign_in_at", "2018-12-07 02:20:51.793356"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.793880"], ["id", 11684]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8737"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8737], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YFJdIyt9RTKgpyMiISQH7.7U2XXKkxutpXcrjq3yiCbjmxHgtYAXO"], ["created_at", "2018-12-07 02:20:51.805224"], ["updated_at", "2018-12-07 02:20:51.805224"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.807365"], ["last_sign_in_at", "2018-12-07 02:20:51.807365"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.807734"], ["id", 11685]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4T3K51fTpEzvkcM1ekm.R.kgdHQnWd.fg4pRb.yLnvFfyGP1iz6sG"], ["created_at", "2018-12-07 02:20:51.813553"], ["updated_at", "2018-12-07 02:20:51.813553"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.815089"], ["updated_at", "2018-12-07 02:20:51.815089"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8738” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.816458"], ["last_sign_in_at", "2018-12-07 02:20:51.816458"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.816813"], ["id", 11686]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8738"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8738], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8738]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kBE7ANwdIvkv63AvOpPPQOqqfmo9ga974czuZwPqgoCci/U/HD.2i"], ["created_at", "2018-12-07 02:20:51.824868"], ["updated_at", "2018-12-07 02:20:51.824868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.826655"], ["updated_at", "2018-12-07 02:20:51.826655"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8739” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.828105"], ["last_sign_in_at", "2018-12-07 02:20:51.828105"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.828466"], ["id", 11687]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8739"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8739], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8739]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ukgAVV3fVUTjbGa/JRARRuTr7g0WTZ1IG0Kx1BF5AthC9mYer7ZOO"], ["created_at", "2018-12-07 02:20:51.835677"], ["updated_at", "2018-12-07 02:20:51.835677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.837227"], ["updated_at", "2018-12-07 02:20:51.837227"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8740” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.838608"], ["last_sign_in_at", "2018-12-07 02:20:51.838608"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.838969"], ["id", 11688]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8740"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OLRWzis0yEloebQuAAj0.OO7OwwNTzKUI20jstFd/omw3n.aVZpRK"], ["created_at", "2018-12-07 02:20:51.845021"], ["updated_at", "2018-12-07 02:20:51.845021"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.846554"], ["updated_at", "2018-12-07 02:20:51.846554"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8741” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.847909"], ["last_sign_in_at", "2018-12-07 02:20:51.847909"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.848277"], ["id", 11689]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8741"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Uyv1zWD54DT7IHXmP7E6JetStFldFzvfoqAP.sMYl1QL.ypDTfTa2"], ["created_at", "2018-12-07 02:20:51.854407"], ["updated_at", "2018-12-07 02:20:51.854407"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.856692"], ["last_sign_in_at", "2018-12-07 02:20:51.856692"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.857143"], ["id", 11690]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gf8S9wMUlWhVy6wi30Fg/.0dyj7lSZecOXQ5QUJdzVKalvFumDYsi"], ["created_at", "2018-12-07 02:20:51.868807"], ["updated_at", "2018-12-07 02:20:51.868807"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.870407"], ["updated_at", "2018-12-07 02:20:51.870407"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.871742"], ["updated_at", "2018-12-07 02:20:51.871742"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.872916"], ["updated_at", "2018-12-07 02:20:51.872916"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8742], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11691], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11691], ["room_id", 8742], ["created_at", "2018-12-07 02:20:51.875776"], ["updated_at", "2018-12-07 02:20:51.875776"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.877359"], ["last_sign_in_at", "2018-12-07 02:20:51.877359"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.877739"], ["id", 11691]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.7ms | ActiveRecord: 0.5ms)

Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$noNtuY/ByJ1XBYKUYpnbduxMRPcDRgvp.lwmjvRTXSuu.EElirtna"], ["created_at", "2018-12-07 02:20:51.895282"], ["updated_at", "2018-12-07 02:20:51.895282"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.896902"], ["updated_at", "2018-12-07 02:20:51.896902"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.898235"], ["updated_at", "2018-12-07 02:20:51.898235"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:20:51.899503"], ["updated_at", "2018-12-07 02:20:51.899503"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8745], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11692], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11692], ["room_id", 8745], ["created_at", "2018-12-07 02:20:51.902267"], ["updated_at", "2018-12-07 02:20:51.902267"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:20:51 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:20:51.903857"], ["last_sign_in_at", "2018-12-07 02:20:51.903857"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:20:51.904207"], ["id", 11692]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r6Votg9SdhhHu/nWEDMJseDP6v99vpB0sY1/wc0Mlx8VBP/ycr/fC"], ["created_at", "2018-12-07 02:21:06.576827"], ["updated_at", "2018-12-07 02:21:06.576827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$X1i6KNT3tsECli8VR0ruPeuI8Kqst7CRapeRmrEUhw.PVhkbCl/B6"], ["created_at", "2018-12-07 02:21:06.582575"], ["updated_at", "2018-12-07 02:21:06.582575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.7ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.597163"], ["updated_at", "2018-12-07 02:21:06.597163"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8748], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11694], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11694], ["room_id", 8748], ["created_at", "2018-12-07 02:21:06.631913"], ["updated_at", "2018-12-07 02:21:06.631913"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4581"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4581], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8748], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11694], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 133.0ms Sent mail to 123@123.com (5.6ms) Date: Fri, 07 Dec 2018 00:21:06 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d912c1cb9_51d52aee79d625f831711@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d912c0de1_51d52aee79d625f83165";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d912c0de1_51d52aee79d625f83165 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d912c0de1_51d52aee79d625f83165 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d912c0de1_51d52aee79d625f83165–

Completed 302 Found in 154ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ea.K7Rqz8m3VEyQAV/Y7aOYRnarDfMa.n.DSTtrH6KdvSYz6nkPBC"], ["created_at", "2018-12-07 02:21:06.801160"], ["updated_at", "2018-12-07 02:21:06.801160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1o/NZsqV56X8r1mx5q1t7.snI1F60jfOQbisSwiMfuZgM8Lz1AZ1K"], ["created_at", "2018-12-07 02:21:06.804467"], ["updated_at", "2018-12-07 02:21:06.804467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.805871"], ["updated_at", "2018-12-07 02:21:06.805871"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8749], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11696], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11696], ["room_id", 8749], ["created_at", "2018-12-07 02:21:06.808837"], ["updated_at", "2018-12-07 02:21:06.808837"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4582"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4582], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8749], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11696], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:21:06.813366"], ["id", 4582]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:21:06 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d912c78da_51d52aee79d625f83197d@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d912c7356_51d52aee79d625f831832";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d912c7356_51d52aee79d625f831832 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d912c7356_51d52aee79d625f831832 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d912c7356_51d52aee79d625f831832–

Completed 302 Found in 8ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ta1skLh3WOpjD2edIm/oXOqYE5m.tVAA9IXhb3WwqBCvtIyGkrEX."], ["created_at", "2018-12-07 02:21:06.822803"], ["updated_at", "2018-12-07 02:21:06.822803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ju80sbi0zsLF0APPX0q7g.JFRXY1FuXO9e0JCPRPy/g3e4sDmbApO"], ["created_at", "2018-12-07 02:21:06.826218"], ["updated_at", "2018-12-07 02:21:06.826218"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.828067"], ["updated_at", "2018-12-07 02:21:06.828067"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8750], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11698], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11698], ["room_id", 8750], ["created_at", "2018-12-07 02:21:06.831525"], ["updated_at", "2018-12-07 02:21:06.831525"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d8sTD9ygoS36Ofv6o8BER.Hw8Xjh8BiZGo5ET0yQ7aGHZ/hS9nFzi"], ["created_at", "2018-12-07 02:21:06.837951"], ["updated_at", "2018-12-07 02:21:06.837951"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7/t7RbAOVrIcrwm2.ANsp.N86YOzpn6k8rPyk4gr.B7H7vdgkmWG2"], ["created_at", "2018-12-07 02:21:06.841072"], ["updated_at", "2018-12-07 02:21:06.841072"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.842591"], ["updated_at", "2018-12-07 02:21:06.842591"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8751], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11700], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11700], ["room_id", 8751], ["created_at", "2018-12-07 02:21:06.845420"], ["updated_at", "2018-12-07 02:21:06.845420"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4584], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$eaXhrpYVySuDSs5HsOXU7OjcQWUxAu1AVtEqzxU4yZ1AOBuQv2eIq"], ["created_at", "2018-12-07 02:21:06.850639"], ["updated_at", "2018-12-07 02:21:06.850639"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11701"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "lSdT3Xu007izyI6H-VWMNQ"], ["updated_at", "2018-12-07 02:21:06.853842"], ["id", 11701]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:21:06.855398"], ["reset_sent_at", "2018-12-07 02:21:06.855035"], ["id", 11701]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.4ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:21:06 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d912d2aff_51d52aee79d625f8322c7@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d912d2524_51d52aee79d625f8321ad";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d912d2524_51d52aee79d625f8321ad Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/lSdT3Xu007izyI6H-VWMNQ/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d912d2524_51d52aee79d625f8321ad Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/lSdT3Xu007izyI6H-VWMNQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d912d2524_51d52aee79d625f8321ad–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$vmBiq7PqDJ1bEgtYIvHLXuMTWMDFryD3yb3R7/TOWhygTPS86C2QG"], ["created_at", "2018-12-07 02:21:06.868925"], ["updated_at", "2018-12-07 02:21:06.868925"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$aXoicqagbFzLeRloJIq6Yejyc2vQIXTVscKpCeikxPtAzU1Cb.qRy"], ["created_at", "2018-12-07 02:21:06.876148"], ["updated_at", "2018-12-07 02:21:06.876148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11703"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$5YX960.nINjDsWDBYSKJG.qkL8N1yuFBxdew26qxQH9G6/sAW7s3q"], ["updated_at", "2018-12-07 02:21:06.880252"], ["id", 11703]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CX1CkuYaHabt.7lBPSZYyOb9/tkkHKTGQx4Gzr76nEefuuV5CHpOy"], ["created_at", "2018-12-07 02:21:06.885190"], ["updated_at", "2018-12-07 02:21:06.885190"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11704"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$4cS/tme4QNSKNUiWHVp4AeiSgA5j0jIj2XVxHEHKX3GWPqXSaIZYW"], ["created_at", "2018-12-07 02:21:06.893679"], ["updated_at", "2018-12-07 02:21:06.893679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11705"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$k5AOs25fpFschzmGZM2X.eauIRNdg5S7h5c7r6jy/rqTVI7EI/5mS"], ["created_at", "2018-12-07 02:21:06.906916"], ["updated_at", "2018-12-07 02:21:06.906916"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11706"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$aubiFLWTYSMYuSpIw0nU2OR4W5yi6NdYBvPHJPFRWoNt6DA5vc25y"], ["created_at", "2018-12-07 02:21:06.915250"], ["updated_at", "2018-12-07 02:21:06.915250"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11707"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jwD1NF/THxt.2Nsm4XGxS.WqTuQbxrdnyFsVtf.w/o.wJrkE90nOG"], ["created_at", "2018-12-07 02:21:06.923445"], ["updated_at", "2018-12-07 02:21:06.923445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.jkJpptxuIjwS4YNJ00sf.9taSqOXtTdSuOoKL.Y3TYjaZqcQCuIG"], ["created_at", "2018-12-07 02:21:06.930059"], ["updated_at", "2018-12-07 02:21:06.930059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$A3bCDg00z23iDqQXoBuk6OzKr9KY1KlR2HP1lzY7PS0fb5Zw9Wod2"], ["created_at", "2018-12-07 02:21:06.936821"], ["updated_at", "2018-12-07 02:21:06.936821"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.938314"], ["updated_at", "2018-12-07 02:21:06.938314"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8752], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11710], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11710], ["room_id", 8752], ["created_at", "2018-12-07 02:21:06.941194"], ["updated_at", "2018-12-07 02:21:06.941194"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Rt4hmlDV7C/4v3Yrli3Cw.MuiZKI0LXWMULSjv2ddx3AdLQzmtRzK"], ["created_at", "2018-12-07 02:21:06.947506"], ["updated_at", "2018-12-07 02:21:06.947506"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.949128"], ["updated_at", "2018-12-07 02:21:06.949128"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8753], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11711], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11711], ["room_id", 8753], ["created_at", "2018-12-07 02:21:06.952873"], ["updated_at", "2018-12-07 02:21:06.952873"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4cw3Vgtoo1tbBLjGFTvXWuU/0kq/VnoYU.AJlwU2ESn6.VLGKFDtO"], ["created_at", "2018-12-07 02:21:06.974872"], ["updated_at", "2018-12-07 02:21:06.974872"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.976441"], ["updated_at", "2018-12-07 02:21:06.976441"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:06 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:06.983800"], ["last_sign_in_at", "2018-12-07 02:21:06.983800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:06.984370"], ["id", 11712]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8754"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8754 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YK6h.ZpftwC4MxrfHpJB4OcFeTpG5JZu1gONk3vZ.gh.lh9CNNRIK"], ["created_at", "2018-12-07 02:21:06.995546"], ["updated_at", "2018-12-07 02:21:06.995546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:06.996953"], ["updated_at", "2018-12-07 02:21:06.996953"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:06 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:06.998667"], ["last_sign_in_at", "2018-12-07 02:21:06.998667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:06.998999"], ["id", 11713]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8755"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8755 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$0wGDCLHWMa6mt4kxkm7XKeFu51VZ5MdboUBJgRryqX2aUdawSrf5i"], ["created_at", "2018-12-07 02:21:07.006677"], ["updated_at", "2018-12-07 02:21:07.006677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.008285"], ["updated_at", "2018-12-07 02:21:07.008285"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.010357"], ["last_sign_in_at", "2018-12-07 02:21:07.010357"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.010734"], ["id", 11714]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8756", "user_id"=>"11714"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8756 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$iiNPvikV14ufignBcWrx2.d4MYlslxENRQD3m9c7/1oFINXF.N7.u"], ["created_at", "2018-12-07 02:21:07.019632"], ["updated_at", "2018-12-07 02:21:07.019632"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.021290"], ["updated_at", "2018-12-07 02:21:07.021290"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.023472"], ["last_sign_in_at", "2018-12-07 02:21:07.023472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.023885"], ["id", 11715]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8757", "user_id"=>"11715"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8757 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gvXhuURX30BwfPZmMfWoMuF7VSZc5U4139qkV/r9kutdmi2ngU6KK"], ["created_at", "2018-12-07 02:21:07.031859"], ["updated_at", "2018-12-07 02:21:07.031859"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.033440"], ["updated_at", "2018-12-07 02:21:07.033440"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.035481"], ["last_sign_in_at", "2018-12-07 02:21:07.035481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.035848"], ["id", 11716]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8758", "user_id"=>"11716"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8758 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hPKmQpLoP7O1/lzCx.xmau9cTe20oQKi0gmR0RersPdF5ZLIFUqdq"], ["created_at", "2018-12-07 02:21:07.044048"], ["updated_at", "2018-12-07 02:21:07.044048"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.046039"], ["updated_at", "2018-12-07 02:21:07.046039"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.048525"], ["last_sign_in_at", "2018-12-07 02:21:07.048525"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.049000"], ["id", 11717]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8759"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GJeBfbjUcXlrWez.zEMPXu0Wv40qKIQwtFQLmvf9eyOQsL/XsORZa"], ["created_at", "2018-12-07 02:21:07.057548"], ["updated_at", "2018-12-07 02:21:07.057548"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.059255"], ["updated_at", "2018-12-07 02:21:07.059255"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.061120"], ["last_sign_in_at", "2018-12-07 02:21:07.061120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.061530"], ["id", 11718]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8760"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NiLoRVmxsBrlsY6/ACzvzOQkJrh1/QWXIkN0IlVT6VL4wU/aY.u2e"], ["created_at", "2018-12-07 02:21:07.069556"], ["updated_at", "2018-12-07 02:21:07.069556"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.071060"], ["updated_at", "2018-12-07 02:21:07.071060"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8761], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11719], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11719], ["room_id", 8761], ["created_at", "2018-12-07 02:21:07.073952"], ["updated_at", "2018-12-07 02:21:07.073952"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8761” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.075494"], ["last_sign_in_at", "2018-12-07 02:21:07.075494"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.075863"], ["id", 11719]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8761"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8761], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8761')
Rendered appointments/show.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (2.9ms)

Completed 200 OK in 145ms (Views: 143.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ujiXiYtmC9bxTZ/CudbvCOSLRqYBnKi66ZWEXp9FivxYnLS3ulpYS"], ["created_at", "2018-12-07 02:21:07.232460"], ["updated_at", "2018-12-07 02:21:07.232460"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.235695"], ["updated_at", "2018-12-07 02:21:07.235695"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.8ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8762], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11720], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11720], ["room_id", 8762], ["created_at", "2018-12-07 02:21:07.241623"], ["updated_at", "2018-12-07 02:21:07.241623"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4588/edit” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.244926"], ["last_sign_in_at", "2018-12-07 02:21:07.244926"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.245382"], ["id", 11720]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4588"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4588], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (6.1ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 14ms (Views: 11.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BMmbCz9d9UUQ89rA2xHxn.cDvZN00azC/vAnVMybC4N4elOsPHZ4S"], ["created_at", "2018-12-07 02:21:07.269641"], ["updated_at", "2018-12-07 02:21:07.269641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.272891"], ["last_sign_in_at", "2018-12-07 02:21:07.272891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.273331"], ["id", 11721]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 10ms (Views: 9.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$40RWwKzIG/sxnPVitNdKv.0k/AQSLfZy5tSCtmY.UkUgM3hupJ3Ya"], ["created_at", "2018-12-07 02:21:07.298022"], ["updated_at", "2018-12-07 02:21:07.298022"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.300988"], ["updated_at", "2018-12-07 02:21:07.300988"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8763], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11722], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11722], ["room_id", 8763], ["created_at", "2018-12-07 02:21:07.307130"], ["updated_at", "2018-12-07 02:21:07.307130"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8763], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11722], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11722], ["room_id", 8763], ["created_at", "2018-12-07 02:21:07.312679"], ["updated_at", "2018-12-07 02:21:07.312679"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.315598"], ["last_sign_in_at", "2018-12-07 02:21:07.315598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.316074"], ["id", 11722]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11722]]
Rendered appointments/my_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 23ms (Views: 14.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Di0abGmJcwdKlme1H06bz.aNTGsovE42U3DkCCjGqjSC6lIXmSkc."], ["created_at", "2018-12-07 02:21:07.347331"], ["updated_at", "2018-12-07 02:21:07.347331"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.349513"], ["updated_at", "2018-12-07 02:21:07.349513"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8764], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11723], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11723], ["room_id", 8764], ["created_at", "2018-12-07 02:21:07.353663"], ["updated_at", "2018-12-07 02:21:07.353663"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8764], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11723], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11723], ["room_id", 8764], ["created_at", "2018-12-07 02:21:07.357183"], ["updated_at", "2018-12-07 02:21:07.357183"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.359417"], ["last_sign_in_at", "2018-12-07 02:21:07.359417"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.359894"], ["id", 11723]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11723]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/NF0VHPMaRg.sLKPpxHK/egADh/.db9Xl1fNZ.tM8ZhKAeBClYWdu"], ["created_at", "2018-12-07 02:21:07.370742"], ["updated_at", "2018-12-07 02:21:07.370742"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.372453"], ["updated_at", "2018-12-07 02:21:07.372453"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8765], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11724], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11724], ["room_id", 8765], ["created_at", "2018-12-07 02:21:07.375508"], ["updated_at", "2018-12-07 02:21:07.375508"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4593” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.377115"], ["last_sign_in_at", "2018-12-07 02:21:07.377115"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.377503"], ["id", 11724]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4593"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4593], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4593]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OhlhNWJy0FjPO96Es3DmWele.v7s4h.4zRPDvcdeBlxvoHh2IVdl6"], ["created_at", "2018-12-07 02:21:07.387405"], ["updated_at", "2018-12-07 02:21:07.387405"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.389159"], ["updated_at", "2018-12-07 02:21:07.389159"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cKn6mY4driy5/CkC7V.b4ufk2BMm/cFhKIcNVbASeTPwa6kro8gn."], ["created_at", "2018-12-07 02:21:07.392579"], ["updated_at", "2018-12-07 02:21:07.392579"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8766], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11726], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11726], ["room_id", 8766], ["created_at", "2018-12-07 02:21:07.395687"], ["updated_at", "2018-12-07 02:21:07.395687"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4594” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.397582"], ["last_sign_in_at", "2018-12-07 02:21:07.397582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.397967"], ["id", 11725]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4594"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4594], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8766], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11726], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3VNSUs9IwWx8z6StiYxAg.2mqRTy6fIf04B6erf.pv7VXn7UTDugG"], ["created_at", "2018-12-07 02:21:07.407796"], ["updated_at", "2018-12-07 02:21:07.407796"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.409444"], ["updated_at", "2018-12-07 02:21:07.409444"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$F.N9Jg3GChidf4uiE17JZOxkWQy3hoN2RN8o8IzRJOJYzzxp78BqG"], ["created_at", "2018-12-07 02:21:07.412952"], ["updated_at", "2018-12-07 02:21:07.412952"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8767], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11728], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11728], ["room_id", 8767], ["created_at", "2018-12-07 02:21:07.416644"], ["updated_at", "2018-12-07 02:21:07.416644"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4595” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.418640"], ["last_sign_in_at", "2018-12-07 02:21:07.418640"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.419040"], ["id", 11727]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4595"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4595], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8767], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11728], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fhZw.zuNLw9Exc76yF36wOmYrmdpX8zMO2BK6xzVmX1HM8i1U1mva"], ["created_at", "2018-12-07 02:21:07.427986"], ["updated_at", "2018-12-07 02:21:07.427986"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.429620"], ["updated_at", "2018-12-07 02:21:07.429620"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$O9pGjwQO/5d0A8Gh6YM4nOAOlmlMd6GFcdro8JL6bccU2QpUgFKEG"], ["created_at", "2018-12-07 02:21:07.432720"], ["updated_at", "2018-12-07 02:21:07.432720"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8768], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11730], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11730], ["room_id", 8768], ["created_at", "2018-12-07 02:21:07.435690"], ["updated_at", "2018-12-07 02:21:07.435690"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4596” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.437562"], ["last_sign_in_at", "2018-12-07 02:21:07.437562"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.437928"], ["id", 11729]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4596"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4596], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8768], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11730], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:21:07.442000"], ["id", 4596]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms Sent mail to 123@123.com (2.5ms) Date: Fri, 07 Dec 2018 00:21:07 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d9136cf27_51d52aee79d625f8329ed@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9136c8af_51d52aee79d625f832810";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9136c8af_51d52aee79d625f832810 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d9136c8af_51d52aee79d625f832810 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9136c8af_51d52aee79d625f832810–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$s/stGnzSjwuE9jwKRIEp3OI8h5JA3B4Qgd7ukpyybAtCprb4q.trC"], ["created_at", "2018-12-07 02:21:07.452993"], ["updated_at", "2018-12-07 02:21:07.452993"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.454688"], ["updated_at", "2018-12-07 02:21:07.454688"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Oy2vy2UUQBRTwzeiXT8vuOJowZ1qq88jlWwcaXwl0niNoBMkg1EAG"], ["created_at", "2018-12-07 02:21:07.458133"], ["updated_at", "2018-12-07 02:21:07.458133"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8769], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11732], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11732], ["room_id", 8769], ["created_at", "2018-12-07 02:21:07.461298"], ["updated_at", "2018-12-07 02:21:07.461298"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:21:07.462740"], ["id", 4597]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8769], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11732], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11732], ["room_id", 8769], ["created_at", "2018-12-07 02:21:07.465497"], ["updated_at", "2018-12-07 02:21:07.465497"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:21:07.466818"], ["id", 4598]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.468248"], ["last_sign_in_at", "2018-12-07 02:21:07.468248"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.468611"], ["id", 11731]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11732], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8769], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11732], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8769], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.3ms)
Rendered layouts/_header-admin.html.erb (1.4ms)

Completed 200 OK in 8ms (Views: 5.9ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1yKBr/CJNe3U//une8C3peL3THTn4WonEWDqSCkpj1iDU2vlsEnOa"], ["created_at", "2018-12-07 02:21:07.482313"], ["updated_at", "2018-12-07 02:21:07.482313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.484026"], ["updated_at", "2018-12-07 02:21:07.484026"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5bzAykMuiE3BnJ8/MaPUFelJ/ESPy6A79Q.kQkz51mc8e3UrhQR.C"], ["created_at", "2018-12-07 02:21:07.487179"], ["updated_at", "2018-12-07 02:21:07.487179"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8770], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11734], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11734], ["room_id", 8770], ["created_at", "2018-12-07 02:21:07.490030"], ["updated_at", "2018-12-07 02:21:07.490030"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:21:07.491313"], ["id", 4599]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8770], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11734], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11734], ["room_id", 8770], ["created_at", "2018-12-07 02:21:07.493744"], ["updated_at", "2018-12-07 02:21:07.493744"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:21:07.494885"], ["id", 4600]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.496183"], ["last_sign_in_at", "2018-12-07 02:21:07.496183"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.496511"], ["id", 11733]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11734], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8770], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11734], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8770], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SrAandcoADPrz1ZRiUdjRuyLlRbYgcRw805HS51c6UUYmF5rSytSq"], ["created_at", "2018-12-07 02:21:07.509567"], ["updated_at", "2018-12-07 02:21:07.509567"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.511569"], ["last_sign_in_at", "2018-12-07 02:21:07.511569"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.511995"], ["id", 11735]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mhfxu/QhaEeMRJXB2LpJM.W1.UtEwZecO.62pZ8bd2UpnDvHKnun."], ["created_at", "2018-12-07 02:21:07.525193"], ["updated_at", "2018-12-07 02:21:07.525193"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.526849"], ["last_sign_in_at", "2018-12-07 02:21:07.526849"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.527171"], ["id", 11736]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bLP37XQ/II/MHTNjBBFAmOLc2/2l8Y1HAp4kgkTWJ0ucHeyL9vSUm"], ["created_at", "2018-12-07 02:21:07.533173"], ["updated_at", "2018-12-07 02:21:07.533173"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.534698"], ["last_sign_in_at", "2018-12-07 02:21:07.534698"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.535037"], ["id", 11737]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gV49sAeXlW6V8AA3QpIlU.j98UEx.SQQNCGvjXz1.2./9X9Bke/.q"], ["created_at", "2018-12-07 02:21:07.545505"], ["updated_at", "2018-12-07 02:21:07.545505"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.547168"], ["last_sign_in_at", "2018-12-07 02:21:07.547168"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.547474"], ["id", 11738]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PYSv4XmDWmPvhhwFUb/SWOE.aHqk0mOAf7VxQkRiz.fLVs9VOeRoC"], ["created_at", "2018-12-07 02:21:07.560964"], ["updated_at", "2018-12-07 02:21:07.560964"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.562569"], ["updated_at", "2018-12-07 02:21:07.562569"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8771” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.564029"], ["last_sign_in_at", "2018-12-07 02:21:07.564029"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.564456"], ["id", 11739]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8771"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8771], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ie/YVZnHebs75eq3VFYq5e1Ri1zCsLYVNYooqxisc2PeBXqYAli3K"], ["created_at", "2018-12-07 02:21:07.574066"], ["updated_at", "2018-12-07 02:21:07.574066"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.575766"], ["updated_at", "2018-12-07 02:21:07.575766"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8772” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.577245"], ["last_sign_in_at", "2018-12-07 02:21:07.577245"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.577631"], ["id", 11740]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8772"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8772], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.584154"], ["updated_at", "2018-12-07 02:21:07.584154"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8773” for 127.0.0.1 at 2018-12-07 00:21:07 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8773"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$c7A9aEbxdGOCcMaNR/RfeOloZNgfnfQFcCszxB3C6dmMUFjvMTFeW"], ["created_at", "2018-12-07 02:21:07.590344"], ["updated_at", "2018-12-07 02:21:07.590344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.591943"], ["updated_at", "2018-12-07 02:21:07.591943"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8774” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.593345"], ["last_sign_in_at", "2018-12-07 02:21:07.593345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.593782"], ["id", 11741]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8774"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.601766"], ["updated_at", "2018-12-07 02:21:07.601766"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8775” for 127.0.0.1 at 2018-12-07 00:21:07 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8775"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m0ZByC7gXIl/UXm3CGXEDOiFILHO9M0bd6cKOVdisBDsXKiJxQGdW"], ["created_at", "2018-12-07 02:21:07.608868"], ["updated_at", "2018-12-07 02:21:07.608868"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.610513"], ["updated_at", "2018-12-07 02:21:07.610513"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8776/edit” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.611993"], ["last_sign_in_at", "2018-12-07 02:21:07.611993"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.612418"], ["id", 11742]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8776"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8776], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UeujsrGrJxQfj00ZBmjQDePlG5rPLpAaPk5Ou7KKWI0jv/Xbj0giy"], ["created_at", "2018-12-07 02:21:07.623059"], ["updated_at", "2018-12-07 02:21:07.623059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.624644"], ["updated_at", "2018-12-07 02:21:07.624644"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8777/edit” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.626050"], ["last_sign_in_at", "2018-12-07 02:21:07.626050"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.626446"], ["id", 11743]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8777"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8777], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.634444"], ["updated_at", "2018-12-07 02:21:07.634444"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8778” for 127.0.0.1 at 2018-12-07 00:21:07 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8778"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$88urzg3AEVeMjPHoqn7kKOmhU5HMlxkJs6P6CBu5iatsEDq1LnBW6"], ["created_at", "2018-12-07 02:21:07.641345"], ["updated_at", "2018-12-07 02:21:07.641345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.643517"], ["last_sign_in_at", "2018-12-07 02:21:07.643517"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.643876"], ["id", 11744]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.646416"], ["updated_at", "2018-12-07 02:21:07.646416"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ygrs3Q2BWy9yvx/UXiiD6OVAFfqoLw1xdBiXefzQRrUsgq0CqaxwW"], ["created_at", "2018-12-07 02:21:07.652244"], ["updated_at", "2018-12-07 02:21:07.652244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.654273"], ["last_sign_in_at", "2018-12-07 02:21:07.654273"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.654636"], ["id", 11745]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.657061"], ["updated_at", "2018-12-07 02:21:07.657061"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FnwZlFUHTN4zVKGt46WTY.f1UOQnACoWwpYuG07blEzMK0CsiGORm"], ["created_at", "2018-12-07 02:21:07.662532"], ["updated_at", "2018-12-07 02:21:07.662532"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.664867"], ["last_sign_in_at", "2018-12-07 02:21:07.664867"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.665350"], ["id", 11746]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bd6lJkYGSTWMg1VNiVDGu.mQRKSm8IVmRlW1pjYHvabzNlgwTfaHW"], ["created_at", "2018-12-07 02:21:07.674034"], ["updated_at", "2018-12-07 02:21:07.674034"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.676143"], ["last_sign_in_at", "2018-12-07 02:21:07.676143"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.676505"], ["id", 11747]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5ZjttGJ34A0VX4xfqQPhBeQhx7wohZiREqE.UbiihRuhr/R12d4UK"], ["created_at", "2018-12-07 02:21:07.684030"], ["updated_at", "2018-12-07 02:21:07.684030"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.686014"], ["last_sign_in_at", "2018-12-07 02:21:07.686014"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.686365"], ["id", 11748]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bQZFRYiAmjf.t3aQfTjd7.IcB0gsTmifSD8RFOAaBk7Zw5hzeab0u"], ["created_at", "2018-12-07 02:21:07.692357"], ["updated_at", "2018-12-07 02:21:07.692357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.693937"], ["updated_at", "2018-12-07 02:21:07.693937"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8781” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.695870"], ["last_sign_in_at", "2018-12-07 02:21:07.695870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.696332"], ["id", 11749]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8781"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8781], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:21:07.699989"], ["id", 8781]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8781 Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dDAI1v72mft8.56Myq3sceHTU2fCSk.OxfwBIACldMNOTI/bKqmd2"], ["created_at", "2018-12-07 02:21:07.706017"], ["updated_at", "2018-12-07 02:21:07.706017"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.707644"], ["updated_at", "2018-12-07 02:21:07.707644"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8782” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.709472"], ["last_sign_in_at", "2018-12-07 02:21:07.709472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.709857"], ["id", 11750]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8782"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8782], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:21:07.712855"], ["id", 8782]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8782 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IeeFGBRRNMdCmWHYNTg8/OyndbiQfY1xiCk3jfZV80cEc1T.tgLFO"], ["created_at", "2018-12-07 02:21:07.718297"], ["updated_at", "2018-12-07 02:21:07.718297"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.719897"], ["updated_at", "2018-12-07 02:21:07.719897"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8783” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.721699"], ["last_sign_in_at", "2018-12-07 02:21:07.721699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.722074"], ["id", 11751]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8783"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8783], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cwdFidhQzDcvIOqD2qyCr.AxFkJ4rzAbnw8/yR2La30WJcVHerxSm"], ["created_at", "2018-12-07 02:21:07.734378"], ["updated_at", "2018-12-07 02:21:07.734378"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.736158"], ["updated_at", "2018-12-07 02:21:07.736158"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8784” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.738031"], ["last_sign_in_at", "2018-12-07 02:21:07.738031"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.738441"], ["id", 11752]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8784"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8784], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YihicmbnvEy6k.bTDpYjhe2RYVYs68yBFdT/BKmYfGCJ4QUkII3i6"], ["created_at", "2018-12-07 02:21:07.749717"], ["updated_at", "2018-12-07 02:21:07.749717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.751831"], ["last_sign_in_at", "2018-12-07 02:21:07.751831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.752191"], ["id", 11753]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GhfnJ8vB8fUf.9GyGDeDTeQyTxYELNzBumm3yjTK68NLw3lP5G4Ke"], ["created_at", "2018-12-07 02:21:07.758177"], ["updated_at", "2018-12-07 02:21:07.758177"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.760049"], ["updated_at", "2018-12-07 02:21:07.760049"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8785” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.761928"], ["last_sign_in_at", "2018-12-07 02:21:07.761928"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.762445"], ["id", 11754]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8785"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8785], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8785]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kR5R/RYpwdCOhomBEw0T1O3tx1LcAo.zEbfrkgMhuaGvix6E9Cema"], ["created_at", "2018-12-07 02:21:07.770786"], ["updated_at", "2018-12-07 02:21:07.770786"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.772384"], ["updated_at", "2018-12-07 02:21:07.772384"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8786” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.773837"], ["last_sign_in_at", "2018-12-07 02:21:07.773837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.774264"], ["id", 11755]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8786"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8786], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8786]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VnLIOYfma5GMAxA1DyzfT.TQoLMNaaYFhQxJaU23K38zBe0ypAYGS"], ["created_at", "2018-12-07 02:21:07.781633"], ["updated_at", "2018-12-07 02:21:07.781633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.783272"], ["updated_at", "2018-12-07 02:21:07.783272"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8787” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.784657"], ["last_sign_in_at", "2018-12-07 02:21:07.784657"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.785046"], ["id", 11756]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8787"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IQwIbB/MRGANywvekoKiNeF0BC2NlgttyQhqylajEjOdUsRDEyS8."], ["created_at", "2018-12-07 02:21:07.791136"], ["updated_at", "2018-12-07 02:21:07.791136"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.792872"], ["updated_at", "2018-12-07 02:21:07.792872"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8788” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.794696"], ["last_sign_in_at", "2018-12-07 02:21:07.794696"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.795124"], ["id", 11757]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8788"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4M5ButpcXA.kcokBIVYgNOgiFbUwcK8wf76jpdmKqLIKMazAtuVqq"], ["created_at", "2018-12-07 02:21:07.801379"], ["updated_at", "2018-12-07 02:21:07.801379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.803004"], ["last_sign_in_at", "2018-12-07 02:21:07.803004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.803373"], ["id", 11758]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6i.DYDvJv3VyA6gtPw4ZfOdkoCgq3GhEVZhVy2c/ef.nxal3UGO5i"], ["created_at", "2018-12-07 02:21:07.814994"], ["updated_at", "2018-12-07 02:21:07.814994"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.816634"], ["updated_at", "2018-12-07 02:21:07.816634"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.817953"], ["updated_at", "2018-12-07 02:21:07.817953"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.819255"], ["updated_at", "2018-12-07 02:21:07.819255"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8789], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11759], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11759], ["room_id", 8789], ["created_at", "2018-12-07 02:21:07.822104"], ["updated_at", "2018-12-07 02:21:07.822104"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.823860"], ["last_sign_in_at", "2018-12-07 02:21:07.823860"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.824253"], ["id", 11759]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2KthrYjLRF3EzFsq7/vtNecZxf8/kafNwp..uCDVCI/W7UoT86zMS"], ["created_at", "2018-12-07 02:21:07.841187"], ["updated_at", "2018-12-07 02:21:07.841187"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.842790"], ["updated_at", "2018-12-07 02:21:07.842790"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.844108"], ["updated_at", "2018-12-07 02:21:07.844108"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:07.845265"], ["updated_at", "2018-12-07 02:21:07.845265"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8792], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11760], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11760], ["room_id", 8792], ["created_at", "2018-12-07 02:21:07.848149"], ["updated_at", "2018-12-07 02:21:07.848149"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:21:07 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:07.849697"], ["last_sign_in_at", "2018-12-07 02:21:07.849697"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:07.850055"], ["id", 11760]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8754 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8754 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8754 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8755 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8755 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8755 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8756 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8756 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8756 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8757 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8757 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8757 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8758 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8758 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = 8758 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00') LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL) LIMIT $1  [["LIMIT", 11]]
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uTVX/61nQIC7VtE0SBD1j.kTFCLx6qlhrFUyVPHlkUk3nVj1MhVSW"], ["created_at", "2018-12-07 02:21:31.461714"], ["updated_at", "2018-12-07 02:21:31.461714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2gbFpjR9l94Pt0u6sn3BKOYUZXofQ536mErLOrY4mlZkl2VF90M/e"], ["created_at", "2018-12-07 02:21:31.467443"], ["updated_at", "2018-12-07 02:21:31.467443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.482060"], ["updated_at", "2018-12-07 02:21:31.482060"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8795], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11762], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11762], ["room_id", 8795], ["created_at", "2018-12-07 02:21:31.516636"], ["updated_at", "2018-12-07 02:21:31.516636"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4603"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4603], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8795], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11762], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 132.2ms Sent mail to 123@123.com (5.5ms) Date: Fri, 07 Dec 2018 00:21:31 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d92ba55cb_51ff2b0b85e6e5f4817b8@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d92ba4756_51ff2b0b85e6e5f4816ed";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d92ba4756_51ff2b0b85e6e5f4816ed Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d92ba4756_51ff2b0b85e6e5f4816ed Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d92ba4756_51ff2b0b85e6e5f4816ed–

Completed 302 Found in 152ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lER/.nYi3Tt1VyZvuwXE6uiDRpz3RYQkk47kygUj19Rn8kC79K382"], ["created_at", "2018-12-07 02:21:31.684616"], ["updated_at", "2018-12-07 02:21:31.684616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$x0tNEJNS9KZ433t7w71rO.F1mWUX9GVvYnv1/A9BL6ELpF3OxkBC."], ["created_at", "2018-12-07 02:21:31.687845"], ["updated_at", "2018-12-07 02:21:31.687845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.689264"], ["updated_at", "2018-12-07 02:21:31.689264"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8796], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11764], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11764], ["room_id", 8796], ["created_at", "2018-12-07 02:21:31.692255"], ["updated_at", "2018-12-07 02:21:31.692255"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4604"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4604], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8796], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11764], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:21:31.697022"], ["id", 4604]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:21:31 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d92bab250_51ff2b0b85e6e5f48191c@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d92baacdb_51ff2b0b85e6e5f4818ef";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d92baacdb_51ff2b0b85e6e5f4818ef Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d92baacdb_51ff2b0b85e6e5f4818ef Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d92baacdb_51ff2b0b85e6e5f4818ef–

Completed 302 Found in 9ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8FP8v4MTmLSpXrkSnPNY/uMgDnQFNKGQ5C0motDpasUKO.BzLb96u"], ["created_at", "2018-12-07 02:21:31.706301"], ["updated_at", "2018-12-07 02:21:31.706301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RtNTlUc9z0tzT7Y0Ieqv9.DgzsxbGqe6/trn4OND./MykGf9HtD4W"], ["created_at", "2018-12-07 02:21:31.709717"], ["updated_at", "2018-12-07 02:21:31.709717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.711479"], ["updated_at", "2018-12-07 02:21:31.711479"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8797], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11766], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11766], ["room_id", 8797], ["created_at", "2018-12-07 02:21:31.715093"], ["updated_at", "2018-12-07 02:21:31.715093"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rkGKqbDl.VoQSlLxy0CmjOc15NGvWWC43iLayP/5h4AYccVTU2ZmW"], ["created_at", "2018-12-07 02:21:31.721451"], ["updated_at", "2018-12-07 02:21:31.721451"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hyQJJvlfhl6QtwftdPQTdORhy55jX4ONMdg4nsJ7TCG8/XxyEOMUq"], ["created_at", "2018-12-07 02:21:31.724637"], ["updated_at", "2018-12-07 02:21:31.724637"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.726158"], ["updated_at", "2018-12-07 02:21:31.726158"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8798], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11768], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11768], ["room_id", 8798], ["created_at", "2018-12-07 02:21:31.729188"], ["updated_at", "2018-12-07 02:21:31.729188"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4606], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$cK5U2pUzhEhwXPjtlYugH.2XleHiopFWOx/Jb63fpNzdNXfvRrVIW"], ["created_at", "2018-12-07 02:21:31.734347"], ["updated_at", "2018-12-07 02:21:31.734347"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11769"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "WCC6JGa-KQIvzWxX8g9VTA"], ["updated_at", "2018-12-07 02:21:31.737646"], ["id", 11769]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:21:31.739031"], ["reset_sent_at", "2018-12-07 02:21:31.738737"], ["id", 11769]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:21:31 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d92bb62cb_51ff2b0b85e6e5f482218@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d92bb5cf8_51ff2b0b85e6e5f48215";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d92bb5cf8_51ff2b0b85e6e5f48215 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/WCC6JGa-KQIvzWxX8g9VTA/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d92bb5cf8_51ff2b0b85e6e5f48215 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/WCC6JGa-KQIvzWxX8g9VTA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d92bb5cf8_51ff2b0b85e6e5f48215–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$XWbkode2V6R7Tm2iD1GsOuTE/mctymm7N0RnaVFQZj.5dPYN6Xr9m"], ["created_at", "2018-12-07 02:21:31.751963"], ["updated_at", "2018-12-07 02:21:31.751963"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$6EyjHfUnKq3Jv3yte2wmZucTrSvEWddMRxPiSPoO/Vi.1f13MuB1."], ["created_at", "2018-12-07 02:21:31.759281"], ["updated_at", "2018-12-07 02:21:31.759281"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11771"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$FPK1D6TVRxfL0W7wl4TR0.Hdc6jtnrUdjlux9brRG1lQI3VTeqjp6"], ["updated_at", "2018-12-07 02:21:31.763430"], ["id", 11771]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$w2v7Z0evFojwAX.6rbBEDu9CfwrYMHVlJ3IT4BwWEuMYRFxXE3afi"], ["created_at", "2018-12-07 02:21:31.768353"], ["updated_at", "2018-12-07 02:21:31.768353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11772"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$7xvHnmpS6cHKfQGbDX3fWuucZy1z8VsauyuMRbYC6WHZxibosI/TC"], ["created_at", "2018-12-07 02:21:31.776581"], ["updated_at", "2018-12-07 02:21:31.776581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11773"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$zXipwLttVUyMYXOwI/.2W.Xl9.ZAA8mUzMc2dmY9mU.D1BS0JklOG"], ["created_at", "2018-12-07 02:21:31.789826"], ["updated_at", "2018-12-07 02:21:31.789826"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11774"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$9N.//GHdqUDlfgOByxwaKef1mDY5vGBOWp5wGj6pPsV696bC2kAMW"], ["created_at", "2018-12-07 02:21:31.798232"], ["updated_at", "2018-12-07 02:21:31.798232"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11775"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$37ITaF.370Hob41so.ktoO4EyvE2OSnYXjBsiT1R51BtLx9iF9wjS"], ["created_at", "2018-12-07 02:21:31.806399"], ["updated_at", "2018-12-07 02:21:31.806399"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1BYlSETxqqa5o4uFlwQIG.8ixBarXXm5ynaglfon5lh5W4bI9JwNO"], ["created_at", "2018-12-07 02:21:31.813080"], ["updated_at", "2018-12-07 02:21:31.813080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yGbXmX2JP1Hajr..sHDgqOH/w0VUYs1m0jx6jQ6yK8xMu5ddLlwtm"], ["created_at", "2018-12-07 02:21:31.819852"], ["updated_at", "2018-12-07 02:21:31.819852"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.821317"], ["updated_at", "2018-12-07 02:21:31.821317"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8799], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11778], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11778], ["room_id", 8799], ["created_at", "2018-12-07 02:21:31.824235"], ["updated_at", "2018-12-07 02:21:31.824235"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zXZx6Aj3nc3f9rW2wbi65uUikLcRQZdOc/a2E4CfKXFOwGy7Vu08m"], ["created_at", "2018-12-07 02:21:31.830529"], ["updated_at", "2018-12-07 02:21:31.830529"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.832063"], ["updated_at", "2018-12-07 02:21:31.832063"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8800], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11779], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11779], ["room_id", 8800], ["created_at", "2018-12-07 02:21:31.835102"], ["updated_at", "2018-12-07 02:21:31.835102"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.2ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/fE1zQP7gK50ZMtqTFz8uOW8LhHBWSlvJdyZhWLwElE69rfsq12Oe"], ["created_at", "2018-12-07 02:21:31.857975"], ["updated_at", "2018-12-07 02:21:31.857975"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.859549"], ["updated_at", "2018-12-07 02:21:31.859549"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.866740"], ["last_sign_in_at", "2018-12-07 02:21:31.866740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.867269"], ["id", 11780]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8801"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8801 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8801], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11780], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11780], ["room_id", 8801], ["created_at", "2018-12-07 02:21:31.876083"], ["updated_at", "2018-12-07 02:21:31.876083"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8801], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OAqKWdZfexP3wl5R6DRmdentinPRSgonL4fC/Tv1gi3bvbZgiRMjm"], ["created_at", "2018-12-07 02:21:31.882483"], ["updated_at", "2018-12-07 02:21:31.882483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.883970"], ["updated_at", "2018-12-07 02:21:31.883970"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.885797"], ["last_sign_in_at", "2018-12-07 02:21:31.885797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.886198"], ["id", 11781]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8802"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8802 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8802], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11781], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11781], ["room_id", 8802], ["created_at", "2018-12-07 02:21:31.890510"], ["updated_at", "2018-12-07 02:21:31.890510"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IF1XkYdBu2leYBuDs.Np9.KLoY7jUOvfjgHg9In0m7x5i85SKG/H6"], ["created_at", "2018-12-07 02:21:31.895569"], ["updated_at", "2018-12-07 02:21:31.895569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.897026"], ["updated_at", "2018-12-07 02:21:31.897026"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.899256"], ["last_sign_in_at", "2018-12-07 02:21:31.899256"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.899689"], ["id", 11782]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8803", "user_id"=>"11782"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8803 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8803], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11782], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11782], ["room_id", 8803], ["created_at", "2018-12-07 02:21:31.904724"], ["updated_at", "2018-12-07 02:21:31.904724"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8803", "user_id"=>"11782"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11782], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8803 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8803], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11782], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11782], ["room_id", 8803], ["created_at", "2018-12-07 02:21:31.910984"], ["updated_at", "2018-12-07 02:21:31.910984"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2THcJsBFI8vyJrxkZVL5N.CjkSFPvMlqwSWY8fcvPSkUX2aKIS1fG"], ["created_at", "2018-12-07 02:21:31.915944"], ["updated_at", "2018-12-07 02:21:31.915944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.917427"], ["updated_at", "2018-12-07 02:21:31.917427"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.919474"], ["last_sign_in_at", "2018-12-07 02:21:31.919474"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.919839"], ["id", 11783]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8804", "user_id"=>"11783"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8804 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8804], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11783], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11783], ["room_id", 8804], ["created_at", "2018-12-07 02:21:31.924067"], ["updated_at", "2018-12-07 02:21:31.924067"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8804", "user_id"=>"11783"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11783], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8804 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8804], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11783], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11783], ["room_id", 8804], ["created_at", "2018-12-07 02:21:31.929960"], ["updated_at", "2018-12-07 02:21:31.929960"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8804], ["user_id", 11783], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$555ymPjCXUx6lOrISFSrzO0fiF2Vu2QaSItL13hER2NsBENYNiqRe"], ["created_at", "2018-12-07 02:21:31.944259"], ["updated_at", "2018-12-07 02:21:31.944259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.945861"], ["updated_at", "2018-12-07 02:21:31.945861"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.947990"], ["last_sign_in_at", "2018-12-07 02:21:31.947990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.948337"], ["id", 11784]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8805", "user_id"=>"11784"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8805 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8805], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11784], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11784], ["room_id", 8805], ["created_at", "2018-12-07 02:21:31.952927"], ["updated_at", "2018-12-07 02:21:31.952927"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8805", "user_id"=>"11784"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11784], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8805 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8805], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11784], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11784], ["room_id", 8805], ["created_at", "2018-12-07 02:21:31.959186"], ["updated_at", "2018-12-07 02:21:31.959186"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8805], ["user_id", 11784], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zxcb03ZvITwfDW0lrKFFt.BT7TMs4qZGK2Y3ynmrQvKV7OpIifIca"], ["created_at", "2018-12-07 02:21:31.965302"], ["updated_at", "2018-12-07 02:21:31.965302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.966979"], ["updated_at", "2018-12-07 02:21:31.966979"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.968833"], ["last_sign_in_at", "2018-12-07 02:21:31.968833"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.969207"], ["id", 11785]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8806"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8806], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$16PIov9gzsh9SA3W9e5d9.9RApQtAHbGE81ag.mr1QzQr35LBg8X6"], ["created_at", "2018-12-07 02:21:31.976300"], ["updated_at", "2018-12-07 02:21:31.976300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.977795"], ["updated_at", "2018-12-07 02:21:31.977795"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.979496"], ["last_sign_in_at", "2018-12-07 02:21:31.979496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.979839"], ["id", 11786]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8807"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gbTdnYwYaV3f1zBAQFXH2uKKIw4sFJbKsqRLKirHcxpfXe267KDl2"], ["created_at", "2018-12-07 02:21:31.986262"], ["updated_at", "2018-12-07 02:21:31.986262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:31.987708"], ["updated_at", "2018-12-07 02:21:31.987708"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8808], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11787], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11787], ["room_id", 8808], ["created_at", "2018-12-07 02:21:31.990414"], ["updated_at", "2018-12-07 02:21:31.990414"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8808” for 127.0.0.1 at 2018-12-07 00:21:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:31.991905"], ["last_sign_in_at", "2018-12-07 02:21:31.991905"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:31.992311"], ["id", 11787]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8808"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8808], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8808')
Rendered appointments/show.html.erb within layouts/application (6.2ms)
Rendered layouts/_header-user.html.erb (3.0ms)

Completed 200 OK in 155ms (Views: 152.7ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XndTRQ38E9DGibNx965abe5ej6JQGh5gNy/xjewCrJGit3sgitHC6"], ["created_at", "2018-12-07 02:21:32.156194"], ["updated_at", "2018-12-07 02:21:32.156194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.160744"], ["updated_at", "2018-12-07 02:21:32.160744"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8809], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11788], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11788], ["room_id", 8809], ["created_at", "2018-12-07 02:21:32.166845"], ["updated_at", "2018-12-07 02:21:32.166845"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4618/edit” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.170237"], ["last_sign_in_at", "2018-12-07 02:21:32.170237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.170758"], ["id", 11788]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4618"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4618], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (3.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 11ms (Views: 9.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5V7rEhS4E7NKeGR0G8V5be7Yy78hQOLWHOISvIR5zRW0PRa8JeBr2"], ["created_at", "2018-12-07 02:21:32.192278"], ["updated_at", "2018-12-07 02:21:32.192278"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.6ms)  SAVEPOINT active_record_1
SQL (1.0ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.195223"], ["last_sign_in_at", "2018-12-07 02:21:32.195223"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.196162"], ["id", 11789]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (2.3ms)

Completed 200 OK in 14ms (Views: 13.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eKAbtWP4Xq9nBRS5lyOnbuW91WfVmlYSMOuufG/hzcxv39DLgUCji"], ["created_at", "2018-12-07 02:21:32.221108"], ["updated_at", "2018-12-07 02:21:32.221108"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.224244"], ["updated_at", "2018-12-07 02:21:32.224244"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.7ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8810], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11790], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11790], ["room_id", 8810], ["created_at", "2018-12-07 02:21:32.229934"], ["updated_at", "2018-12-07 02:21:32.229934"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8810], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11790], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11790], ["room_id", 8810], ["created_at", "2018-12-07 02:21:32.235106"], ["updated_at", "2018-12-07 02:21:32.235106"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.237326"], ["last_sign_in_at", "2018-12-07 02:21:32.237326"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.237772"], ["id", 11790]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11790]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 22ms (Views: 5.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jItl9gxUV60eBTgiigIHiePXxR4gqj1d76pJZhilizIkd8SM03zxq"], ["created_at", "2018-12-07 02:21:32.268140"], ["updated_at", "2018-12-07 02:21:32.268140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.270054"], ["updated_at", "2018-12-07 02:21:32.270054"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8811], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11791], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11791], ["room_id", 8811], ["created_at", "2018-12-07 02:21:32.273687"], ["updated_at", "2018-12-07 02:21:32.273687"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8811], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11791], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11791], ["room_id", 8811], ["created_at", "2018-12-07 02:21:32.277631"], ["updated_at", "2018-12-07 02:21:32.277631"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.279531"], ["last_sign_in_at", "2018-12-07 02:21:32.279531"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.279978"], ["id", 11791]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11791]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$leC/p4Ay/I5bi3.IGMtLKOGLJfolejZEQap4Rc.oUI7y677G98KYi"], ["created_at", "2018-12-07 02:21:32.290457"], ["updated_at", "2018-12-07 02:21:32.290457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.292167"], ["updated_at", "2018-12-07 02:21:32.292167"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8812], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11792], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11792], ["room_id", 8812], ["created_at", "2018-12-07 02:21:32.295339"], ["updated_at", "2018-12-07 02:21:32.295339"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4623” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.296924"], ["last_sign_in_at", "2018-12-07 02:21:32.296924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.297301"], ["id", 11792]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4623"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4623], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4623]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UZZ7fW469KIBAdD3SVyooe/K0U0LvswUrUQms.5jm90RC4ZaJ9VD6"], ["created_at", "2018-12-07 02:21:32.306280"], ["updated_at", "2018-12-07 02:21:32.306280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.308347"], ["updated_at", "2018-12-07 02:21:32.308347"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HQ9yBJn29grICLYtjJ9E/.SxUTDXguYl.auopT5IPRwUt1RLkwQe6"], ["created_at", "2018-12-07 02:21:32.311686"], ["updated_at", "2018-12-07 02:21:32.311686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8813], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11794], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11794], ["room_id", 8813], ["created_at", "2018-12-07 02:21:32.314699"], ["updated_at", "2018-12-07 02:21:32.314699"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4624” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.316614"], ["last_sign_in_at", "2018-12-07 02:21:32.316614"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.316991"], ["id", 11793]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4624"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4624], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8813], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11794], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yUjyfbGsvzNxGEPfQw6Z1O2Ewx.vZIoWB1imSZ2kDmmxETVfcHjbG"], ["created_at", "2018-12-07 02:21:32.326500"], ["updated_at", "2018-12-07 02:21:32.326500"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.328085"], ["updated_at", "2018-12-07 02:21:32.328085"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9bc7wUmeuXARxMaNda3Z4utg76zSBXCJNl9dfFgUXoxkYhOxE4Cui"], ["created_at", "2018-12-07 02:21:32.331147"], ["updated_at", "2018-12-07 02:21:32.331147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8814], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11796], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11796], ["room_id", 8814], ["created_at", "2018-12-07 02:21:32.334099"], ["updated_at", "2018-12-07 02:21:32.334099"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4625” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.336118"], ["last_sign_in_at", "2018-12-07 02:21:32.336118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.336553"], ["id", 11795]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4625"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4625], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8814], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11796], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DP6Ld8v1getUTKV/9QVpReOmte7qSWplYxL8xcrOxqiT5up64vaGy"], ["created_at", "2018-12-07 02:21:32.346203"], ["updated_at", "2018-12-07 02:21:32.346203"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.347819"], ["updated_at", "2018-12-07 02:21:32.347819"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$djsMSrTW/t9rjdLa54hTq.ONOv9GfhdzTTWm8taExA5h1cPfDDQC2"], ["created_at", "2018-12-07 02:21:32.350894"], ["updated_at", "2018-12-07 02:21:32.350894"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8815], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11798], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11798], ["room_id", 8815], ["created_at", "2018-12-07 02:21:32.353861"], ["updated_at", "2018-12-07 02:21:32.353861"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4626” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.355846"], ["last_sign_in_at", "2018-12-07 02:21:32.355846"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.356222"], ["id", 11797]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4626"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4626], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8815], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11798], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:21:32.360385"], ["id", 4626]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.3ms) Date: Fri, 07 Dec 2018 00:21:32 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d92c58ef3_51ff2b0b85e6e5f4829a9@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d92c58921_51ff2b0b85e6e5f482814";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d92c58921_51ff2b0b85e6e5f482814 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d92c58921_51ff2b0b85e6e5f482814 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d92c58921_51ff2b0b85e6e5f482814–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8BS/C4KvrewNUYvaUwllyekvBvIDWIBPDoP.XDmZCZugNNTzl/nMm"], ["created_at", "2018-12-07 02:21:32.371160"], ["updated_at", "2018-12-07 02:21:32.371160"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.372969"], ["updated_at", "2018-12-07 02:21:32.372969"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$p7prueBE498SdS89qFriROkMeuhGOg1lEehneoltNN5ljcVHvyfMW"], ["created_at", "2018-12-07 02:21:32.376260"], ["updated_at", "2018-12-07 02:21:32.376260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8816], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11800], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11800], ["room_id", 8816], ["created_at", "2018-12-07 02:21:32.379349"], ["updated_at", "2018-12-07 02:21:32.379349"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:21:32.380731"], ["id", 4627]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8816], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11800], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11800], ["room_id", 8816], ["created_at", "2018-12-07 02:21:32.383310"], ["updated_at", "2018-12-07 02:21:32.383310"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:21:32.384579"], ["id", 4628]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.386011"], ["last_sign_in_at", "2018-12-07 02:21:32.386011"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.386362"], ["id", 11799]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11800], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8816], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11800], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8816], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sCfM1yKyerhNpSpmU72bOe4HJsOAjqbHZNflTSMMCcPjbnVp3ZXSq"], ["created_at", "2018-12-07 02:21:32.399103"], ["updated_at", "2018-12-07 02:21:32.399103"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.400782"], ["updated_at", "2018-12-07 02:21:32.400782"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Uy35V47t3.VvEkivyHEQ4usgt0MT5hzto9hT/rdxT6tKNy7ndIHNS"], ["created_at", "2018-12-07 02:21:32.404531"], ["updated_at", "2018-12-07 02:21:32.404531"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8817], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11802], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11802], ["room_id", 8817], ["created_at", "2018-12-07 02:21:32.407887"], ["updated_at", "2018-12-07 02:21:32.407887"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:21:32.409277"], ["id", 4629]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8817], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11802], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11802], ["room_id", 8817], ["created_at", "2018-12-07 02:21:32.411901"], ["updated_at", "2018-12-07 02:21:32.411901"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:21:32.413148"], ["id", 4630]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.414558"], ["last_sign_in_at", "2018-12-07 02:21:32.414558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.414944"], ["id", 11801]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11802], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8817], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11802], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8817], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$idiQK01ZWJlxvMH/zOKg9.wCHTK6z.JM/Oa3KPq.WTkUXOOXUiKwq"], ["created_at", "2018-12-07 02:21:32.427106"], ["updated_at", "2018-12-07 02:21:32.427106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.428745"], ["last_sign_in_at", "2018-12-07 02:21:32.428745"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.429077"], ["id", 11803]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5IM9r3Ln1QBF7Jw/ftdXS.UdizSt53YXDST7Ktm/MsePXeU17gYHS"], ["created_at", "2018-12-07 02:21:32.443038"], ["updated_at", "2018-12-07 02:21:32.443038"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.444858"], ["last_sign_in_at", "2018-12-07 02:21:32.444858"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.445282"], ["id", 11804]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LvB0R0JRDXAuIreXe2gmaeaaHeNKNxXuFNvw.5yahXkYwb.9FaeF6"], ["created_at", "2018-12-07 02:21:32.451313"], ["updated_at", "2018-12-07 02:21:32.451313"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.452907"], ["last_sign_in_at", "2018-12-07 02:21:32.452907"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.453269"], ["id", 11805]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7Viv0DRzcaAU7xVcPxImaeJ48VdYUjVyi3gASykFEUUraxW5ITrZ6"], ["created_at", "2018-12-07 02:21:32.463075"], ["updated_at", "2018-12-07 02:21:32.463075"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.465068"], ["last_sign_in_at", "2018-12-07 02:21:32.465068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.465538"], ["id", 11806]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2Cx6mx.8LPU2yGV7Z67Dou.wFz2dXG86lPS/y13Zy34rkq6UvtqPW"], ["created_at", "2018-12-07 02:21:32.480195"], ["updated_at", "2018-12-07 02:21:32.480195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.481799"], ["updated_at", "2018-12-07 02:21:32.481799"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8818” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.483286"], ["last_sign_in_at", "2018-12-07 02:21:32.483286"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.483706"], ["id", 11807]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8818"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8818], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8tdbHYyORTrgYD0BCGW71uhtQAwmMRyNyNZSpfeV0ceEkKNY2lMhW"], ["created_at", "2018-12-07 02:21:32.493109"], ["updated_at", "2018-12-07 02:21:32.493109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.494990"], ["updated_at", "2018-12-07 02:21:32.494990"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8819” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.496587"], ["last_sign_in_at", "2018-12-07 02:21:32.496587"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.497001"], ["id", 11808]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8819"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8819], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.504123"], ["updated_at", "2018-12-07 02:21:32.504123"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8820” for 127.0.0.1 at 2018-12-07 00:21:32 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8820"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/ZO3Gw8JHZAlf6/ljpLxA.hXP6j/tCnfYUTS0oWSoOxNPPUS9TkZi"], ["created_at", "2018-12-07 02:21:32.510450"], ["updated_at", "2018-12-07 02:21:32.510450"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.512097"], ["updated_at", "2018-12-07 02:21:32.512097"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8821” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.513515"], ["last_sign_in_at", "2018-12-07 02:21:32.513515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.513964"], ["id", 11809]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8821"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.521983"], ["updated_at", "2018-12-07 02:21:32.521983"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8822” for 127.0.0.1 at 2018-12-07 00:21:32 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8822"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pgSKt2GWpgZX9T3LC2U0Seonktg2757TR4yQ2qKWavM3BSOxbn6c."], ["created_at", "2018-12-07 02:21:32.528711"], ["updated_at", "2018-12-07 02:21:32.528711"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.530628"], ["updated_at", "2018-12-07 02:21:32.530628"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8823/edit” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.532158"], ["last_sign_in_at", "2018-12-07 02:21:32.532158"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.532556"], ["id", 11810]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8823"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8823], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jPV0oxafS37Dbns7VUCUQ.RDWjsqv7/W7.oNIfwfdmkwDzJQEfONW"], ["created_at", "2018-12-07 02:21:32.543414"], ["updated_at", "2018-12-07 02:21:32.543414"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.544993"], ["updated_at", "2018-12-07 02:21:32.544993"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8824/edit” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.546514"], ["last_sign_in_at", "2018-12-07 02:21:32.546514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.546912"], ["id", 11811]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8824"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8824], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.554678"], ["updated_at", "2018-12-07 02:21:32.554678"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8825” for 127.0.0.1 at 2018-12-07 00:21:32 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8825"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5hSCsfSEPdQPkubaERQVfONNSxmNpC1A5uu4karVH8PhRQfnajDAO"], ["created_at", "2018-12-07 02:21:32.561759"], ["updated_at", "2018-12-07 02:21:32.561759"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.564041"], ["last_sign_in_at", "2018-12-07 02:21:32.564041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.564424"], ["id", 11812]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.566971"], ["updated_at", "2018-12-07 02:21:32.566971"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3JdY2n/RwGj1gNyoVSS8ae6ZGgOrVXuzVtvYyYgCTCL5XfsfrKKHC"], ["created_at", "2018-12-07 02:21:32.572787"], ["updated_at", "2018-12-07 02:21:32.572787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.574798"], ["last_sign_in_at", "2018-12-07 02:21:32.574798"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.575173"], ["id", 11813]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.577564"], ["updated_at", "2018-12-07 02:21:32.577564"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Oz66tPqn5Gm.5BYPtt9kBeGy27BKdS5w/pguUI3xgennp3J0yKzRS"], ["created_at", "2018-12-07 02:21:32.582795"], ["updated_at", "2018-12-07 02:21:32.582795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.584800"], ["last_sign_in_at", "2018-12-07 02:21:32.584800"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.585140"], ["id", 11814]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$t2QQyiKbyUNB78uoND3NtucTbHmG2yUHrNhp4uQDvmaA7fSjHS0jG"], ["created_at", "2018-12-07 02:21:32.593570"], ["updated_at", "2018-12-07 02:21:32.593570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.595764"], ["last_sign_in_at", "2018-12-07 02:21:32.595764"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.596125"], ["id", 11815]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VFYc4KNzLEJeJR0wbaC5Qe69t4deeOXcLVGyRn0IjEyN11n4oWRyS"], ["created_at", "2018-12-07 02:21:32.603525"], ["updated_at", "2018-12-07 02:21:32.603525"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.605756"], ["last_sign_in_at", "2018-12-07 02:21:32.605756"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.606163"], ["id", 11816]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UUqN3YJDAGG5DU06N355PuhyiQAfeVBBMjybDi8RvpEnlRw31e0ny"], ["created_at", "2018-12-07 02:21:32.612344"], ["updated_at", "2018-12-07 02:21:32.612344"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.613912"], ["updated_at", "2018-12-07 02:21:32.613912"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8828” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.615718"], ["last_sign_in_at", "2018-12-07 02:21:32.615718"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.616133"], ["id", 11817]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8828"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8828], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:21:32.619176"], ["id", 8828]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8828 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$344u/G4QB.G6NJq7loARn.ezFD5v3LQY3cOqyQtL1o/lHbwlivSyW"], ["created_at", "2018-12-07 02:21:32.625893"], ["updated_at", "2018-12-07 02:21:32.625893"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.627837"], ["updated_at", "2018-12-07 02:21:32.627837"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8829” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.629694"], ["last_sign_in_at", "2018-12-07 02:21:32.629694"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.630135"], ["id", 11818]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8829"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8829], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:21:32.633200"], ["id", 8829]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8829 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$r95a9CkKm1a6Nvh8U0Nj5.yMfaq.MG6wWPcqQ6ZniUbQ5RqMKB.Me"], ["created_at", "2018-12-07 02:21:32.638593"], ["updated_at", "2018-12-07 02:21:32.638593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.640242"], ["updated_at", "2018-12-07 02:21:32.640242"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8830” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.642016"], ["last_sign_in_at", "2018-12-07 02:21:32.642016"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.642434"], ["id", 11819]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8830"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8830], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$grXf17QGnsV2l3eSdHgiyOLE/QY74G7EUkvmsyzO7WzzIRgmnBfi."], ["created_at", "2018-12-07 02:21:32.654346"], ["updated_at", "2018-12-07 02:21:32.654346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.656310"], ["updated_at", "2018-12-07 02:21:32.656310"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8831” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.658180"], ["last_sign_in_at", "2018-12-07 02:21:32.658180"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.658562"], ["id", 11820]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8831"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8831], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LxONdoaUt1.nVjQXZXTbW.Jb49BIie8xQ7qbwsJel6Bt/kuujxF9q"], ["created_at", "2018-12-07 02:21:32.669614"], ["updated_at", "2018-12-07 02:21:32.669614"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.671742"], ["last_sign_in_at", "2018-12-07 02:21:32.671742"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.672089"], ["id", 11821]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KOgxOoII3pfdBuK2825G8OaoryGcaYOd5/LGmfkHP.MF.rkEb1HjW"], ["created_at", "2018-12-07 02:21:32.677932"], ["updated_at", "2018-12-07 02:21:32.677932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.679462"], ["updated_at", "2018-12-07 02:21:32.679462"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8832” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.680841"], ["last_sign_in_at", "2018-12-07 02:21:32.680841"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.681261"], ["id", 11822]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8832"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8832], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8832]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ldnxWbYZaam14f5k4wXRheTAzvTIz0r9EYUtCxMfAp1Q8FxHa8qvK"], ["created_at", "2018-12-07 02:21:32.690365"], ["updated_at", "2018-12-07 02:21:32.690365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.692137"], ["updated_at", "2018-12-07 02:21:32.692137"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8833” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.693552"], ["last_sign_in_at", "2018-12-07 02:21:32.693552"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.693968"], ["id", 11823]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8833"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8833], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8833]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XbTtrSxIYvydm4SimytTBegXeOfAXI2W5NuENZwZl4ptRnATwArRO"], ["created_at", "2018-12-07 02:21:32.701410"], ["updated_at", "2018-12-07 02:21:32.701410"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.703014"], ["updated_at", "2018-12-07 02:21:32.703014"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8834” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.704432"], ["last_sign_in_at", "2018-12-07 02:21:32.704432"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.704851"], ["id", 11824]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8834"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WDfFm9FclYCp.IBv5J01TOqS12tGYaeYwxMaqpjVnLKjACBQvpSVi"], ["created_at", "2018-12-07 02:21:32.711015"], ["updated_at", "2018-12-07 02:21:32.711015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.712495"], ["updated_at", "2018-12-07 02:21:32.712495"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8835” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.713926"], ["last_sign_in_at", "2018-12-07 02:21:32.713926"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.714368"], ["id", 11825]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8835"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 1ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tn/oLB26Nk61hKrwHVjaOuKvKe4WLHK/91Jrt0JXqupxxvgQERaqm"], ["created_at", "2018-12-07 02:21:32.721658"], ["updated_at", "2018-12-07 02:21:32.721658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.723452"], ["last_sign_in_at", "2018-12-07 02:21:32.723452"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.723794"], ["id", 11826]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$./1LxyuvAHSh1VLMtBvg.uwjF.eEg.qdT7gJwH5Ql.RVceqlIDdRC"], ["created_at", "2018-12-07 02:21:32.735467"], ["updated_at", "2018-12-07 02:21:32.735467"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.737014"], ["updated_at", "2018-12-07 02:21:32.737014"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.738210"], ["updated_at", "2018-12-07 02:21:32.738210"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.739426"], ["updated_at", "2018-12-07 02:21:32.739426"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8836], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11827], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11827], ["room_id", 8836], ["created_at", "2018-12-07 02:21:32.742215"], ["updated_at", "2018-12-07 02:21:32.742215"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.743805"], ["last_sign_in_at", "2018-12-07 02:21:32.743805"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.744164"], ["id", 11827]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IgFIMf9iGS8N6Yd1c7KxW.hrboYQQRkpnDkUAXkOBIfZFmNk3.XaK"], ["created_at", "2018-12-07 02:21:32.761910"], ["updated_at", "2018-12-07 02:21:32.761910"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.763521"], ["updated_at", "2018-12-07 02:21:32.763521"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.764740"], ["updated_at", "2018-12-07 02:21:32.764740"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:32.765909"], ["updated_at", "2018-12-07 02:21:32.765909"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8839], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11828], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11828], ["room_id", 8839], ["created_at", "2018-12-07 02:21:32.768816"], ["updated_at", "2018-12-07 02:21:32.768816"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:21:32 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:32.770262"], ["last_sign_in_at", "2018-12-07 02:21:32.770262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:32.770600"], ["id", 11828]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NpbC/98sAtUDwQIrYpityutXxKMAI7DoadR5cQ4cWBAyNqxYkY.36"], ["created_at", "2018-12-07 02:21:59.140465"], ["updated_at", "2018-12-07 02:21:59.140465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vA.hXOWa35uA318hWbRUYuN9FXaGY9nFOqXYroGpChR96JGRlAmme"], ["created_at", "2018-12-07 02:21:59.146043"], ["updated_at", "2018-12-07 02:21:59.146043"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.159449"], ["updated_at", "2018-12-07 02:21:59.159449"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8842], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11830], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11830], ["room_id", 8842], ["created_at", "2018-12-07 02:21:59.192059"], ["updated_at", "2018-12-07 02:21:59.192059"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4633"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4633], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8842], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11830], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 128.5ms Sent mail to 123@123.com (5.4ms) Date: Fri, 07 Dec 2018 00:21:59 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d947558d8_522b2b205bcc46004515b@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d94754afa_522b2b205bcc4600450e7";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d94754afa_522b2b205bcc4600450e7 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d94754afa_522b2b205bcc4600450e7 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d94754afa_522b2b205bcc4600450e7–

Completed 302 Found in 150ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bdWyMXcHn0rnvmeBMVqtruKt.0oJDs2ES6p8ksoBRWrGuyxSXU8ei"], ["created_at", "2018-12-07 02:21:59.357486"], ["updated_at", "2018-12-07 02:21:59.357486"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6PRff0jq.KJomVzjxHNRVeqklGkKs7EKZeKdDSmuMVcD4jq6oZJV."], ["created_at", "2018-12-07 02:21:59.360465"], ["updated_at", "2018-12-07 02:21:59.360465"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.361824"], ["updated_at", "2018-12-07 02:21:59.361824"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8843], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11832], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11832], ["room_id", 8843], ["created_at", "2018-12-07 02:21:59.364583"], ["updated_at", "2018-12-07 02:21:59.364583"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4634"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4634], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8843], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11832], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:21:59.368846"], ["id", 4634]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms Sent mail to 123@123.com (2.1ms) Date: Fri, 07 Dec 2018 00:21:59 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d9475afb2_522b2b205bcc460045337@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9475aa69_522b2b205bcc460045269";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9475aa69_522b2b205bcc460045269 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d9475aa69_522b2b205bcc460045269 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9475aa69_522b2b205bcc460045269–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RwziNel/8u4U08xmA3CxRe11EVO0X1AiVrUQQ5z6Av9ZBinZUQGmS"], ["created_at", "2018-12-07 02:21:59.378059"], ["updated_at", "2018-12-07 02:21:59.378059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1169YxEKiZfxoJfYPMKzvOZ7bcY/rabZ73JHkdCfAw9OC7Qv4a9Mi"], ["created_at", "2018-12-07 02:21:59.381357"], ["updated_at", "2018-12-07 02:21:59.381357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.383007"], ["updated_at", "2018-12-07 02:21:59.383007"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8844], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11834], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11834], ["room_id", 8844], ["created_at", "2018-12-07 02:21:59.386470"], ["updated_at", "2018-12-07 02:21:59.386470"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OsBHNevzyEF/O5H5d1h9Ce9Amt.d3ZAbzGLJw0D5pFeki0DW5.kpW"], ["created_at", "2018-12-07 02:21:59.392901"], ["updated_at", "2018-12-07 02:21:59.392901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hJ1W9vr/XG7I6lfuSxi9V.j1WaHhzpQQFIjPI/E/2.BT2sA0yuPJi"], ["created_at", "2018-12-07 02:21:59.396076"], ["updated_at", "2018-12-07 02:21:59.396076"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.397352"], ["updated_at", "2018-12-07 02:21:59.397352"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8845], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11836], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11836], ["room_id", 8845], ["created_at", "2018-12-07 02:21:59.399969"], ["updated_at", "2018-12-07 02:21:59.399969"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4636], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$8nfgViTKS6ER63.WKrv3IOu3IBXhm7Kum5wFXrRa2Zbe3zsFlMfqa"], ["created_at", "2018-12-07 02:21:59.404687"], ["updated_at", "2018-12-07 02:21:59.404687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11837"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "JV7_TIHyZIhLCeqnkByzgw"], ["updated_at", "2018-12-07 02:21:59.407632"], ["id", 11837]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:21:59.408961"], ["reset_sent_at", "2018-12-07 02:21:59.408720"], ["id", 11837]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.2ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:21:59 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d947658d9_522b2b205bcc4600456e8@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9476529b_522b2b205bcc46004553e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9476529b_522b2b205bcc46004553e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/JV7_TIHyZIhLCeqnkByzgw/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d9476529b_522b2b205bcc46004553e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/JV7_TIHyZIhLCeqnkByzgw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9476529b_522b2b205bcc46004553e–

Redirected to test.host/login Completed 302 Found in 11ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$kDkH/U1cDiZhkM2NejX47uCh7infSjuK/Aoi.vtOullCdkUtpIpgy"], ["created_at", "2018-12-07 02:21:59.421569"], ["updated_at", "2018-12-07 02:21:59.421569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$1ohYJ79mM7wu/xNtxjAkFuOgVnBooBp8hp0clVoKBzdfV.KV2jaPW"], ["created_at", "2018-12-07 02:21:59.428804"], ["updated_at", "2018-12-07 02:21:59.428804"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11839"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$aqxEf4HNb6Ik7RLwNqZhC.r1khX/Cv.JQqx5PVA0A1FNyr97in4Ju"], ["updated_at", "2018-12-07 02:21:59.432664"], ["id", 11839]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$IAbjBEDxhIz53iEU.hsbbe/wpV7xf8gko0gKlYAAB4ZUgNvoaZ33S"], ["created_at", "2018-12-07 02:21:59.437122"], ["updated_at", "2018-12-07 02:21:59.437122"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11840"}
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$GqUAmJ5mdri1ubxpL1Jhk.tdHRXNGj888ITQv229pMu7HOE33M85a"], ["created_at", "2018-12-07 02:21:59.444127"], ["updated_at", "2018-12-07 02:21:59.444127"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11841"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$SvYD8T.bFkkptzOSm7nHFO8OUclaPWHYnlvTZun4ujmTsZmodW/gS"], ["created_at", "2018-12-07 02:21:59.457958"], ["updated_at", "2018-12-07 02:21:59.457958"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11842"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$0WpaPL0SxntlnX/U1xBhiuFhGXbR/9qmxh36DhUkZMW7j//wbyWKq"], ["created_at", "2018-12-07 02:21:59.466323"], ["updated_at", "2018-12-07 02:21:59.466323"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11843"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jVO5pP921YXvOJyXJSDXYujDajtUF7UhxN0EHH6wGYNKBRdhUjCTe"], ["created_at", "2018-12-07 02:21:59.473646"], ["updated_at", "2018-12-07 02:21:59.473646"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gAeifiJJjge6guI2BFDSZeBmIKsYeQC4.B7eEFT4IIJ06Bd4tTVvq"], ["created_at", "2018-12-07 02:21:59.480702"], ["updated_at", "2018-12-07 02:21:59.480702"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7mZ1K.lg5LSJWxj09ZOgpu1G3AX2Les4/kCHtg5sdL11stGYjq8NC"], ["created_at", "2018-12-07 02:21:59.487492"], ["updated_at", "2018-12-07 02:21:59.487492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.488810"], ["updated_at", "2018-12-07 02:21:59.488810"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8846], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11846], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11846], ["room_id", 8846], ["created_at", "2018-12-07 02:21:59.491331"], ["updated_at", "2018-12-07 02:21:59.491331"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ijTv2Lr9WLlIK9ocPIDhie8AOKPJiHfA1ioaHDmDoYwDAhYObJxmK"], ["created_at", "2018-12-07 02:21:59.497202"], ["updated_at", "2018-12-07 02:21:59.497202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.498525"], ["updated_at", "2018-12-07 02:21:59.498525"], ["tipo_sala", "palestras"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8847], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11847], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11847], ["room_id", 8847], ["created_at", "2018-12-07 02:21:59.500935"], ["updated_at", "2018-12-07 02:21:59.500935"]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oLBd0WOhzUidMXVWBhoLkeK2DFXIU9CyzFnyfEsjEUQI1NgvH3C4C"], ["created_at", "2018-12-07 02:21:59.523404"], ["updated_at", "2018-12-07 02:21:59.523404"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.524977"], ["updated_at", "2018-12-07 02:21:59.524977"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.531865"], ["last_sign_in_at", "2018-12-07 02:21:59.531865"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.532303"], ["id", 11848]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8848"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8848 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8848], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11848], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11848], ["room_id", 8848], ["created_at", "2018-12-07 02:21:59.540839"], ["updated_at", "2018-12-07 02:21:59.540839"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8848], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cnoyRKSDFU0w2Ul88sDqJexL3J3v2/hHeULJPwo1vgA0ydw85Y5n2"], ["created_at", "2018-12-07 02:21:59.547469"], ["updated_at", "2018-12-07 02:21:59.547469"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.548996"], ["updated_at", "2018-12-07 02:21:59.548996"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.550866"], ["last_sign_in_at", "2018-12-07 02:21:59.550866"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.551276"], ["id", 11849]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8849"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8849 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8849], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11849], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11849], ["room_id", 8849], ["created_at", "2018-12-07 02:21:59.555816"], ["updated_at", "2018-12-07 02:21:59.555816"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MUYVtKyIX0Dpfpxx5wbQ.eKLU2M3TBovQD5zlvDF.Ui8YBIlILxZW"], ["created_at", "2018-12-07 02:21:59.561073"], ["updated_at", "2018-12-07 02:21:59.561073"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.562576"], ["updated_at", "2018-12-07 02:21:59.562576"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.564721"], ["last_sign_in_at", "2018-12-07 02:21:59.564721"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.565132"], ["id", 11850]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8850", "user_id"=>"11850"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8850 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8850], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11850], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11850], ["room_id", 8850], ["created_at", "2018-12-07 02:21:59.569751"], ["updated_at", "2018-12-07 02:21:59.569751"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8850", "user_id"=>"11850"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11850], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8850 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8850], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11850], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11850], ["room_id", 8850], ["created_at", "2018-12-07 02:21:59.577163"], ["updated_at", "2018-12-07 02:21:59.577163"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$aDsy0YrWr5sdM1d.ALXC.eihTaNin//jrcYlagH2RqFG/1Eg0ddti"], ["created_at", "2018-12-07 02:21:59.589741"], ["updated_at", "2018-12-07 02:21:59.589741"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.591275"], ["updated_at", "2018-12-07 02:21:59.591275"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.593361"], ["last_sign_in_at", "2018-12-07 02:21:59.593361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.593748"], ["id", 11851]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8851", "user_id"=>"11851"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8851 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8851], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11851], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11851], ["room_id", 8851], ["created_at", "2018-12-07 02:21:59.598106"], ["updated_at", "2018-12-07 02:21:59.598106"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8851", "user_id"=>"11851"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11851], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8851 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8851], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11851], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11851], ["room_id", 8851], ["created_at", "2018-12-07 02:21:59.605187"], ["updated_at", "2018-12-07 02:21:59.605187"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.7ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8851], ["user_id", 11851], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8uk7ytNT4n/V9MbENyxA/O7ZUwllf3ZzaTOExXiO.tuAUBFRbzQN."], ["created_at", "2018-12-07 02:21:59.611691"], ["updated_at", "2018-12-07 02:21:59.611691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.613243"], ["updated_at", "2018-12-07 02:21:59.613243"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.615496"], ["last_sign_in_at", "2018-12-07 02:21:59.615496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.615925"], ["id", 11852]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8852", "user_id"=>"11852"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8852 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8852], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11852], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11852], ["room_id", 8852], ["created_at", "2018-12-07 02:21:59.620623"], ["updated_at", "2018-12-07 02:21:59.620623"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8852", "user_id"=>"11852"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11852], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8852 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8852], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11852], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11852], ["room_id", 8852], ["created_at", "2018-12-07 02:21:59.626906"], ["updated_at", "2018-12-07 02:21:59.626906"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8852], ["user_id", 11852], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$49KMwWFw.d4PfXz2mwcIzObHm76n.UfOdLZ6XwrljDFuEbR7KnRB6"], ["created_at", "2018-12-07 02:21:59.632700"], ["updated_at", "2018-12-07 02:21:59.632700"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.634240"], ["updated_at", "2018-12-07 02:21:59.634240"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.636502"], ["last_sign_in_at", "2018-12-07 02:21:59.636502"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.636931"], ["id", 11853]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8853"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8853], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dql/6hEvgp9mJ23fvQb7M.vAqKzkqDKaIsidgiYlVNEROfCj6fjbO"], ["created_at", "2018-12-07 02:21:59.644280"], ["updated_at", "2018-12-07 02:21:59.644280"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.646016"], ["updated_at", "2018-12-07 02:21:59.646016"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.647887"], ["last_sign_in_at", "2018-12-07 02:21:59.647887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.648214"], ["id", 11854]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8854"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bICpwgYOx1j.uyKiUpdBWuFsbKxR.poqhgNzPvo25virSV0lsYDNq"], ["created_at", "2018-12-07 02:21:59.655217"], ["updated_at", "2018-12-07 02:21:59.655217"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.656759"], ["updated_at", "2018-12-07 02:21:59.656759"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8855], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11855], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11855], ["room_id", 8855], ["created_at", "2018-12-07 02:21:59.659855"], ["updated_at", "2018-12-07 02:21:59.659855"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8855” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.661343"], ["last_sign_in_at", "2018-12-07 02:21:59.661343"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.661703"], ["id", 11855]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8855"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8855], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8855')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (3.1ms)

Completed 200 OK in 153ms (Views: 150.9ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$geTp8D4zkXb6yHw0Xg6Dy.EYxKz82/8NYWIIgWralQpHTSj3eajue"], ["created_at", "2018-12-07 02:21:59.823090"], ["updated_at", "2018-12-07 02:21:59.823090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.826505"], ["updated_at", "2018-12-07 02:21:59.826505"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8856], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11856], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11856], ["room_id", 8856], ["created_at", "2018-12-07 02:21:59.833782"], ["updated_at", "2018-12-07 02:21:59.833782"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4648/edit” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.836919"], ["last_sign_in_at", "2018-12-07 02:21:59.836919"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.837435"], ["id", 11856]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4648"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4648], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 11ms (Views: 9.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$z73CjPhHPIZUvGlUp7tOeObelaNKPiXnewmtYhXD7ADn9e04uQgBi"], ["created_at", "2018-12-07 02:21:59.858377"], ["updated_at", "2018-12-07 02:21:59.858377"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.861809"], ["last_sign_in_at", "2018-12-07 02:21:59.861809"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.862280"], ["id", 11857]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (3.6ms)
Rendered layouts/_header-user.html.erb (2.2ms)

Completed 200 OK in 14ms (Views: 12.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BtGKUfo3wrrifpo3vznyxuLcnay1/6ouVLDA6tIW0gVnGu6icIQk."], ["created_at", "2018-12-07 02:21:59.887457"], ["updated_at", "2018-12-07 02:21:59.887457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.890630"], ["updated_at", "2018-12-07 02:21:59.890630"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8857], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11858], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11858], ["room_id", 8857], ["created_at", "2018-12-07 02:21:59.896198"], ["updated_at", "2018-12-07 02:21:59.896198"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8857], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11858], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11858], ["room_id", 8857], ["created_at", "2018-12-07 02:21:59.900783"], ["updated_at", "2018-12-07 02:21:59.900783"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.902941"], ["last_sign_in_at", "2018-12-07 02:21:59.902941"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.903736"], ["id", 11858]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11858]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 21ms (Views: 4.9ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MIK3MmiEmFesolTiiCBltejswgANVauWMaOfe.3rWpxohtbsxmIae"], ["created_at", "2018-12-07 02:21:59.931802"], ["updated_at", "2018-12-07 02:21:59.931802"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.933604"], ["updated_at", "2018-12-07 02:21:59.933604"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8858], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11859], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11859], ["room_id", 8858], ["created_at", "2018-12-07 02:21:59.936878"], ["updated_at", "2018-12-07 02:21:59.936878"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8858], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11859], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11859], ["room_id", 8858], ["created_at", "2018-12-07 02:21:59.940176"], ["updated_at", "2018-12-07 02:21:59.940176"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.942127"], ["last_sign_in_at", "2018-12-07 02:21:59.942127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.942671"], ["id", 11859]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11859]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Jcgv/HbGU.TE2gbeb/.gjuOpWPYcIIdmBSTcu12MYuZH17fG4O9je"], ["created_at", "2018-12-07 02:21:59.953209"], ["updated_at", "2018-12-07 02:21:59.953209"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.954904"], ["updated_at", "2018-12-07 02:21:59.954904"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8859], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11860], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11860], ["room_id", 8859], ["created_at", "2018-12-07 02:21:59.957867"], ["updated_at", "2018-12-07 02:21:59.957867"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4653” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.959463"], ["last_sign_in_at", "2018-12-07 02:21:59.959463"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.959841"], ["id", 11860]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4653"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4653], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4653]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Kpvam1cKx7bTqjFwSYVujOhwHhNPm2EFgN9B/7S10tr3J/Quajtka"], ["created_at", "2018-12-07 02:21:59.968471"], ["updated_at", "2018-12-07 02:21:59.968471"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.970063"], ["updated_at", "2018-12-07 02:21:59.970063"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1lmqK./lh4gAdaF56AR7iuRdYn4UrQkzngesEddGfHiz7xRQ6qug2"], ["created_at", "2018-12-07 02:21:59.973812"], ["updated_at", "2018-12-07 02:21:59.973812"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8860], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11862], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11862], ["room_id", 8860], ["created_at", "2018-12-07 02:21:59.977118"], ["updated_at", "2018-12-07 02:21:59.977118"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4654” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.979056"], ["last_sign_in_at", "2018-12-07 02:21:59.979056"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.979444"], ["id", 11861]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4654"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4654], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8860], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11862], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0u4Zn03HWYNTLs0UF8GmkebDM3PKG7DL/Ugfh7B2DPMDfGSgoiC5S"], ["created_at", "2018-12-07 02:21:59.989054"], ["updated_at", "2018-12-07 02:21:59.989054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:21:59.990632"], ["updated_at", "2018-12-07 02:21:59.990632"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CNq.CitG.iGNKhX9IXx0Vu4qk1SR2.fYcKSM5HMMG1XUd4UFvlKCK"], ["created_at", "2018-12-07 02:21:59.993721"], ["updated_at", "2018-12-07 02:21:59.993721"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8861], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11864], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11864], ["room_id", 8861], ["created_at", "2018-12-07 02:21:59.996685"], ["updated_at", "2018-12-07 02:21:59.996685"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4655” for 127.0.0.1 at 2018-12-07 00:21:59 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:21:59.998573"], ["last_sign_in_at", "2018-12-07 02:21:59.998573"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:21:59.998943"], ["id", 11863]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4655"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4655], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8861], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11864], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uUWUo1WIOIFVLZZVyL/MvusORrijgn8A9g4jgimI7YRApdyguK6TC"], ["created_at", "2018-12-07 02:22:00.008704"], ["updated_at", "2018-12-07 02:22:00.008704"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.010332"], ["updated_at", "2018-12-07 02:22:00.010332"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$n3OAxy7KzGvfz45zOoAUWumst43fUmP8OOMOrktMF8GdEwSd7l2Si"], ["created_at", "2018-12-07 02:22:00.013633"], ["updated_at", "2018-12-07 02:22:00.013633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8862], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11866], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11866], ["room_id", 8862], ["created_at", "2018-12-07 02:22:00.016825"], ["updated_at", "2018-12-07 02:22:00.016825"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4656” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.018758"], ["last_sign_in_at", "2018-12-07 02:22:00.018758"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.019128"], ["id", 11865]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4656"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4656], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8862], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11866], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:22:00.023301"], ["id", 4656]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.3ms) Date: Fri, 07 Dec 2018 00:22:00 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d9486a41_522b2b205bcc460046360@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d948645c_522b2b205bcc4600462e3";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d948645c_522b2b205bcc4600462e3 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d948645c_522b2b205bcc4600462e3 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d948645c_522b2b205bcc4600462e3–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BtUcMN/EpXu1M8EsvGZ4TuC.QHfJqM/vESvZvw/VYakg8qNrTuWsu"], ["created_at", "2018-12-07 02:22:00.033739"], ["updated_at", "2018-12-07 02:22:00.033739"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.035559"], ["updated_at", "2018-12-07 02:22:00.035559"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Cc0tPcn4dcoQ2FkNw.2JKuoEOE1zcKj8NMJTGw.3IgbVPSxLKweKS"], ["created_at", "2018-12-07 02:22:00.039426"], ["updated_at", "2018-12-07 02:22:00.039426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8863], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11868], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11868], ["room_id", 8863], ["created_at", "2018-12-07 02:22:00.042830"], ["updated_at", "2018-12-07 02:22:00.042830"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:22:00.044353"], ["id", 4657]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8863], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11868], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11868], ["room_id", 8863], ["created_at", "2018-12-07 02:22:00.047100"], ["updated_at", "2018-12-07 02:22:00.047100"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:22:00.048450"], ["id", 4658]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.049870"], ["last_sign_in_at", "2018-12-07 02:22:00.049870"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.050225"], ["id", 11867]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11868], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8863], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11868], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8863], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qNnmd8n.ohUQS6C6AXrG/uPEMi5voxw6f3gLAMxeQ./oi/ylUzVRW"], ["created_at", "2018-12-07 02:22:00.063300"], ["updated_at", "2018-12-07 02:22:00.063300"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.064797"], ["updated_at", "2018-12-07 02:22:00.064797"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MOgwCzVKRYWXzhQTPlLkp.kgeRW84Fh8lXYrP.XmIljCu5XG05ZuW"], ["created_at", "2018-12-07 02:22:00.068509"], ["updated_at", "2018-12-07 02:22:00.068509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8864], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11870], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11870], ["room_id", 8864], ["created_at", "2018-12-07 02:22:00.071590"], ["updated_at", "2018-12-07 02:22:00.071590"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:22:00.072996"], ["id", 4659]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8864], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11870], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11870], ["room_id", 8864], ["created_at", "2018-12-07 02:22:00.075756"], ["updated_at", "2018-12-07 02:22:00.075756"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:22:00.077086"], ["id", 4660]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.078537"], ["last_sign_in_at", "2018-12-07 02:22:00.078537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.078909"], ["id", 11869]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11870], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8864], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11870], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8864], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.9ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.6ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n4zQSifpxV4Atzy0NLf4DuAv7MbEpRO/ted18fd2.VsaZaLrNxbn6"], ["created_at", "2018-12-07 02:22:00.092195"], ["updated_at", "2018-12-07 02:22:00.092195"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.093884"], ["last_sign_in_at", "2018-12-07 02:22:00.093884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.094247"], ["id", 11871]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xUxf6ZhUBE7gaHKoUBhVTeHyCE8IGgxQI06fCACfVTV32ES.c3J6a"], ["created_at", "2018-12-07 02:22:00.107948"], ["updated_at", "2018-12-07 02:22:00.107948"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.109622"], ["last_sign_in_at", "2018-12-07 02:22:00.109622"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.109962"], ["id", 11872]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9/0IfGMio4UwSWxZ1vtnSe.3lMEVJFP90UwKCkYbjKJhsyCYfhoJO"], ["created_at", "2018-12-07 02:22:00.115867"], ["updated_at", "2018-12-07 02:22:00.115867"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.117500"], ["last_sign_in_at", "2018-12-07 02:22:00.117500"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.117843"], ["id", 11873]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ukp4GKHGCP.GRuZ2LFgSxe8w.ueVYK82oMSO.ukiUEeswNm6ZB7US"], ["created_at", "2018-12-07 02:22:00.127358"], ["updated_at", "2018-12-07 02:22:00.127358"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.129096"], ["last_sign_in_at", "2018-12-07 02:22:00.129096"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.129491"], ["id", 11874]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lU/72euSA0l98SQnps3j2uQe4pCiqy8Y2dSjI8gVcjPc/8N9g1iLK"], ["created_at", "2018-12-07 02:22:00.144015"], ["updated_at", "2018-12-07 02:22:00.144015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.145586"], ["updated_at", "2018-12-07 02:22:00.145586"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8865” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.146996"], ["last_sign_in_at", "2018-12-07 02:22:00.146996"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.147445"], ["id", 11875]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8865"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8865], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xcXKVumEbMIVZul8PkrQO.yxwoXb3tSht8VF1JzvMWxiBOXvzw3z2"], ["created_at", "2018-12-07 02:22:00.156443"], ["updated_at", "2018-12-07 02:22:00.156443"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.158050"], ["updated_at", "2018-12-07 02:22:00.158050"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8866” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.159471"], ["last_sign_in_at", "2018-12-07 02:22:00.159471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.159857"], ["id", 11876]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8866"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8866], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.166857"], ["updated_at", "2018-12-07 02:22:00.166857"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8867” for 127.0.0.1 at 2018-12-07 00:22:00 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8867"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gPmVobvb8SBHvRhOv6Auiu0A479v3YxaknZpl4JBl3WuWO.YyPTKK"], ["created_at", "2018-12-07 02:22:00.173156"], ["updated_at", "2018-12-07 02:22:00.173156"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.174739"], ["updated_at", "2018-12-07 02:22:00.174739"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8868” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.176154"], ["last_sign_in_at", "2018-12-07 02:22:00.176154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.176540"], ["id", 11877]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8868"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.184523"], ["updated_at", "2018-12-07 02:22:00.184523"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8869” for 127.0.0.1 at 2018-12-07 00:22:00 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8869"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1oavjX4dU2RaHm1GlhBxB.Y4lQxyr.E1p.fIpqKHXpiSCwP87RoeW"], ["created_at", "2018-12-07 02:22:00.190748"], ["updated_at", "2018-12-07 02:22:00.190748"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.192491"], ["updated_at", "2018-12-07 02:22:00.192491"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8870/edit” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.194576"], ["last_sign_in_at", "2018-12-07 02:22:00.194576"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.195035"], ["id", 11878]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8870"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8870], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h4.sZ1lE2574rbx/Pdvsv.DgqeDKjWmgfjmy9Fj3Bj.xR5ZSCe69m"], ["created_at", "2018-12-07 02:22:00.205886"], ["updated_at", "2018-12-07 02:22:00.205886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.207490"], ["updated_at", "2018-12-07 02:22:00.207490"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8871/edit” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.208914"], ["last_sign_in_at", "2018-12-07 02:22:00.208914"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.209292"], ["id", 11879]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8871"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8871], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.216988"], ["updated_at", "2018-12-07 02:22:00.216988"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8872” for 127.0.0.1 at 2018-12-07 00:22:00 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8872"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dNKYaI.Hut7deUmtEsdqqOPm2XJkiSSiP1GNgeUKnKR0aPSD2G4ze"], ["created_at", "2018-12-07 02:22:00.223380"], ["updated_at", "2018-12-07 02:22:00.223380"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.226150"], ["last_sign_in_at", "2018-12-07 02:22:00.226150"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.226623"], ["id", 11880]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.229450"], ["updated_at", "2018-12-07 02:22:00.229450"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dPsXb5426U/j81s5plbxxehJhALZV.0bcwiQSYUN7bUj8ALhpHoG."], ["created_at", "2018-12-07 02:22:00.236155"], ["updated_at", "2018-12-07 02:22:00.236155"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.238430"], ["last_sign_in_at", "2018-12-07 02:22:00.238430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.238863"], ["id", 11881]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.241403"], ["updated_at", "2018-12-07 02:22:00.241403"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5PtbpbDonagwPQTClVZW6eQX5J/FWVMZPc7B0/BUwxAyw6nVn/uji"], ["created_at", "2018-12-07 02:22:00.246651"], ["updated_at", "2018-12-07 02:22:00.246651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.248715"], ["last_sign_in_at", "2018-12-07 02:22:00.248715"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.249063"], ["id", 11882]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZSKbX5CGbxaosPhsWJICJujlksJZiaaHFf6XxT7veN/hL9B.jbUN."], ["created_at", "2018-12-07 02:22:00.257688"], ["updated_at", "2018-12-07 02:22:00.257688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.259983"], ["last_sign_in_at", "2018-12-07 02:22:00.259983"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.260367"], ["id", 11883]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kD.T0Qm/nNsJNffmEfezJO7MeqhmvgQZnVxlfIFCVVaqfR4iLL5dK"], ["created_at", "2018-12-07 02:22:00.268184"], ["updated_at", "2018-12-07 02:22:00.268184"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.270197"], ["last_sign_in_at", "2018-12-07 02:22:00.270197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.270552"], ["id", 11884]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oq4ScGd/4VGGJsZjHzZ3ZeHrUwE1mi1OgKgHfHBYNWRv.MUZPcza."], ["created_at", "2018-12-07 02:22:00.276733"], ["updated_at", "2018-12-07 02:22:00.276733"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.278303"], ["updated_at", "2018-12-07 02:22:00.278303"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8875” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.280085"], ["last_sign_in_at", "2018-12-07 02:22:00.280085"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.280473"], ["id", 11885]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8875"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8875], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:22:00.283409"], ["id", 8875]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8875 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$D1dvc2ORBkiPRB9YFNoT7.WbjVpSW.eU/fZFai9Q4MZsBoEEQ/1BG"], ["created_at", "2018-12-07 02:22:00.289961"], ["updated_at", "2018-12-07 02:22:00.289961"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.291838"], ["updated_at", "2018-12-07 02:22:00.291838"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8876” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.293735"], ["last_sign_in_at", "2018-12-07 02:22:00.293735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.294161"], ["id", 11886]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8876"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8876], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:22:00.297087"], ["id", 8876]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8876 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RZIAVm/f1Y9Z8dRd8wMWqu6rhuhcyrscmYUyaSQXzwhvl7QakAK5G"], ["created_at", "2018-12-07 02:22:00.302536"], ["updated_at", "2018-12-07 02:22:00.302536"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.304123"], ["updated_at", "2018-12-07 02:22:00.304123"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8877” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.305914"], ["last_sign_in_at", "2018-12-07 02:22:00.305914"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.306282"], ["id", 11887]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8877"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8877], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9pKhe76yucTtxLafGbHgfuo4rBtKK/K4LPL1Y99ythzs18Y2z5aZm"], ["created_at", "2018-12-07 02:22:00.317607"], ["updated_at", "2018-12-07 02:22:00.317607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.319498"], ["updated_at", "2018-12-07 02:22:00.319498"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8878” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.322007"], ["last_sign_in_at", "2018-12-07 02:22:00.322007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.322529"], ["id", 11888]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8878"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8878], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$M5StmVoTGwK4TN.RUSFp6eTPWWisLgVCjmEeC9bovEv3mUAxwFuFO"], ["created_at", "2018-12-07 02:22:00.334513"], ["updated_at", "2018-12-07 02:22:00.334513"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.336788"], ["last_sign_in_at", "2018-12-07 02:22:00.336788"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.337196"], ["id", 11889]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aNjWogv1xtM6P5MLmRoLEOqgEEmWjnnmHwQvNk5qwsmUo1wc.4c6K"], ["created_at", "2018-12-07 02:22:00.343298"], ["updated_at", "2018-12-07 02:22:00.343298"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.344878"], ["updated_at", "2018-12-07 02:22:00.344878"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8879” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.346340"], ["last_sign_in_at", "2018-12-07 02:22:00.346340"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.346747"], ["id", 11890]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8879"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8879], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8879]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mcMEXBOZwcoh.wsuXRir0eq2A1IqhdqZa3BJz2mD4F3fG6yyakDFC"], ["created_at", "2018-12-07 02:22:00.355510"], ["updated_at", "2018-12-07 02:22:00.355510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.357247"], ["updated_at", "2018-12-07 02:22:00.357247"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8880” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.358714"], ["last_sign_in_at", "2018-12-07 02:22:00.358714"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.359153"], ["id", 11891]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8880"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8880], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8880]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SBFsVev2.wTKR1knSp1Mxe5Dx63GqRN72BcpxPXWLX3ZoXK5eLdFS"], ["created_at", "2018-12-07 02:22:00.366616"], ["updated_at", "2018-12-07 02:22:00.366616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.368223"], ["updated_at", "2018-12-07 02:22:00.368223"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8881” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.369647"], ["last_sign_in_at", "2018-12-07 02:22:00.369647"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.370063"], ["id", 11892]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8881"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rhi/w95Th7whgCZ03XgZD.HSgHacPrrFiQAOJvbkHOw7zNIg1G4Nu"], ["created_at", "2018-12-07 02:22:00.376293"], ["updated_at", "2018-12-07 02:22:00.376293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.377815"], ["updated_at", "2018-12-07 02:22:00.377815"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8882” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.379218"], ["last_sign_in_at", "2018-12-07 02:22:00.379218"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.379632"], ["id", 11893]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8882"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8Pq.KNSr3jIgCCElnsKVvepvvbU.gbhH0zng1P9mJSqziivruoxyq"], ["created_at", "2018-12-07 02:22:00.386550"], ["updated_at", "2018-12-07 02:22:00.386550"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.388346"], ["last_sign_in_at", "2018-12-07 02:22:00.388346"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.388689"], ["id", 11894]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$N.MBTv4xLSKi2s6MSa7.zu9RKKWt9njQObU5niTen9E0Tql9DGjC."], ["created_at", "2018-12-07 02:22:00.400412"], ["updated_at", "2018-12-07 02:22:00.400412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.401971"], ["updated_at", "2018-12-07 02:22:00.401971"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.403337"], ["updated_at", "2018-12-07 02:22:00.403337"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.404575"], ["updated_at", "2018-12-07 02:22:00.404575"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8883], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11895], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11895], ["room_id", 8883], ["created_at", "2018-12-07 02:22:00.407397"], ["updated_at", "2018-12-07 02:22:00.407397"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.408983"], ["last_sign_in_at", "2018-12-07 02:22:00.408983"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.409344"], ["id", 11895]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.1ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OP6wUcXhnXRIvBtNlCue3OnG0pXbiooVYl9nkzgPNSzlDGrZhJGka"], ["created_at", "2018-12-07 02:22:00.426901"], ["updated_at", "2018-12-07 02:22:00.426901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.428532"], ["updated_at", "2018-12-07 02:22:00.428532"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.429878"], ["updated_at", "2018-12-07 02:22:00.429878"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:00.431135"], ["updated_at", "2018-12-07 02:22:00.431135"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8886], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11896], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11896], ["room_id", 8886], ["created_at", "2018-12-07 02:22:00.433901"], ["updated_at", "2018-12-07 02:22:00.433901"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:22:00 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:00.435538"], ["last_sign_in_at", "2018-12-07 02:22:00.435538"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:00.435899"], ["id", 11896]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.6ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NW52N9TkieBbreMIQUuDdeAgeqECXt2ifllqFC6zE0UUgFhrXhvIe"], ["created_at", "2018-12-07 02:22:10.048594"], ["updated_at", "2018-12-07 02:22:10.048594"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$mbPtgocP3M.A60MWrTFXouoF6d7b4.j4ZAUm9Fu9axsEuuuA/oOPO"], ["created_at", "2018-12-07 02:22:10.054622"], ["updated_at", "2018-12-07 02:22:10.054622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.070508"], ["updated_at", "2018-12-07 02:22:10.070508"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8889], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11898], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11898], ["room_id", 8889], ["created_at", "2018-12-07 02:22:10.106951"], ["updated_at", "2018-12-07 02:22:10.106951"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4663"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4663], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8889], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11898], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 136.9ms Sent mail to 123@123.com (5.7ms) Date: Fri, 07 Dec 2018 00:22:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d95242dad_52562ad2d5aca5f8129b4@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d95241e64_52562ad2d5aca5f8128a4";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d95241e64_52562ad2d5aca5f8128a4 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d95241e64_52562ad2d5aca5f8128a4 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d95241e64_52562ad2d5aca5f8128a4–

Completed 302 Found in 158ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CZDeBCdSedaIOu4MGRS3XOV/Wqo7Y8uB6hoVnVEO0pKthEj4WHBGS"], ["created_at", "2018-12-07 02:22:10.281244"], ["updated_at", "2018-12-07 02:22:10.281244"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vXDjyB9B09py9Mo4eQxcve.bfAm29dAxH0MuGNRunIWJFnCIaC60G"], ["created_at", "2018-12-07 02:22:10.284584"], ["updated_at", "2018-12-07 02:22:10.284584"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.286004"], ["updated_at", "2018-12-07 02:22:10.286004"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8890], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11900], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11900], ["room_id", 8890], ["created_at", "2018-12-07 02:22:10.289131"], ["updated_at", "2018-12-07 02:22:10.289131"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4664"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4664], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8890], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11900], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:22:10.293758"], ["id", 4664]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:22:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d95248aa2_52562ad2d5aca5f81317b@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d95248522_52562ad2d5aca5f813049";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d95248522_52562ad2d5aca5f813049 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d95248522_52562ad2d5aca5f813049 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d95248522_52562ad2d5aca5f813049–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YIEmhyj3Vxrld1rgy/wejuUZsrj.S/lY2HKn2C2Ck9.HZT/roVTqu"], ["created_at", "2018-12-07 02:22:10.303188"], ["updated_at", "2018-12-07 02:22:10.303188"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PcFIfEkzm6lpsQDVyf8JP.rsSqSwbGSww2lKcr6i8EEzGoUDhKMzi"], ["created_at", "2018-12-07 02:22:10.306591"], ["updated_at", "2018-12-07 02:22:10.306591"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.308379"], ["updated_at", "2018-12-07 02:22:10.308379"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8891], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11902], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11902], ["room_id", 8891], ["created_at", "2018-12-07 02:22:10.311842"], ["updated_at", "2018-12-07 02:22:10.311842"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9XKXfEPHRX4klKcY7lWACubORkK7FEijPVLlifDC0BSMHQkzEyxVO"], ["created_at", "2018-12-07 02:22:10.318636"], ["updated_at", "2018-12-07 02:22:10.318636"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rDzsKSRCYFPM/lMrMgB0c.iuNPC/YCEsIolWrUM1DNvvOFS/pWYUS"], ["created_at", "2018-12-07 02:22:10.321845"], ["updated_at", "2018-12-07 02:22:10.321845"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.323397"], ["updated_at", "2018-12-07 02:22:10.323397"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8892], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11904], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11904], ["room_id", 8892], ["created_at", "2018-12-07 02:22:10.326334"], ["updated_at", "2018-12-07 02:22:10.326334"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4666], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$fEL1pnMu2Iwp.SjALEyDXOhXHPnvIM4Faabfk0.LV/jAY0ry3fhuW"], ["created_at", "2018-12-07 02:22:10.331441"], ["updated_at", "2018-12-07 02:22:10.331441"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11905"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "v5oohIoyGXUpXpYEhilCZg"], ["updated_at", "2018-12-07 02:22:10.334616"], ["id", 11905]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:22:10.335981"], ["reset_sent_at", "2018-12-07 02:22:10.335689"], ["id", 11905]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:22:10 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d95253d50_52562ad2d5aca5f813475@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d95253756_52562ad2d5aca5f8133dc";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d95253756_52562ad2d5aca5f8133dc Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/v5oohIoyGXUpXpYEhilCZg/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d95253756_52562ad2d5aca5f8133dc Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/v5oohIoyGXUpXpYEhilCZg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d95253756_52562ad2d5aca5f8133dc–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$IaALnBY5Sic/LNy8PgtAhus4jJEpaSLRhzFqFZ5V6nuO.r5AP.8c."], ["created_at", "2018-12-07 02:22:10.349157"], ["updated_at", "2018-12-07 02:22:10.349157"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$62.WCXgPBu78.2U5fONdJuo9xKXscqTHrHZt/L42eT1eemLPH4sfK"], ["created_at", "2018-12-07 02:22:10.356463"], ["updated_at", "2018-12-07 02:22:10.356463"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11907"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$XAt2JHWb6/j3y5RLMlz59.oFU5ovmYXwgnNilczLO1MMXAbHgYmvm"], ["updated_at", "2018-12-07 02:22:10.360470"], ["id", 11907]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$/h8nqDTMiD4eM8bY51lG3.95n5IG.c50joZ8ynqwc0wW8.oxAnsdS"], ["created_at", "2018-12-07 02:22:10.365252"], ["updated_at", "2018-12-07 02:22:10.365252"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11908"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$/cLZsamI3DjLKzrf318eveWT8adMjcOVsksuvhqqOYBBOY1imHiL6"], ["created_at", "2018-12-07 02:22:10.373521"], ["updated_at", "2018-12-07 02:22:10.373521"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11909"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$./CNU8kvPyCCi4eerDXDiePgrmW7avsLUEfRkuSHp6RZyTDqPeLXq"], ["created_at", "2018-12-07 02:22:10.387093"], ["updated_at", "2018-12-07 02:22:10.387093"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11910"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$MaC1Cj2wrFKC.nnXHYjSuOms0N8t8dkQlTvATWKcG4qghTrf7DnIe"], ["created_at", "2018-12-07 02:22:10.395593"], ["updated_at", "2018-12-07 02:22:10.395593"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11911"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uHqqgse/bwQU49JGCt8Eve/OsXHBPAth9LEiYhE/ESRJWoH3DXEGy"], ["created_at", "2018-12-07 02:22:10.403814"], ["updated_at", "2018-12-07 02:22:10.403814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kg5GD1a3OvW0GZlrO7ysJuUJRaV3gexsC/5mi4kIXoZ/d1cExaWS2"], ["created_at", "2018-12-07 02:22:10.410725"], ["updated_at", "2018-12-07 02:22:10.410725"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$I4AQikSvZvf9MrwN87I9Gum9U48fZCH4ZyV6O8pzepia0zOM1StXi"], ["created_at", "2018-12-07 02:22:10.417607"], ["updated_at", "2018-12-07 02:22:10.417607"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.419101"], ["updated_at", "2018-12-07 02:22:10.419101"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8893], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11914], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11914], ["room_id", 8893], ["created_at", "2018-12-07 02:22:10.421906"], ["updated_at", "2018-12-07 02:22:10.421906"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.Ba1SYk4MVNR8AyP94rfOuINiQ/hjiVZ6fwwoImJVj3bfRmaKGRpu"], ["created_at", "2018-12-07 02:22:10.428181"], ["updated_at", "2018-12-07 02:22:10.428181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.429663"], ["updated_at", "2018-12-07 02:22:10.429663"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8894], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11915], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11915], ["room_id", 8894], ["created_at", "2018-12-07 02:22:10.432581"], ["updated_at", "2018-12-07 02:22:10.432581"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y8L252xqy84lfofxIrro6ORVJG75STAkZ82HIn3iBLLUY5/LDQc1S"], ["created_at", "2018-12-07 02:22:10.455643"], ["updated_at", "2018-12-07 02:22:10.455643"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.457230"], ["updated_at", "2018-12-07 02:22:10.457230"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.3ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.464341"], ["last_sign_in_at", "2018-12-07 02:22:10.464341"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.465263"], ["id", 11916]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8895"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8895 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8895], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11916], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11916], ["room_id", 8895], ["created_at", "2018-12-07 02:22:10.473583"], ["updated_at", "2018-12-07 02:22:10.473583"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8895], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lFt9vP00lhsepE84/7OrhONd8DjzmvHbY0cPFXMW8Gm2OUcoQLoEO"], ["created_at", "2018-12-07 02:22:10.479815"], ["updated_at", "2018-12-07 02:22:10.479815"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.481453"], ["updated_at", "2018-12-07 02:22:10.481453"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.483319"], ["last_sign_in_at", "2018-12-07 02:22:10.483319"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.483750"], ["id", 11917]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8896"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8896 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8896], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11917], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11917], ["room_id", 8896], ["created_at", "2018-12-07 02:22:10.488228"], ["updated_at", "2018-12-07 02:22:10.488228"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h4eVKX3tajZfzKT03ASJ3O0UtnUWroieTeTA6RLstAvu7EGvaoz2q"], ["created_at", "2018-12-07 02:22:10.493577"], ["updated_at", "2018-12-07 02:22:10.493577"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.495180"], ["updated_at", "2018-12-07 02:22:10.495180"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.497950"], ["last_sign_in_at", "2018-12-07 02:22:10.497950"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.498410"], ["id", 11918]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8897", "user_id"=>"11918"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8897 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8897], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11918], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11918], ["room_id", 8897], ["created_at", "2018-12-07 02:22:10.503160"], ["updated_at", "2018-12-07 02:22:10.503160"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8897", "user_id"=>"11918"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11918], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8897 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8897], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11918], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11918], ["room_id", 8897], ["created_at", "2018-12-07 02:22:10.509494"], ["updated_at", "2018-12-07 02:22:10.509494"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$D5gCIX9roQ1kDv5ajJvzye0kTPuTZu4fnZtCDjvx408UH4SFYkKG2"], ["created_at", "2018-12-07 02:22:10.514570"], ["updated_at", "2018-12-07 02:22:10.514570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.516122"], ["updated_at", "2018-12-07 02:22:10.516122"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.518244"], ["last_sign_in_at", "2018-12-07 02:22:10.518244"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.518623"], ["id", 11919]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8898", "user_id"=>"11919"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8898 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8898], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11919], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11919], ["room_id", 8898], ["created_at", "2018-12-07 02:22:10.523037"], ["updated_at", "2018-12-07 02:22:10.523037"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8898", "user_id"=>"11919"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11919], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8898 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8898], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11919], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11919], ["room_id", 8898], ["created_at", "2018-12-07 02:22:10.530125"], ["updated_at", "2018-12-07 02:22:10.530125"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8898], ["user_id", 11919], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JJc9VOf4350nQSzZPOGO6eyiXz20ITd6lllLcL2v/c4MfvnzRgRYS"], ["created_at", "2018-12-07 02:22:10.536268"], ["updated_at", "2018-12-07 02:22:10.536268"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.537842"], ["updated_at", "2018-12-07 02:22:10.537842"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.539998"], ["last_sign_in_at", "2018-12-07 02:22:10.539998"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.540367"], ["id", 11920]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8899", "user_id"=>"11920"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8899 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8899], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11920], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11920], ["room_id", 8899], ["created_at", "2018-12-07 02:22:10.544983"], ["updated_at", "2018-12-07 02:22:10.544983"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8899", "user_id"=>"11920"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11920], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8899 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8899], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11920], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11920], ["room_id", 8899], ["created_at", "2018-12-07 02:22:10.551080"], ["updated_at", "2018-12-07 02:22:10.551080"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8899], ["user_id", 11920], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xnT0ziRlurkZTY6M1NJccOQvxX9FqpQ.noN0qkaAngRQ5nDLwIwo."], ["created_at", "2018-12-07 02:22:10.557098"], ["updated_at", "2018-12-07 02:22:10.557098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.558910"], ["updated_at", "2018-12-07 02:22:10.558910"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.561434"], ["last_sign_in_at", "2018-12-07 02:22:10.561434"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.561929"], ["id", 11921]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8900"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8900], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JX8C3wnQYjI6TS2/DTJQx..euv0aKRf.ZXbFN7dAQ8Flz0saRHWZa"], ["created_at", "2018-12-07 02:22:10.569581"], ["updated_at", "2018-12-07 02:22:10.569581"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.571281"], ["updated_at", "2018-12-07 02:22:10.571281"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.573165"], ["last_sign_in_at", "2018-12-07 02:22:10.573165"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.573581"], ["id", 11922]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8901"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$hd87k.SfWZWQ5dY/nqN36uI83nNw.GIa44o4UNsgTVVQyKdzMcYp2"], ["created_at", "2018-12-07 02:22:10.580522"], ["updated_at", "2018-12-07 02:22:10.580522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.582075"], ["updated_at", "2018-12-07 02:22:10.582075"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8902], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11923], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11923], ["room_id", 8902], ["created_at", "2018-12-07 02:22:10.585192"], ["updated_at", "2018-12-07 02:22:10.585192"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8902” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.586726"], ["last_sign_in_at", "2018-12-07 02:22:10.586726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.587108"], ["id", 11923]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8902"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8902], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8902')
Rendered appointments/show.html.erb within layouts/application (6.5ms)
Rendered layouts/_header-user.html.erb (3.3ms)

Completed 200 OK in 154ms (Views: 152.5ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IMrz61dOeuGKUt8e/Ud30OqQ2YDS8vIeUddpEVwfvwsNyhKPEi/sG"], ["created_at", "2018-12-07 02:22:10.750508"], ["updated_at", "2018-12-07 02:22:10.750508"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.753702"], ["updated_at", "2018-12-07 02:22:10.753702"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8903], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11924], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11924], ["room_id", 8903], ["created_at", "2018-12-07 02:22:10.760325"], ["updated_at", "2018-12-07 02:22:10.760325"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4678/edit” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.764738"], ["last_sign_in_at", "2018-12-07 02:22:10.764738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.765210"], ["id", 11924]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4678"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4678], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.7ms)

Completed 200 OK in 12ms (Views: 9.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3YrjoAc0vyXIaQDLszNnm.8R0fw66JSmdIDEMsKHttElVUDILnrNO"], ["created_at", "2018-12-07 02:22:10.786819"], ["updated_at", "2018-12-07 02:22:10.786819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.789639"], ["last_sign_in_at", "2018-12-07 02:22:10.789639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.790075"], ["id", 11925]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-user.html.erb (1.5ms)

Completed 200 OK in 11ms (Views: 9.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Q/vJWWnI3lqKU02jaredhuLczOhTkRObfOwWHMTYQc4P6cF4.l0Bq"], ["created_at", "2018-12-07 02:22:10.815248"], ["updated_at", "2018-12-07 02:22:10.815248"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.818751"], ["updated_at", "2018-12-07 02:22:10.818751"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8904], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11926], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11926], ["room_id", 8904], ["created_at", "2018-12-07 02:22:10.824445"], ["updated_at", "2018-12-07 02:22:10.824445"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8904], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11926], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11926], ["room_id", 8904], ["created_at", "2018-12-07 02:22:10.829753"], ["updated_at", "2018-12-07 02:22:10.829753"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.832036"], ["last_sign_in_at", "2018-12-07 02:22:10.832036"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.832490"], ["id", 11926]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11926]]
Rendered appointments/my_appointments.html.erb within layouts/application (12.5ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 23ms (Views: 14.8ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2SUoVoL7mTbVA0BvXEUBdeOAArEuehhYrCLH39bS6VJYkuawxDL6i"], ["created_at", "2018-12-07 02:22:10.864081"], ["updated_at", "2018-12-07 02:22:10.864081"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.866438"], ["updated_at", "2018-12-07 02:22:10.866438"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8905], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11927], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11927], ["room_id", 8905], ["created_at", "2018-12-07 02:22:10.871063"], ["updated_at", "2018-12-07 02:22:10.871063"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8905], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11927], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11927], ["room_id", 8905], ["created_at", "2018-12-07 02:22:10.874851"], ["updated_at", "2018-12-07 02:22:10.874851"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.876654"], ["last_sign_in_at", "2018-12-07 02:22:10.876654"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.877115"], ["id", 11927]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11927]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gPPsnktGClfpiztzW9vc5OYC594vF43G7yD6zcdN.rdEpE3L0YZBK"], ["created_at", "2018-12-07 02:22:10.887719"], ["updated_at", "2018-12-07 02:22:10.887719"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.889722"], ["updated_at", "2018-12-07 02:22:10.889722"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8906], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11928], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11928], ["room_id", 8906], ["created_at", "2018-12-07 02:22:10.893279"], ["updated_at", "2018-12-07 02:22:10.893279"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4683” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.895002"], ["last_sign_in_at", "2018-12-07 02:22:10.895002"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.895434"], ["id", 11928]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4683"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4683], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4683]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$u5HHDZgiGx6ZbwAtBeJ2nOr/xgAURxHNHEryguMtMF442nYrzRg6u"], ["created_at", "2018-12-07 02:22:10.906595"], ["updated_at", "2018-12-07 02:22:10.906595"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.908428"], ["updated_at", "2018-12-07 02:22:10.908428"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/g5858FRRdm0gyb9a5Bp4.PG.qnH6cis95HZYJgsiXXom799AISxe"], ["created_at", "2018-12-07 02:22:10.911875"], ["updated_at", "2018-12-07 02:22:10.911875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8907], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11930], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11930], ["room_id", 8907], ["created_at", "2018-12-07 02:22:10.915182"], ["updated_at", "2018-12-07 02:22:10.915182"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4684” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.917092"], ["last_sign_in_at", "2018-12-07 02:22:10.917092"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.917477"], ["id", 11929]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4684"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4684], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8907], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11930], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yI8oS3Aw.Umd62KYiFh2..mTa2NjSifCu46v4727c/R2wdsFeevA."], ["created_at", "2018-12-07 02:22:10.927258"], ["updated_at", "2018-12-07 02:22:10.927258"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.928981"], ["updated_at", "2018-12-07 02:22:10.928981"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$io2Be0m4JeOU1RBcUiC/XO0ZbR2R2lrWPE1AbU.6mYDaQ9Ex18PV2"], ["created_at", "2018-12-07 02:22:10.932600"], ["updated_at", "2018-12-07 02:22:10.932600"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8908], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11932], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11932], ["room_id", 8908], ["created_at", "2018-12-07 02:22:10.935861"], ["updated_at", "2018-12-07 02:22:10.935861"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4685” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.937785"], ["last_sign_in_at", "2018-12-07 02:22:10.937785"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.938173"], ["id", 11931]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4685"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4685], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8908], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11932], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xoxw/eRMM2tDcjGEmyMVUObZeDU4KuNJt2VQvFBVQF5EGqWoSTzdu"], ["created_at", "2018-12-07 02:22:10.947123"], ["updated_at", "2018-12-07 02:22:10.947123"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.948752"], ["updated_at", "2018-12-07 02:22:10.948752"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4VZPuLDrWQmUepAzk2uuLeSr7coHiPfldO4m8opz45Tn8J/GjGI82"], ["created_at", "2018-12-07 02:22:10.951854"], ["updated_at", "2018-12-07 02:22:10.951854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8909], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11934], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11934], ["room_id", 8909], ["created_at", "2018-12-07 02:22:10.955123"], ["updated_at", "2018-12-07 02:22:10.955123"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4686” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.957120"], ["last_sign_in_at", "2018-12-07 02:22:10.957120"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.957546"], ["id", 11933]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4686"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4686], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8909], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11934], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:22:10.962035"], ["id", 4686]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.9ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:22:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d952ebfe0_52562ad2d5aca5f81419b@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d952eb9bb_52562ad2d5aca5f8140e9";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d952eb9bb_52562ad2d5aca5f8140e9 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d952eb9bb_52562ad2d5aca5f8140e9 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d952eb9bb_52562ad2d5aca5f8140e9–

Completed 302 Found in 9ms (ActiveRecord: 1.0ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mQkFQEnsED0L7L45ZV5Jrud6fR5k/8t73lg.qjCXWHpfpHFqgtRe2"], ["created_at", "2018-12-07 02:22:10.973487"], ["updated_at", "2018-12-07 02:22:10.973487"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:10.975128"], ["updated_at", "2018-12-07 02:22:10.975128"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lM5Hoho6PcYLskGm/Az5Hesr2r9VqXyvtsURpnPcmTFyx4.BBRvH."], ["created_at", "2018-12-07 02:22:10.978401"], ["updated_at", "2018-12-07 02:22:10.978401"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8910], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11936], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11936], ["room_id", 8910], ["created_at", "2018-12-07 02:22:10.981560"], ["updated_at", "2018-12-07 02:22:10.981560"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:22:10.982980"], ["id", 4687]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8910], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11936], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11936], ["room_id", 8910], ["created_at", "2018-12-07 02:22:10.985666"], ["updated_at", "2018-12-07 02:22:10.985666"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:22:10.987005"], ["id", 4688]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:22:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:10.988433"], ["last_sign_in_at", "2018-12-07 02:22:10.988433"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:10.988801"], ["id", 11935]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11936], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8910], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11936], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8910], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (4.1ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 6.4ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sX2VULWOv39mf2/aMhcf3ucrFowvaAmwteWSdIoCa5T5tW.AYW/5O"], ["created_at", "2018-12-07 02:22:11.003498"], ["updated_at", "2018-12-07 02:22:11.003498"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.005263"], ["updated_at", "2018-12-07 02:22:11.005263"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$eIQrFL4AUvoxhUeByP8um.6NAhgtVtQ4O//UVprGOLXdNGq4AGRPC"], ["created_at", "2018-12-07 02:22:11.008372"], ["updated_at", "2018-12-07 02:22:11.008372"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8911], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11938], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11938], ["room_id", 8911], ["created_at", "2018-12-07 02:22:11.011495"], ["updated_at", "2018-12-07 02:22:11.011495"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:22:11.012962"], ["id", 4689]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8911], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11938], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11938], ["room_id", 8911], ["created_at", "2018-12-07 02:22:11.015665"], ["updated_at", "2018-12-07 02:22:11.015665"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:22:11.016961"], ["id", 4690]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.018373"], ["last_sign_in_at", "2018-12-07 02:22:11.018373"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.018767"], ["id", 11937]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11938], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8911], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11938], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8911], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.8ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RuC2KMXDOoxHr20q07iNluJzBLN.gtRhIX4vD/oW9LgZtLtPtkbSu"], ["created_at", "2018-12-07 02:22:11.032222"], ["updated_at", "2018-12-07 02:22:11.032222"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.033947"], ["last_sign_in_at", "2018-12-07 02:22:11.033947"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.034301"], ["id", 11939]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$czTtyKmlkLGJtQwgF1LLbOXVftzXD8SIogOhDmv0zjwxqyt6c.7JS"], ["created_at", "2018-12-07 02:22:11.047304"], ["updated_at", "2018-12-07 02:22:11.047304"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.048936"], ["last_sign_in_at", "2018-12-07 02:22:11.048936"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.049285"], ["id", 11940]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uN..XRMRy5UrVtGOW9Ly.O8q7OT4iVurOizLrm6BTHhSj69sf2gdO"], ["created_at", "2018-12-07 02:22:11.055293"], ["updated_at", "2018-12-07 02:22:11.055293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.057175"], ["last_sign_in_at", "2018-12-07 02:22:11.057175"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.057652"], ["id", 11941]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/uP/qtZUpsw8PnlQRCbQdu4LHIjYd/lD59gegLAzNLdT8PQxyiLC2"], ["created_at", "2018-12-07 02:22:11.067679"], ["updated_at", "2018-12-07 02:22:11.067679"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.069279"], ["last_sign_in_at", "2018-12-07 02:22:11.069279"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.069644"], ["id", 11942]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2t6JTfgBzqzp.3zXZw0Hx.puTDONqg8GpYw105F5iMLXpHQJMUw4K"], ["created_at", "2018-12-07 02:22:11.083390"], ["updated_at", "2018-12-07 02:22:11.083390"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.084982"], ["updated_at", "2018-12-07 02:22:11.084982"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8912” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.086611"], ["last_sign_in_at", "2018-12-07 02:22:11.086611"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.087045"], ["id", 11943]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8912"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8912], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jWvGK.BBs7Hq8c4Hmlyl7uVKOOh0CvdxESfoKgGbHlUJBa1pdpUhu"], ["created_at", "2018-12-07 02:22:11.096906"], ["updated_at", "2018-12-07 02:22:11.096906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.098534"], ["updated_at", "2018-12-07 02:22:11.098534"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8913” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.100007"], ["last_sign_in_at", "2018-12-07 02:22:11.100007"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.100369"], ["id", 11944]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8913"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8913], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.106816"], ["updated_at", "2018-12-07 02:22:11.106816"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8914” for 127.0.0.1 at 2018-12-07 00:22:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8914"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bh/xyuJ8OuxQXNSNV.cSBeBz.I0mFBWcIKhpFRMpNSebIh0OI5NqS"], ["created_at", "2018-12-07 02:22:11.113029"], ["updated_at", "2018-12-07 02:22:11.113029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.114645"], ["updated_at", "2018-12-07 02:22:11.114645"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8915” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.116078"], ["last_sign_in_at", "2018-12-07 02:22:11.116078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.116476"], ["id", 11945]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8915"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.125283"], ["updated_at", "2018-12-07 02:22:11.125283"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8916” for 127.0.0.1 at 2018-12-07 00:22:11 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8916"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LZapeZ3XZj2NUgKzxKprbuyjvyHeVPVhH4aAAZqw3G151qJo58lre"], ["created_at", "2018-12-07 02:22:11.131777"], ["updated_at", "2018-12-07 02:22:11.131777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.133352"], ["updated_at", "2018-12-07 02:22:11.133352"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8917/edit” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.134778"], ["last_sign_in_at", "2018-12-07 02:22:11.134778"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.135146"], ["id", 11946]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8917"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8917], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xgeTEr1XvS00F2oo0FCvFuJUq1YJ7MT9JF4Ir94zdhFEuc76hWk8O"], ["created_at", "2018-12-07 02:22:11.145688"], ["updated_at", "2018-12-07 02:22:11.145688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.147313"], ["updated_at", "2018-12-07 02:22:11.147313"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8918/edit” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.148730"], ["last_sign_in_at", "2018-12-07 02:22:11.148730"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.149115"], ["id", 11947]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8918"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8918], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.157636"], ["updated_at", "2018-12-07 02:22:11.157636"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8919” for 127.0.0.1 at 2018-12-07 00:22:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8919"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VlISJhlcyBLxypz/Twe54uiglSExnVgQFWMPrRkQ2u8B/Z3UTywfS"], ["created_at", "2018-12-07 02:22:11.164226"], ["updated_at", "2018-12-07 02:22:11.164226"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.166264"], ["last_sign_in_at", "2018-12-07 02:22:11.166264"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.166620"], ["id", 11948]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.169146"], ["updated_at", "2018-12-07 02:22:11.169146"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TdzYSFcd8FvepXXDJVeb3uwvyxnK5CnCu3BW4CXHMYt/hZYtyFJue"], ["created_at", "2018-12-07 02:22:11.175031"], ["updated_at", "2018-12-07 02:22:11.175031"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.177079"], ["last_sign_in_at", "2018-12-07 02:22:11.177079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.177429"], ["id", 11949]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.179844"], ["updated_at", "2018-12-07 02:22:11.179844"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AP4kgyjFxVoLe7fNp6Nrau0cqvK9/cjVwGgh.k8H/DUYInhpzJBSe"], ["created_at", "2018-12-07 02:22:11.185648"], ["updated_at", "2018-12-07 02:22:11.185648"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.187937"], ["last_sign_in_at", "2018-12-07 02:22:11.187937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.188295"], ["id", 11950]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8ncvwzdH8lVuKfP1P343CeRk8YjXT3IVvIjGQELayAxAxaINg4sl."], ["created_at", "2018-12-07 02:22:11.196058"], ["updated_at", "2018-12-07 02:22:11.196058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.198068"], ["last_sign_in_at", "2018-12-07 02:22:11.198068"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.198417"], ["id", 11951]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V0hlEVUtrF3bXl3C8Q4ID.pLlEThbBFePbxe92waIgEOn4r5hgPze"], ["created_at", "2018-12-07 02:22:11.205787"], ["updated_at", "2018-12-07 02:22:11.205787"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.207796"], ["last_sign_in_at", "2018-12-07 02:22:11.207796"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.208145"], ["id", 11952]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AwjycDGob4tdy9zcJYj7.Oo9qKvd/KlwjgrY3Mo8DTN.RZ5Oj997O"], ["created_at", "2018-12-07 02:22:11.214262"], ["updated_at", "2018-12-07 02:22:11.214262"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.216067"], ["updated_at", "2018-12-07 02:22:11.216067"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8922” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.218197"], ["last_sign_in_at", "2018-12-07 02:22:11.218197"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.218620"], ["id", 11953]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8922"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8922], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:22:11.221762"], ["id", 8922]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8922 Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OKFI1g/KxlbMUsJlJe6qe.ZOlbAgi5TMOh.hQwgoRCbEJ9Xd9Y5Ka"], ["created_at", "2018-12-07 02:22:11.227629"], ["updated_at", "2018-12-07 02:22:11.227629"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.229228"], ["updated_at", "2018-12-07 02:22:11.229228"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8923” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.230997"], ["last_sign_in_at", "2018-12-07 02:22:11.230997"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.231364"], ["id", 11954]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8923"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8923], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:22:11.234179"], ["id", 8923]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8923 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.QYK6jdpTtdNbUqZ059bdOt3KwHy1/CFlSL4BEeVf1hkW4iNPhxbm"], ["created_at", "2018-12-07 02:22:11.239530"], ["updated_at", "2018-12-07 02:22:11.239530"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.241131"], ["updated_at", "2018-12-07 02:22:11.241131"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8924” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.242878"], ["last_sign_in_at", "2018-12-07 02:22:11.242878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.243260"], ["id", 11955]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8924"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8924], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.4ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2eZxmvWGxc9zSoNB049fmOXwWCH3K5BrXymOWl1nMYVwsLKU0Luk6"], ["created_at", "2018-12-07 02:22:11.255335"], ["updated_at", "2018-12-07 02:22:11.255335"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.257035"], ["updated_at", "2018-12-07 02:22:11.257035"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8925” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.258904"], ["last_sign_in_at", "2018-12-07 02:22:11.258904"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.259321"], ["id", 11956]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8925"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8925], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5wQmH1z.bkxTWrVH605tUuFlfnqFCfTxN4AiZFq6GDsXOBefeMARS"], ["created_at", "2018-12-07 02:22:11.270444"], ["updated_at", "2018-12-07 02:22:11.270444"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.272596"], ["last_sign_in_at", "2018-12-07 02:22:11.272596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.272951"], ["id", 11957]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gt5sxvXYQs9tIIc.aiau3O5kRAnj/j2lb2hKLK8idL6a.SiEZdR.i"], ["created_at", "2018-12-07 02:22:11.279474"], ["updated_at", "2018-12-07 02:22:11.279474"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.281269"], ["updated_at", "2018-12-07 02:22:11.281269"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8926” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.282775"], ["last_sign_in_at", "2018-12-07 02:22:11.282775"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.283141"], ["id", 11958]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8926"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8926], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8926]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xAhmhKG.v1nsca57wuICFeccIM8NZoWYSWtA4vYCWUU12hGf3VOKu"], ["created_at", "2018-12-07 02:22:11.290901"], ["updated_at", "2018-12-07 02:22:11.290901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.292461"], ["updated_at", "2018-12-07 02:22:11.292461"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8927” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.293857"], ["last_sign_in_at", "2018-12-07 02:22:11.293857"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.294237"], ["id", 11959]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8927"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8927], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8927]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$dlLx3.63j2E6YFJjrBr/G.j0mPOdQ01aVN2wnKdsSB4SQS7uu05wW"], ["created_at", "2018-12-07 02:22:11.301452"], ["updated_at", "2018-12-07 02:22:11.301452"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.303085"], ["updated_at", "2018-12-07 02:22:11.303085"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8928” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.304541"], ["last_sign_in_at", "2018-12-07 02:22:11.304541"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.304957"], ["id", 11960]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8928"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ZVyAoZnQ3meUdkx1q6yeub.Sp.LI32Ggi.U.3PXvwS9w.VyW6x3K"], ["created_at", "2018-12-07 02:22:11.311801"], ["updated_at", "2018-12-07 02:22:11.311801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.313503"], ["updated_at", "2018-12-07 02:22:11.313503"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8929” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.314961"], ["last_sign_in_at", "2018-12-07 02:22:11.314961"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.315325"], ["id", 11961]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8929"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rI3YpZVThn5YHuU8i176UeYgyhdQgGk4yZsRRCoh2wsHG//RtZsm2"], ["created_at", "2018-12-07 02:22:11.321336"], ["updated_at", "2018-12-07 02:22:11.321336"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.322946"], ["last_sign_in_at", "2018-12-07 02:22:11.322946"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.323286"], ["id", 11962]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2/AzTFKUB9vABAool0u7IuZO1U/wAeFACYFUkfe6WzWCciIbH4UFC"], ["created_at", "2018-12-07 02:22:11.334744"], ["updated_at", "2018-12-07 02:22:11.334744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.336285"], ["updated_at", "2018-12-07 02:22:11.336285"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.337541"], ["updated_at", "2018-12-07 02:22:11.337541"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.338884"], ["updated_at", "2018-12-07 02:22:11.338884"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8930], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11963], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11963], ["room_id", 8930], ["created_at", "2018-12-07 02:22:11.342147"], ["updated_at", "2018-12-07 02:22:11.342147"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.343964"], ["last_sign_in_at", "2018-12-07 02:22:11.343964"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.344339"], ["id", 11963]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.1ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qAVkJjXl0g2C4IUqb0/HFOBqLDKQItCdhlZO0Z7Rrk8Xs49OIBBL6"], ["created_at", "2018-12-07 02:22:11.361256"], ["updated_at", "2018-12-07 02:22:11.361256"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.363116"], ["updated_at", "2018-12-07 02:22:11.363116"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.364584"], ["updated_at", "2018-12-07 02:22:11.364584"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:22:11.365846"], ["updated_at", "2018-12-07 02:22:11.365846"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8933], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11964], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11964], ["room_id", 8933], ["created_at", "2018-12-07 02:22:11.368662"], ["updated_at", "2018-12-07 02:22:11.368662"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:22:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:22:11.370515"], ["last_sign_in_at", "2018-12-07 02:22:11.370515"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:22:11.370884"], ["id", 11964]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IQ9gcWlNgodjyCKx3doE6ey2OOBm/ZvZwOlmRfaqz3jTO09mHef1."], ["created_at", "2018-12-07 02:23:48.784164"], ["updated_at", "2018-12-07 02:23:48.784164"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CDgZRyYk8oz1i/2StsgXAuX1AT0d13.f1sGMb2P6x/2caTZK4gYqS"], ["created_at", "2018-12-07 02:23:48.788309"], ["updated_at", "2018-12-07 02:23:48.788309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:48.795714"], ["updated_at", "2018-12-07 02:23:48.795714"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8936], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11966], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11966], ["room_id", 8936], ["created_at", "2018-12-07 02:23:48.815054"], ["updated_at", "2018-12-07 02:23:48.815054"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4693"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4693], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8936], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11966], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 124.6ms Sent mail to 123@123.com (5.3ms) Date: Fri, 07 Dec 2018 00:23:48 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d9b4e8895_53f82b29ae9425fc81189@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9b4e7a78_53f82b29ae9425fc8103d";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9b4e7a78_53f82b29ae9425fc8103d Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d9b4e7a78_53f82b29ae9425fc8103d Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9b4e7a78_53f82b29ae9425fc8103d–

Completed 302 Found in 134ms (ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QHRB2YU6W.UiqqlrDV/nMexJO5o9HhBbtj4BYo9OPvH/lD7UpIBxq"], ["created_at", "2018-12-07 02:23:48.959247"], ["updated_at", "2018-12-07 02:23:48.959247"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$isr71F.W1S2TEXpFSx..pOztExq2DYKx.7TNqci72r.UJBOmAE7tK"], ["created_at", "2018-12-07 02:23:48.962346"], ["updated_at", "2018-12-07 02:23:48.962346"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:48.963773"], ["updated_at", "2018-12-07 02:23:48.963773"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8937], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11968], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11968], ["room_id", 8937], ["created_at", "2018-12-07 02:23:48.966390"], ["updated_at", "2018-12-07 02:23:48.966390"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4694"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4694], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8937], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11968], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:23:48.970786"], ["id", 4694]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.3ms) Date: Fri, 07 Dec 2018 00:23:48 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d9b4edf51_53f82b29ae9425fc813be@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9b4ed9b2_53f82b29ae9425fc812be";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9b4ed9b2_53f82b29ae9425fc812be Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d9b4ed9b2_53f82b29ae9425fc812be Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9b4ed9b2_53f82b29ae9425fc812be–

Completed 302 Found in 8ms (ActiveRecord: 0.9ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fe2N/yB.ahTlXJWz5FHl3OIP.hhhDjtgxYxpMVUIoTRb/OilaX/OW"], ["created_at", "2018-12-07 02:23:48.979997"], ["updated_at", "2018-12-07 02:23:48.979997"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$G3WXtLd9GSYXE844P13r8eeM1mB3au3FxUFnXdBhHl7ttUmLt0FOG"], ["created_at", "2018-12-07 02:23:48.983324"], ["updated_at", "2018-12-07 02:23:48.983324"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:48.985000"], ["updated_at", "2018-12-07 02:23:48.985000"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8938], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11970], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11970], ["room_id", 8938], ["created_at", "2018-12-07 02:23:48.988544"], ["updated_at", "2018-12-07 02:23:48.988544"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZjgU92hOMo8vH9fbPB2P3OziN047U/QnZjSGNkJyfk/hxQLn0HX/m"], ["created_at", "2018-12-07 02:23:48.995483"], ["updated_at", "2018-12-07 02:23:48.995483"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$x8qB6kDQ18FYkueXqMpjLetLP9XzhDc5ZoH/vricqAMP9tAcWVHny"], ["created_at", "2018-12-07 02:23:48.998714"], ["updated_at", "2018-12-07 02:23:48.998714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.000254"], ["updated_at", "2018-12-07 02:23:49.000254"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8939], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11972], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11972], ["room_id", 8939], ["created_at", "2018-12-07 02:23:49.003275"], ["updated_at", "2018-12-07 02:23:49.003275"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4696], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$rnHMvd/z.Bb5r1IzLOciRemku0o.ENykUkH3eDPxV4luAq//JOybG"], ["created_at", "2018-12-07 02:23:49.008416"], ["updated_at", "2018-12-07 02:23:49.008416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11973"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "P8yJpyIW1TRe7yP8M5eubw"], ["updated_at", "2018-12-07 02:23:49.011612"], ["id", 11973]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:23:49.013129"], ["reset_sent_at", "2018-12-07 02:23:49.012793"], ["id", 11973]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.4ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:23:49 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09d9b550a3_53f82b29ae9425fc81687@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9b54abf_53f82b29ae9425fc81561";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9b54abf_53f82b29ae9425fc81561 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/P8yJpyIW1TRe7yP8M5eubw/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09d9b54abf_53f82b29ae9425fc81561 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/P8yJpyIW1TRe7yP8M5eubw/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9b54abf_53f82b29ae9425fc81561–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$MF4HEy6F2w4hhZnSAmhs2OvZRaQ.FPAIYXbahFwaPdnayPZVMTrMS"], ["created_at", "2018-12-07 02:23:49.026449"], ["updated_at", "2018-12-07 02:23:49.026449"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$2RkHuaREMFRmzpKUMEJxs.WPLXsBsydcIgySslEFRA6jMOLp.BBvm"], ["created_at", "2018-12-07 02:23:49.033727"], ["updated_at", "2018-12-07 02:23:49.033727"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11975"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$zXOFRHlMcpGB5znssbZ7GOQb9QO24WNtR4V9hFiP74PMjdS2YnxGK"], ["updated_at", "2018-12-07 02:23:49.037889"], ["id", 11975]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$t9O0Z/yeVQBzyl.9y5jppObTrZGzVF/VshaEbq.UJQOPbACYL1SIS"], ["created_at", "2018-12-07 02:23:49.042719"], ["updated_at", "2018-12-07 02:23:49.042719"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"11976"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$j8iyGsZGQFkA3BO..SAqFOIZgaSiuwKACYiWwpZcZSZeFI6wKu6wS"], ["created_at", "2018-12-07 02:23:49.050715"], ["updated_at", "2018-12-07 02:23:49.050715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11977"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vitrpHNyjUdKg/D0cmpoGOb32w1gWSHc.6zqHY6L.aw/enQLzvcbm"], ["created_at", "2018-12-07 02:23:49.064233"], ["updated_at", "2018-12-07 02:23:49.064233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11978"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$SsD/Bs3NnciPUmsQYllpNOibk9gdkGJE3Crs1RS0JxLOfjBx50Pjm"], ["created_at", "2018-12-07 02:23:49.072762"], ["updated_at", "2018-12-07 02:23:49.072762"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"11979"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bBreX.u90ZYVmxnCDGoXrehKTnclEO4soK973FlnbOrEdUtTvEMX2"], ["created_at", "2018-12-07 02:23:49.080811"], ["updated_at", "2018-12-07 02:23:49.080811"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a2urjwGNqPYA6FdZ3rR8LeP1Q5LUWzJPYOTz00pWb7nUs2qXwFaMe"], ["created_at", "2018-12-07 02:23:49.087803"], ["updated_at", "2018-12-07 02:23:49.087803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MGc66poTyANhK96aid.Que9sNP333WUsH3D8zSXInjAyWx6JV221y"], ["created_at", "2018-12-07 02:23:49.094507"], ["updated_at", "2018-12-07 02:23:49.094507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.096006"], ["updated_at", "2018-12-07 02:23:49.096006"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8940], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11982], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11982], ["room_id", 8940], ["created_at", "2018-12-07 02:23:49.098869"], ["updated_at", "2018-12-07 02:23:49.098869"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Hn0CFK5MN.IYY2Z.724Q7OlAvOrXF4FoEvWJo58bzrVe.6wpwXp4q"], ["created_at", "2018-12-07 02:23:49.105055"], ["updated_at", "2018-12-07 02:23:49.105055"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.106586"], ["updated_at", "2018-12-07 02:23:49.106586"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8941], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11983], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11983], ["room_id", 8941], ["created_at", "2018-12-07 02:23:49.109513"], ["updated_at", "2018-12-07 02:23:49.109513"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$TfduN.37gHktWrp3BvwcWueQle4EdthwiP5as8JKBQ7jNrafHBuRq"], ["created_at", "2018-12-07 02:23:49.131987"], ["updated_at", "2018-12-07 02:23:49.131987"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.133566"], ["updated_at", "2018-12-07 02:23:49.133566"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.140797"], ["last_sign_in_at", "2018-12-07 02:23:49.140797"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.141252"], ["id", 11984]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8942"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8942 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8942], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11984], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11984], ["room_id", 8942], ["created_at", "2018-12-07 02:23:49.149406"], ["updated_at", "2018-12-07 02:23:49.149406"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8942], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.1ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VYwMgq/K2qK50MO.L8mWnuUTO4UXRQ2f4QAWt9/6AcDlM2UyxVe2q"], ["created_at", "2018-12-07 02:23:49.155118"], ["updated_at", "2018-12-07 02:23:49.155118"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.156517"], ["updated_at", "2018-12-07 02:23:49.156517"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.158400"], ["last_sign_in_at", "2018-12-07 02:23:49.158400"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.158738"], ["id", 11985]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8943"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8943 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8943], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11985], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11985], ["room_id", 8943], ["created_at", "2018-12-07 02:23:49.163099"], ["updated_at", "2018-12-07 02:23:49.163099"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 0.9ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LsHSiSGatEOu8A77Ceo.JefDNpRNxT7cKg7M2Blt/VmeF/.ov5TvC"], ["created_at", "2018-12-07 02:23:49.168363"], ["updated_at", "2018-12-07 02:23:49.168363"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.169867"], ["updated_at", "2018-12-07 02:23:49.169867"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.172159"], ["last_sign_in_at", "2018-12-07 02:23:49.172159"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.172525"], ["id", 11986]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8944", "user_id"=>"11986"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8944 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8944], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11986], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11986], ["room_id", 8944], ["created_at", "2018-12-07 02:23:49.178065"], ["updated_at", "2018-12-07 02:23:49.178065"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8944", "user_id"=>"11986"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11986], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8944 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8944], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11986], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11986], ["room_id", 8944], ["created_at", "2018-12-07 02:23:49.185015"], ["updated_at", "2018-12-07 02:23:49.185015"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$37QDRchzRCZBr9jrZofOue3o3EkCx04I2Xnc3nG.Vek0bVniOKQpm"], ["created_at", "2018-12-07 02:23:49.190452"], ["updated_at", "2018-12-07 02:23:49.190452"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.192050"], ["updated_at", "2018-12-07 02:23:49.192050"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.194408"], ["last_sign_in_at", "2018-12-07 02:23:49.194408"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.194852"], ["id", 11987]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8945", "user_id"=>"11987"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8945 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8945], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11987], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11987], ["room_id", 8945], ["created_at", "2018-12-07 02:23:49.199517"], ["updated_at", "2018-12-07 02:23:49.199517"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8945", "user_id"=>"11987"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11987], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8945 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8945], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11987], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11987], ["room_id", 8945], ["created_at", "2018-12-07 02:23:49.205982"], ["updated_at", "2018-12-07 02:23:49.205982"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8945], ["user_id", 11987], ["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sL/wfwGY3SW7BtKp2ERWY.B3Y.7Xr7VAKGGj0A0OTICj7MNzyNE.q"], ["created_at", "2018-12-07 02:23:49.212957"], ["updated_at", "2018-12-07 02:23:49.212957"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.214663"], ["updated_at", "2018-12-07 02:23:49.214663"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.216878"], ["last_sign_in_at", "2018-12-07 02:23:49.216878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.217305"], ["id", 11988]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8946", "user_id"=>"11988"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8946 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8946], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11988], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11988], ["room_id", 8946], ["created_at", "2018-12-07 02:23:49.222002"], ["updated_at", "2018-12-07 02:23:49.222002"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8946", "user_id"=>"11988"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 11988], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8946 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8946], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11988], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 11988], ["room_id", 8946], ["created_at", "2018-12-07 02:23:49.228146"], ["updated_at", "2018-12-07 02:23:49.228146"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8946], ["user_id", 11988], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$CaWSzY2c.RiG07HAjEvvbeVRO/5bUiPU8a.4wA1SyQXC3GD6GjG8O"], ["created_at", "2018-12-07 02:23:49.233904"], ["updated_at", "2018-12-07 02:23:49.233904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.235435"], ["updated_at", "2018-12-07 02:23:49.235435"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.237527"], ["last_sign_in_at", "2018-12-07 02:23:49.237527"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.237991"], ["id", 11989]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8947"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8947], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1IqlFEiC8J/hgV0ofOtGsuRWILjpDzfDe.nWyf4A4K6DejSUThB8e"], ["created_at", "2018-12-07 02:23:49.250628"], ["updated_at", "2018-12-07 02:23:49.250628"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.252296"], ["updated_at", "2018-12-07 02:23:49.252296"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.254223"], ["last_sign_in_at", "2018-12-07 02:23:49.254223"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.254607"], ["id", 11990]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8948"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ASzDa1.FSQr6q/dgIWlbJOijplyfUwpYZmIz3IsEz70XmL4YQQQRO"], ["created_at", "2018-12-07 02:23:49.261850"], ["updated_at", "2018-12-07 02:23:49.261850"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.263571"], ["updated_at", "2018-12-07 02:23:49.263571"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8949], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11991], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11991], ["room_id", 8949], ["created_at", "2018-12-07 02:23:49.266437"], ["updated_at", "2018-12-07 02:23:49.266437"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8949” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.268230"], ["last_sign_in_at", "2018-12-07 02:23:49.268230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.268646"], ["id", 11991]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8949"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8949], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8949')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 195ms (Views: 193.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/m8mEqEN2raJIPVfXlgnqeH9Y8LWQqJLUfiVu0j3fm2xhKCAVW3.q"], ["created_at", "2018-12-07 02:23:49.471062"], ["updated_at", "2018-12-07 02:23:49.471062"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.472807"], ["updated_at", "2018-12-07 02:23:49.472807"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8950], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11992], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11992], ["room_id", 8950], ["created_at", "2018-12-07 02:23:49.475973"], ["updated_at", "2018-12-07 02:23:49.475973"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4708/edit” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.477543"], ["last_sign_in_at", "2018-12-07 02:23:49.477543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.477911"], ["id", 11992]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4708"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4708], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Kza6F7migh//XevW20f8MOney5NDVzN7IbtmZNhQSde9dCtvSMrWe"], ["created_at", "2018-12-07 02:23:49.489578"], ["updated_at", "2018-12-07 02:23:49.489578"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.491378"], ["last_sign_in_at", "2018-12-07 02:23:49.491378"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.491783"], ["id", 11993]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$75IhqZ5lxFpcAIA4SA2Oa.nqhhY3v9mBd2SB8gFrAGbvIZLhPPK5O"], ["created_at", "2018-12-07 02:23:49.502867"], ["updated_at", "2018-12-07 02:23:49.502867"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.504471"], ["updated_at", "2018-12-07 02:23:49.504471"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8951], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11994], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11994], ["room_id", 8951], ["created_at", "2018-12-07 02:23:49.507466"], ["updated_at", "2018-12-07 02:23:49.507466"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8951], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11994], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11994], ["room_id", 8951], ["created_at", "2018-12-07 02:23:49.510235"], ["updated_at", "2018-12-07 02:23:49.510235"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.511736"], ["last_sign_in_at", "2018-12-07 02:23:49.511736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.512119"], ["id", 11994]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11994]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$GUKkFg1rYzQjTxTsTfxoC.cTue04JFu9jyzdgX82TFiT.CXdjo7EW"], ["created_at", "2018-12-07 02:23:49.526849"], ["updated_at", "2018-12-07 02:23:49.526849"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.528877"], ["updated_at", "2018-12-07 02:23:49.528877"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8952], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11995], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11995], ["room_id", 8952], ["created_at", "2018-12-07 02:23:49.532073"], ["updated_at", "2018-12-07 02:23:49.532073"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8952], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11995], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11995], ["room_id", 8952], ["created_at", "2018-12-07 02:23:49.534886"], ["updated_at", "2018-12-07 02:23:49.534886"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.536391"], ["last_sign_in_at", "2018-12-07 02:23:49.536391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.536774"], ["id", 11995]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 11995]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bK6wGqEQzbQ6wy2SV7RDfu9gLR/7j6eh0J4CUBtppeVH8HteSxKv6"], ["created_at", "2018-12-07 02:23:49.546078"], ["updated_at", "2018-12-07 02:23:49.546078"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.547744"], ["updated_at", "2018-12-07 02:23:49.547744"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8953], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11996], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11996], ["room_id", 8953], ["created_at", "2018-12-07 02:23:49.550614"], ["updated_at", "2018-12-07 02:23:49.550614"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4713” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.552118"], ["last_sign_in_at", "2018-12-07 02:23:49.552118"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.552475"], ["id", 11996]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4713"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4713], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4713]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6p2pHS6LMTJdq0uNpnVhheyT59uA7EvK0ETyq9fn3druuEwF4HOGy"], ["created_at", "2018-12-07 02:23:49.561644"], ["updated_at", "2018-12-07 02:23:49.561644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.563416"], ["updated_at", "2018-12-07 02:23:49.563416"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$y08PBYB5iYdgz0bX.OlHJO7uuWPztX3ov6LFQqUuMfAl5J0ONqMB2"], ["created_at", "2018-12-07 02:23:49.566610"], ["updated_at", "2018-12-07 02:23:49.566610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8954], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11998], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 11998], ["room_id", 8954], ["created_at", "2018-12-07 02:23:49.569642"], ["updated_at", "2018-12-07 02:23:49.569642"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4714” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.571524"], ["last_sign_in_at", "2018-12-07 02:23:49.571524"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.571877"], ["id", 11997]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4714"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4714], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8954], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 11998], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7zVX/yEmlsJUSn0I2wzuq.JrgUCvyB//DHajSZBnaH9rfTfKidraC"], ["created_at", "2018-12-07 02:23:49.581167"], ["updated_at", "2018-12-07 02:23:49.581167"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.582708"], ["updated_at", "2018-12-07 02:23:49.582708"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OeS.areHEncv7dLb5Kwip.LYMFDBWwlHkw4GxeG4l7gux7WGDEd1K"], ["created_at", "2018-12-07 02:23:49.585651"], ["updated_at", "2018-12-07 02:23:49.585651"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8955], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12000], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12000], ["room_id", 8955], ["created_at", "2018-12-07 02:23:49.588825"], ["updated_at", "2018-12-07 02:23:49.588825"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4715” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.591127"], ["last_sign_in_at", "2018-12-07 02:23:49.591127"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.591717"], ["id", 11999]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4715"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4715], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8955], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12000], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pJRjTlSv0rl3K307Hvy7au9xYnXb4eglXqPBN5h9eW4tiFh27YDXe"], ["created_at", "2018-12-07 02:23:49.601337"], ["updated_at", "2018-12-07 02:23:49.601337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.602944"], ["updated_at", "2018-12-07 02:23:49.602944"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$L7sU1OiCNoqfMgBLBXGgJeB4Vm.jYAjYeOUDIHBZdepK5UbkydeQe"], ["created_at", "2018-12-07 02:23:49.606174"], ["updated_at", "2018-12-07 02:23:49.606174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8956], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12002], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12002], ["room_id", 8956], ["created_at", "2018-12-07 02:23:49.609243"], ["updated_at", "2018-12-07 02:23:49.609243"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4716” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.611145"], ["last_sign_in_at", "2018-12-07 02:23:49.611145"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.611511"], ["id", 12001]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4716"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4716], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8956], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12002], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:23:49.615575"], ["id", 4716]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.5ms) Date: Fri, 07 Dec 2018 00:23:49 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09d9b5973b6_53f82b29ae9425fc823f1@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09d9b596de1_53f82b29ae9425fc82297";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09d9b596de1_53f82b29ae9425fc82297 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09d9b596de1_53f82b29ae9425fc82297 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09d9b596de1_53f82b29ae9425fc82297–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QvXQUI3MoIVnVjpDmKukDeGG1zHnnmn0CeVp9fntZCFMtFyQ6uzGe"], ["created_at", "2018-12-07 02:23:49.626492"], ["updated_at", "2018-12-07 02:23:49.626492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.628328"], ["updated_at", "2018-12-07 02:23:49.628328"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$vJtPfg0ZzL/V0q7JukD0T.QggL8FwDGSDckTy1Z7rENszNrSERsA6"], ["created_at", "2018-12-07 02:23:49.631614"], ["updated_at", "2018-12-07 02:23:49.631614"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8957], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12004], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12004], ["room_id", 8957], ["created_at", "2018-12-07 02:23:49.634717"], ["updated_at", "2018-12-07 02:23:49.634717"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:23:49.636095"], ["id", 4717]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8957], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12004], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12004], ["room_id", 8957], ["created_at", "2018-12-07 02:23:49.638653"], ["updated_at", "2018-12-07 02:23:49.638653"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:23:49.639910"], ["id", 4718]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.641307"], ["last_sign_in_at", "2018-12-07 02:23:49.641307"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.641655"], ["id", 12003]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12004], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8957], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12004], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8957], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V5t5c1J18vRt0ZujUSR3je5BdiogIRMLLbSBW2x7qS5percYJf1z."], ["created_at", "2018-12-07 02:23:49.654966"], ["updated_at", "2018-12-07 02:23:49.654966"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.656844"], ["updated_at", "2018-12-07 02:23:49.656844"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Tnz7wOx9U7DnruXsnxGFseVT8cy.aHasiSPhTpr8477RNllazhb/6"], ["created_at", "2018-12-07 02:23:49.660180"], ["updated_at", "2018-12-07 02:23:49.660180"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8958], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12006], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12006], ["room_id", 8958], ["created_at", "2018-12-07 02:23:49.663242"], ["updated_at", "2018-12-07 02:23:49.663242"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:23:49.664601"], ["id", 4719]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8958], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12006], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12006], ["room_id", 8958], ["created_at", "2018-12-07 02:23:49.667181"], ["updated_at", "2018-12-07 02:23:49.667181"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:23:49.668442"], ["id", 4720]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.669852"], ["last_sign_in_at", "2018-12-07 02:23:49.669852"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.670205"], ["id", 12005]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12006], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8958], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12006], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8958], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8jEjihfCPUNr0xlNLQ5zd.WaukIWlUFXV14X4LgMFoMUCrlNrEqjK"], ["created_at", "2018-12-07 02:23:49.682259"], ["updated_at", "2018-12-07 02:23:49.682259"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.684050"], ["last_sign_in_at", "2018-12-07 02:23:49.684050"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.684379"], ["id", 12007]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TTbrN1/YJ0adwI0McnUo2u5DsQvC5T5FE6TN.SABRRbfAEvdtltam"], ["created_at", "2018-12-07 02:23:49.697751"], ["updated_at", "2018-12-07 02:23:49.697751"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.699457"], ["last_sign_in_at", "2018-12-07 02:23:49.699457"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.699823"], ["id", 12008]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1ORnHufmeZ3bGZ0TCswTYeXkHQNDR6SQo3Zcx1dvuBNLsmaDGrY52"], ["created_at", "2018-12-07 02:23:49.705612"], ["updated_at", "2018-12-07 02:23:49.705612"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.707133"], ["last_sign_in_at", "2018-12-07 02:23:49.707133"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.707469"], ["id", 12009]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$R1LvM3Z.yFlCEVdwOQLzbu9gOEMSX5ZBrN7r1.yi0TwGsEUossHc2"], ["created_at", "2018-12-07 02:23:49.717369"], ["updated_at", "2018-12-07 02:23:49.717369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.719294"], ["last_sign_in_at", "2018-12-07 02:23:49.719294"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.719661"], ["id", 12010]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$1eofLOilIWrwz5zZXNYjwuz1tGN5McPbE9vpNXyUVnx2vWN6BBxQ2"], ["created_at", "2018-12-07 02:23:49.733628"], ["updated_at", "2018-12-07 02:23:49.733628"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.735200"], ["updated_at", "2018-12-07 02:23:49.735200"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8959” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.736592"], ["last_sign_in_at", "2018-12-07 02:23:49.736592"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.737001"], ["id", 12011]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8959"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8959], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$foGb19dX6F1qy6UQl.Wr0uKpl965uGmF6K/ClDOvEbBcEvYZTJKei"], ["created_at", "2018-12-07 02:23:49.745691"], ["updated_at", "2018-12-07 02:23:49.745691"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.747351"], ["updated_at", "2018-12-07 02:23:49.747351"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8960” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.749154"], ["last_sign_in_at", "2018-12-07 02:23:49.749154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.749580"], ["id", 12012]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"8960"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8960], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.756392"], ["updated_at", "2018-12-07 02:23:49.756392"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8961” for 127.0.0.1 at 2018-12-07 00:23:49 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8961"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q87Ay4FdG.uciY9TKRW.D./r2m/FfYqkeqaxzVAZ3f1iEEJUJXCpW"], ["created_at", "2018-12-07 02:23:49.762417"], ["updated_at", "2018-12-07 02:23:49.762417"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.763942"], ["updated_at", "2018-12-07 02:23:49.763942"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8962” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.765301"], ["last_sign_in_at", "2018-12-07 02:23:49.765301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.765654"], ["id", 12013]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8962"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.773273"], ["updated_at", "2018-12-07 02:23:49.773273"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/8963” for 127.0.0.1 at 2018-12-07 00:23:49 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"8963"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VRznpp8ZuCpyyDtnB4M9GuakUda40kDLLtfSvJsx09cmvTtRb7AvG"], ["created_at", "2018-12-07 02:23:49.779522"], ["updated_at", "2018-12-07 02:23:49.779522"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.781485"], ["updated_at", "2018-12-07 02:23:49.781485"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8964/edit” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.783055"], ["last_sign_in_at", "2018-12-07 02:23:49.783055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.783453"], ["id", 12014]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8964"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8964], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vhInKsJB7ttAbzzfdm3xDOaYiD5A3JLFHb.684JdgQns8fffIIo5O"], ["created_at", "2018-12-07 02:23:49.793861"], ["updated_at", "2018-12-07 02:23:49.793861"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.795452"], ["updated_at", "2018-12-07 02:23:49.795452"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8965/edit” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.796853"], ["last_sign_in_at", "2018-12-07 02:23:49.796853"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.797217"], ["id", 12015]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"8965"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8965], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.804777"], ["updated_at", "2018-12-07 02:23:49.804777"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/8966” for 127.0.0.1 at 2018-12-07 00:23:49 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"8966"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.5ywyTiu/JX/QeI2Kp6p7e7lQgDflgh2hH85/Xpq0Txn1v6jBrm9W"], ["created_at", "2018-12-07 02:23:49.811176"], ["updated_at", "2018-12-07 02:23:49.811176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.813610"], ["last_sign_in_at", "2018-12-07 02:23:49.813610"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.813972"], ["id", 12016]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.816463"], ["updated_at", "2018-12-07 02:23:49.816463"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KY7zfh0qx/dPT05pY/kah.lPa7NHdAnVgIJ2clqdWqthpKVKEqpDG"], ["created_at", "2018-12-07 02:23:49.822174"], ["updated_at", "2018-12-07 02:23:49.822174"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.824202"], ["last_sign_in_at", "2018-12-07 02:23:49.824202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.824565"], ["id", 12017]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.826828"], ["updated_at", "2018-12-07 02:23:49.826828"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ScbzezRq1muU4p/u/RWjl.Qu9a6o8VW9/IvbOTdhTIGDOob3.jnru"], ["created_at", "2018-12-07 02:23:49.831974"], ["updated_at", "2018-12-07 02:23:49.831974"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.834008"], ["last_sign_in_at", "2018-12-07 02:23:49.834008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.834386"], ["id", 12018]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$487dybCpSKwnZiUwbxCQhO4Bm2BWw2j3tUb/KOC2GZHN4kVYglmkC"], ["created_at", "2018-12-07 02:23:49.842059"], ["updated_at", "2018-12-07 02:23:49.842059"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.844430"], ["last_sign_in_at", "2018-12-07 02:23:49.844430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.844754"], ["id", 12019]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.Z1IjumyTw0/OFz9oKd2c.mzJogfUo0J3xJwl.MhmfzgpYJkU7cei"], ["created_at", "2018-12-07 02:23:49.852283"], ["updated_at", "2018-12-07 02:23:49.852283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.854260"], ["last_sign_in_at", "2018-12-07 02:23:49.854260"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.854672"], ["id", 12020]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$n5FsoJ5CVkotq9Q1tnpvZ.dIvgvOindvlwgDGioASTL3OoqlK5q9K"], ["created_at", "2018-12-07 02:23:49.860424"], ["updated_at", "2018-12-07 02:23:49.860424"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.861906"], ["updated_at", "2018-12-07 02:23:49.861906"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8969” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.863628"], ["last_sign_in_at", "2018-12-07 02:23:49.863628"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.863979"], ["id", 12021]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8969"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8969], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:23:49.866760"], ["id", 8969]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8969 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$X7qLSB9VY.eIN6DshpmmAO0wax52tFIcCvvgnv15tzhpco.79a2sS"], ["created_at", "2018-12-07 02:23:49.872293"], ["updated_at", "2018-12-07 02:23:49.872293"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.874095"], ["updated_at", "2018-12-07 02:23:49.874095"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8970” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.876178"], ["last_sign_in_at", "2018-12-07 02:23:49.876178"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.876563"], ["id", 12022]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8970"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8970], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:23:49.879480"], ["id", 8970]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/8970 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mom.1svxN1Y0L4skRzGfJePtzwR.UHUuIZ2cvfPBeQKOdPNpO8O5S"], ["created_at", "2018-12-07 02:23:49.884773"], ["updated_at", "2018-12-07 02:23:49.884773"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.886426"], ["updated_at", "2018-12-07 02:23:49.886426"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8971” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.888201"], ["last_sign_in_at", "2018-12-07 02:23:49.888201"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.888585"], ["id", 12023]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8971"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8971], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$93rwPk2.eZzXajyJd2rNqegpiPUL5XU/H2eGVkXMLEWr95LMflTYO"], ["created_at", "2018-12-07 02:23:49.899644"], ["updated_at", "2018-12-07 02:23:49.899644"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.901204"], ["updated_at", "2018-12-07 02:23:49.901204"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/8972” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.903041"], ["last_sign_in_at", "2018-12-07 02:23:49.903041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.903414"], ["id", 12024]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"8972"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8972], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U/IHUO6PHAPwLhOysS4Ut.6uxj/b7HbwtsX4q5IFrcC40TPso1THW"], ["created_at", "2018-12-07 02:23:49.914613"], ["updated_at", "2018-12-07 02:23:49.914613"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.916648"], ["last_sign_in_at", "2018-12-07 02:23:49.916648"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.916962"], ["id", 12025]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uu44Ngw0E9Fxv3bb2Dsu/uFH4D0jO3leEqTvteJuSZTa9TZhwjqUe"], ["created_at", "2018-12-07 02:23:49.922801"], ["updated_at", "2018-12-07 02:23:49.922801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.924298"], ["updated_at", "2018-12-07 02:23:49.924298"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8973” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.925650"], ["last_sign_in_at", "2018-12-07 02:23:49.925650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.926001"], ["id", 12026]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8973"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8973], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8973]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LXDbCHywU3YHr2h72zTRuesoZ1kZVdEpek.EbkEI/26cMGF726H8y"], ["created_at", "2018-12-07 02:23:49.933270"], ["updated_at", "2018-12-07 02:23:49.933270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.934849"], ["updated_at", "2018-12-07 02:23:49.934849"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8974” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.936315"], ["last_sign_in_at", "2018-12-07 02:23:49.936315"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.936683"], ["id", 12027]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8974"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8974], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 8974]]
 (0.0ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f7Id3.aSnzD/X/UgOsSOreZPdktUpimRi50aSim6p5LzUNJSzzNrO"], ["created_at", "2018-12-07 02:23:49.944058"], ["updated_at", "2018-12-07 02:23:49.944058"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.945614"], ["updated_at", "2018-12-07 02:23:49.945614"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8975” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.946990"], ["last_sign_in_at", "2018-12-07 02:23:49.946990"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.947348"], ["id", 12028]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8975"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$naeI1Gmgt1sy0kgTo9334.UyFRtYfeYMCaSFwyvEpePYZ9u1530Je"], ["created_at", "2018-12-07 02:23:49.953349"], ["updated_at", "2018-12-07 02:23:49.953349"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.954887"], ["updated_at", "2018-12-07 02:23:49.954887"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/8976” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.956237"], ["last_sign_in_at", "2018-12-07 02:23:49.956237"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.956603"], ["id", 12029]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"8976"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Synn0d5odTlSAhiwXNLTFOs77BJmI2eqFKcbZ64KCdkFz9Jsuw/PC"], ["created_at", "2018-12-07 02:23:49.962510"], ["updated_at", "2018-12-07 02:23:49.962510"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.964112"], ["last_sign_in_at", "2018-12-07 02:23:49.964112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.964447"], ["id", 12030]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7IyALj37Bzx4ZnIXaItBHuHp/Ei6/7veA8QQkStjSjAtsqvXWTpX."], ["created_at", "2018-12-07 02:23:49.976412"], ["updated_at", "2018-12-07 02:23:49.976412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.977981"], ["updated_at", "2018-12-07 02:23:49.977981"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.979278"], ["updated_at", "2018-12-07 02:23:49.979278"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:49.980434"], ["updated_at", "2018-12-07 02:23:49.980434"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8977], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12031], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12031], ["room_id", 8977], ["created_at", "2018-12-07 02:23:49.983304"], ["updated_at", "2018-12-07 02:23:49.983304"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:23:49 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:49.984917"], ["last_sign_in_at", "2018-12-07 02:23:49.984917"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:49.985277"], ["id", 12031]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ok9tysg6i2z.yT8FhLjYrus6QfF1TmqfKyfVMx/D38zth/3sEB3Zq"], ["created_at", "2018-12-07 02:23:50.001938"], ["updated_at", "2018-12-07 02:23:50.001938"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:50.003597"], ["updated_at", "2018-12-07 02:23:50.003597"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:50.004848"], ["updated_at", "2018-12-07 02:23:50.004848"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:23:50.005979"], ["updated_at", "2018-12-07 02:23:50.005979"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8980], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12032], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12032], ["room_id", 8980], ["created_at", "2018-12-07 02:23:50.008829"], ["updated_at", "2018-12-07 02:23:50.008829"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:23:50 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:23:50.010370"], ["last_sign_in_at", "2018-12-07 02:23:50.010370"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:23:50.010787"], ["id", 12032]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uyO5ogaV79RqbEf1twmEyeFrqbDIiE.SetkwDexh9KHyMSQcLDj/C"], ["created_at", "2018-12-07 02:25:10.462883"], ["updated_at", "2018-12-07 02:25:10.462883"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$h5hRPCvyDDxBfemPhc6T0eLgYm8WMMu1Kh6ibCRuAEYEKGlS/lNsu"], ["created_at", "2018-12-07 02:25:10.468714"], ["updated_at", "2018-12-07 02:25:10.468714"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (1.0ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.483330"], ["updated_at", "2018-12-07 02:25:10.483330"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8983], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12034], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12034], ["room_id", 8983], ["created_at", "2018-12-07 02:25:10.518282"], ["updated_at", "2018-12-07 02:25:10.518282"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4723"}
Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4723], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8983], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12034], ["LIMIT", 1]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 128.3ms Sent mail to 123@123.com (5.3ms) Date: Fri, 07 Dec 2018 00:25:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09da06a4ee3_54552ac965d0a5f8533db@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09da06a40f9_54552ac965d0a5f853219";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09da06a40f9_54552ac965d0a5f853219 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09da06a40f9_54552ac965d0a5f853219 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09da06a40f9_54552ac965d0a5f853219–

Completed 302 Found in 149ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ccyG/XDd6zYcl/c84dpUt.bkgwewQBUfCGIQ4tXgTJfIk98ufA1OO"], ["created_at", "2018-12-07 02:25:10.682675"], ["updated_at", "2018-12-07 02:25:10.682675"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2TSsEshC2T4SbwrGFiaKo.WFNfq4oBf8gWvN6ft3Z7mxnhMPg6EFu"], ["created_at", "2018-12-07 02:25:10.685711"], ["updated_at", "2018-12-07 02:25:10.685711"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.687078"], ["updated_at", "2018-12-07 02:25:10.687078"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8984], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12036], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12036], ["room_id", 8984], ["created_at", "2018-12-07 02:25:10.689777"], ["updated_at", "2018-12-07 02:25:10.689777"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4724"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4724], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8984], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12036], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:25:10.694373"], ["id", 4724]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:25:10 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09da06aa830_54552ac965d0a5f853545@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09da06aa2ab_54552ac965d0a5f85346a";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09da06aa2ab_54552ac965d0a5f85346a Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09da06aa2ab_54552ac965d0a5f85346a Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09da06aa2ab_54552ac965d0a5f85346a–

Completed 302 Found in 9ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5p7v16p8xAP4RiDtodc3QuiukaPzAnqoIcyhbsx8hbs/ifqhhXfb2"], ["created_at", "2018-12-07 02:25:10.703768"], ["updated_at", "2018-12-07 02:25:10.703768"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$OP3ApAmvj8i27N37qudp0..Axrpj7vmhVX/DkfKU0P28Sih4HhymS"], ["created_at", "2018-12-07 02:25:10.707190"], ["updated_at", "2018-12-07 02:25:10.707190"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.708996"], ["updated_at", "2018-12-07 02:25:10.708996"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8985], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12038], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12038], ["room_id", 8985], ["created_at", "2018-12-07 02:25:10.712358"], ["updated_at", "2018-12-07 02:25:10.712358"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$HvYNLa7MWaUqLqG1UKoMjeh/MMkuOS3ZAN.UCZz2vkF0Otwfm/lW6"], ["created_at", "2018-12-07 02:25:10.719054"], ["updated_at", "2018-12-07 02:25:10.719054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YY7WvQaxiIXwDsJZKsk60.b.qkvafhkyqcJC1vdd2G48hwV9bhw2m"], ["created_at", "2018-12-07 02:25:10.722194"], ["updated_at", "2018-12-07 02:25:10.722194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.723670"], ["updated_at", "2018-12-07 02:25:10.723670"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8986], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12040], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12040], ["room_id", 8986], ["created_at", "2018-12-07 02:25:10.726602"], ["updated_at", "2018-12-07 02:25:10.726602"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4726], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$L3HPEqVt0At4HBTswKGueuyiNun253rj3cHWUqQ5HSUGnxDWsLpjS"], ["created_at", "2018-12-07 02:25:10.731770"], ["updated_at", "2018-12-07 02:25:10.731770"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12041"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "zM4PtqymUcamQ6VPwSd-4g"], ["updated_at", "2018-12-07 02:25:10.735164"], ["id", 12041]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:25:10.736774"], ["reset_sent_at", "2018-12-07 02:25:10.736363"], ["id", 12041]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:25:10 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09da06b5a34_54552ac965d0a5f85383f@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09da06b545f_54552ac965d0a5f8537ed";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09da06b545f_54552ac965d0a5f8537ed Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/zM4PtqymUcamQ6VPwSd-4g/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09da06b545f_54552ac965d0a5f8537ed Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/zM4PtqymUcamQ6VPwSd-4g/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09da06b545f_54552ac965d0a5f8537ed–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$6WniXsr.2wZk/ELQaQEtH.uiZ7RMDBz98I5J2px3G92CqacfI.m3a"], ["created_at", "2018-12-07 02:25:10.749738"], ["updated_at", "2018-12-07 02:25:10.749738"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$0Rtbi93oBkEFYT.PA/uFdOBM42vYl8Yu/jXLhCh3MRvB2J8lphfEW"], ["created_at", "2018-12-07 02:25:10.756947"], ["updated_at", "2018-12-07 02:25:10.756947"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12043"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$sY.tTVLwk8oOHFKM/EJdPuo/oXdY8DOMLfl/JvMBkRwyw4U51X/Z2"], ["updated_at", "2018-12-07 02:25:10.761014"], ["id", 12043]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$dECKzBrNLoMZq4To2TWs.eD7y2/snOHwwTXqNuu3vMnNLIKR.qqEO"], ["created_at", "2018-12-07 02:25:10.765854"], ["updated_at", "2018-12-07 02:25:10.765854"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12044"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$v38P/AMfdCnuzd51NjknOuPMkxcHkmsBuLMfG7J93BhZ/elJUxsh6"], ["created_at", "2018-12-07 02:25:10.774109"], ["updated_at", "2018-12-07 02:25:10.774109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12045"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$8yZrhNm/OjSP.B5OGl4GB.iqvXVZkPn99G54hbk9S.YtXrr6t4lZm"], ["created_at", "2018-12-07 02:25:10.787627"], ["updated_at", "2018-12-07 02:25:10.787627"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12046"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.5ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$0IqYT..N8GgKhxoNEnaTuu/Nmg0gr3JmnloTuZgFX4uemg/CcRUE6"], ["created_at", "2018-12-07 02:25:10.795846"], ["updated_at", "2018-12-07 02:25:10.795846"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12047"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4m0/yO6iFAwQvipWrYip1uo2gn6jXvmdOtZ0bRRtAwjo3uLJRapAC"], ["created_at", "2018-12-07 02:25:10.803827"], ["updated_at", "2018-12-07 02:25:10.803827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3IeB7KzwzNWEIM5fnieTw.JB6c8kEggZyexUZXYNMIBxMj/TK7nUS"], ["created_at", "2018-12-07 02:25:10.810569"], ["updated_at", "2018-12-07 02:25:10.810569"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v2kDilTKVu5jyW9QYYGzdOM9OcxgIPFKA8fY.J6cYNMXQkFaz2.aq"], ["created_at", "2018-12-07 02:25:10.817509"], ["updated_at", "2018-12-07 02:25:10.817509"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.819093"], ["updated_at", "2018-12-07 02:25:10.819093"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8987], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12050], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12050], ["room_id", 8987], ["created_at", "2018-12-07 02:25:10.821884"], ["updated_at", "2018-12-07 02:25:10.821884"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$DkuO6GLTV3E/QxCTb0FzN.UxgOWeY7a4XlEv4TbLIQxwPq76bGZfG"], ["created_at", "2018-12-07 02:25:10.828183"], ["updated_at", "2018-12-07 02:25:10.828183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.829779"], ["updated_at", "2018-12-07 02:25:10.829779"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8988], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12051], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12051], ["room_id", 8988], ["created_at", "2018-12-07 02:25:10.833478"], ["updated_at", "2018-12-07 02:25:10.833478"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$tnSdNCTUvEMRAHYTHn3ZyOGZFNw0ALV778njtzlvPIR422Ngs.ocy"], ["created_at", "2018-12-07 02:25:10.855931"], ["updated_at", "2018-12-07 02:25:10.855931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.857509"], ["updated_at", "2018-12-07 02:25:10.857509"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.864721"], ["last_sign_in_at", "2018-12-07 02:25:10.864721"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.865303"], ["id", 12052]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8989"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8989 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8989], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12052], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12052], ["room_id", 8989], ["created_at", "2018-12-07 02:25:10.873088"], ["updated_at", "2018-12-07 02:25:10.873088"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8989], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ceQvSY43nRreSkPmef3ap.YJsEJJ5bJfYDIjJgptVkPC7TBo2JBH."], ["created_at", "2018-12-07 02:25:10.879251"], ["updated_at", "2018-12-07 02:25:10.879251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.880789"], ["updated_at", "2018-12-07 02:25:10.880789"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.882674"], ["last_sign_in_at", "2018-12-07 02:25:10.882674"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.883088"], ["id", 12053]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8990"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8990 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8990], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12053], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12053], ["room_id", 8990], ["created_at", "2018-12-07 02:25:10.887558"], ["updated_at", "2018-12-07 02:25:10.887558"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$RySvFPkRez8RYpitCLBc8OVf/ah/R7MPydIjeXIF8fecyKwkrm4B6"], ["created_at", "2018-12-07 02:25:10.892934"], ["updated_at", "2018-12-07 02:25:10.892934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.894655"], ["updated_at", "2018-12-07 02:25:10.894655"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.897348"], ["last_sign_in_at", "2018-12-07 02:25:10.897348"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.897760"], ["id", 12054]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8991", "user_id"=>"12054"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8991 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8991], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12054], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12054], ["room_id", 8991], ["created_at", "2018-12-07 02:25:10.902493"], ["updated_at", "2018-12-07 02:25:10.902493"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8991", "user_id"=>"12054"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12054], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8991 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8991], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12054], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12054], ["room_id", 8991], ["created_at", "2018-12-07 02:25:10.908720"], ["updated_at", "2018-12-07 02:25:10.908720"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Zfwt5FeoP.31rlHzzw3ak.WjJrXqe1cvwBola0bntJpLvaxH7wUHu"], ["created_at", "2018-12-07 02:25:10.913949"], ["updated_at", "2018-12-07 02:25:10.913949"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.915488"], ["updated_at", "2018-12-07 02:25:10.915488"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.917584"], ["last_sign_in_at", "2018-12-07 02:25:10.917584"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.917954"], ["id", 12055]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8992", "user_id"=>"12055"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8992 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8992], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12055], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12055], ["room_id", 8992], ["created_at", "2018-12-07 02:25:10.922503"], ["updated_at", "2018-12-07 02:25:10.922503"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8992", "user_id"=>"12055"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12055], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8992 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8992], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12055], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12055], ["room_id", 8992], ["created_at", "2018-12-07 02:25:10.929721"], ["updated_at", "2018-12-07 02:25:10.929721"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8992], ["user_id", 12055], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8Xth0TDNywmNWkd7mEXgN.D.hMTKWjvhfJUIHg5hOSoiOoqm437Cu"], ["created_at", "2018-12-07 02:25:10.935877"], ["updated_at", "2018-12-07 02:25:10.935877"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.937400"], ["updated_at", "2018-12-07 02:25:10.937400"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.939558"], ["last_sign_in_at", "2018-12-07 02:25:10.939558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.939963"], ["id", 12056]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8993", "user_id"=>"12056"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8993 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8993], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12056], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12056], ["room_id", 8993], ["created_at", "2018-12-07 02:25:10.944405"], ["updated_at", "2018-12-07 02:25:10.944405"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.1ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"8993", "user_id"=>"12056"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12056], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 8993 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8993], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12056], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12056], ["room_id", 8993], ["created_at", "2018-12-07 02:25:10.950410"], ["updated_at", "2018-12-07 02:25:10.950410"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 8993], ["user_id", 12056], ["status", 1], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JSUqyXThWZ2QIQrV4RAH2.mfZwiDaxquyQ4FamlDbjp1L49rIO2ZS"], ["created_at", "2018-12-07 02:25:10.956415"], ["updated_at", "2018-12-07 02:25:10.956415"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.958458"], ["updated_at", "2018-12-07 02:25:10.958458"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.960621"], ["last_sign_in_at", "2018-12-07 02:25:10.960621"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.961110"], ["id", 12057]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8994"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 8994], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$uvRcramOf/AFeVIEqi5HCeM703cxdHbe2Af9iH/itUalYEyvUvcP6"], ["created_at", "2018-12-07 02:25:10.968857"], ["updated_at", "2018-12-07 02:25:10.968857"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.970461"], ["updated_at", "2018-12-07 02:25:10.970461"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.972327"], ["last_sign_in_at", "2018-12-07 02:25:10.972327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.972741"], ["id", 12058]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"8995"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$v3X2QfecdVjGNTfWoxujU.xMdV4GAVrpZ/67zElPtzeibWuK9Hl4a"], ["created_at", "2018-12-07 02:25:10.979630"], ["updated_at", "2018-12-07 02:25:10.979630"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:10.981144"], ["updated_at", "2018-12-07 02:25:10.981144"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8996], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12059], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12059], ["room_id", 8996], ["created_at", "2018-12-07 02:25:10.984273"], ["updated_at", "2018-12-07 02:25:10.984273"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/8996” for 127.0.0.1 at 2018-12-07 00:25:10 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:10.985794"], ["last_sign_in_at", "2018-12-07 02:25:10.985794"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:10.986171"], ["id", 12059]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"8996"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8996], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '8996')
Rendered appointments/show.html.erb within layouts/application (6.3ms)
Rendered layouts/_header-user.html.erb (3.5ms)

Completed 200 OK in 149ms (Views: 147.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XtBmLJdmzR0535Bzjz2NhOhRDUcyrSVg8vVVcWXIYF.KiBmpcN2p6"], ["created_at", "2018-12-07 02:25:11.144365"], ["updated_at", "2018-12-07 02:25:11.144365"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.147627"], ["updated_at", "2018-12-07 02:25:11.147627"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8997], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12060], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12060], ["room_id", 8997], ["created_at", "2018-12-07 02:25:11.153592"], ["updated_at", "2018-12-07 02:25:11.153592"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4738/edit” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.158306"], ["last_sign_in_at", "2018-12-07 02:25:11.158306"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.158779"], ["id", 12060]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4738"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4738], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (4.3ms)
Rendered layouts/_header-user.html.erb (1.8ms)

Completed 200 OK in 11ms (Views: 9.9ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jZsbQO9lOm0VBqQh8VQt/O4M84rA9sqcpmXmoh41C.tJ2Lz/CUX4G"], ["created_at", "2018-12-07 02:25:11.180886"], ["updated_at", "2018-12-07 02:25:11.180886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.183878"], ["last_sign_in_at", "2018-12-07 02:25:11.183878"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.184373"], ["id", 12061]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (4.2ms)
Rendered layouts/_header-user.html.erb (2.1ms)

Completed 200 OK in 11ms (Views: 10.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$8gTTLqKlfwXLRSq.F91WYubrPOyYtNu373EfQxaosvKr0lPj.C4/O"], ["created_at", "2018-12-07 02:25:11.210186"], ["updated_at", "2018-12-07 02:25:11.210186"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.213638"], ["updated_at", "2018-12-07 02:25:11.213638"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8998], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12062], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12062], ["room_id", 8998], ["created_at", "2018-12-07 02:25:11.220024"], ["updated_at", "2018-12-07 02:25:11.220024"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8998], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12062], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12062], ["room_id", 8998], ["created_at", "2018-12-07 02:25:11.225551"], ["updated_at", "2018-12-07 02:25:11.225551"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.227906"], ["last_sign_in_at", "2018-12-07 02:25:11.227906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.228852"], ["id", 12062]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12062]]
Rendered appointments/my_appointments.html.erb within layouts/application (13.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 24ms (Views: 16.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.g3ix0cff1eiCRBP3KFGJuSAzvY/k9OJy4J3s6nr04VPOTBIDr7o."], ["created_at", "2018-12-07 02:25:11.261598"], ["updated_at", "2018-12-07 02:25:11.261598"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.264201"], ["updated_at", "2018-12-07 02:25:11.264201"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8999], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12063], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12063], ["room_id", 8999], ["created_at", "2018-12-07 02:25:11.268180"], ["updated_at", "2018-12-07 02:25:11.268180"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8999], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12063], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12063], ["room_id", 8999], ["created_at", "2018-12-07 02:25:11.271592"], ["updated_at", "2018-12-07 02:25:11.271592"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.273332"], ["last_sign_in_at", "2018-12-07 02:25:11.273332"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.273786"], ["id", 12063]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12063]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$n0aaBKJwzIH3JB4KHft1y.9A864p/VOf1GPSy5yXPR8f3C2GiJPfm"], ["created_at", "2018-12-07 02:25:11.284445"], ["updated_at", "2018-12-07 02:25:11.284445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.286226"], ["updated_at", "2018-12-07 02:25:11.286226"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9000], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12064], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12064], ["room_id", 9000], ["created_at", "2018-12-07 02:25:11.289553"], ["updated_at", "2018-12-07 02:25:11.289553"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4743” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.291165"], ["last_sign_in_at", "2018-12-07 02:25:11.291165"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.291592"], ["id", 12064]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4743"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4743], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4743]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0nCtvPDbBrx4w02sehHdjeuP/xX4hQC2NeoRaSYdtvBf1y1pBy7Zq"], ["created_at", "2018-12-07 02:25:11.302045"], ["updated_at", "2018-12-07 02:25:11.302045"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.303759"], ["updated_at", "2018-12-07 02:25:11.303759"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.W8keKil1tbx2a7OFZBFr.ja2PLxNItQMGtVr14CEvXhhCR1e68pC"], ["created_at", "2018-12-07 02:25:11.307209"], ["updated_at", "2018-12-07 02:25:11.307209"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9001], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12066], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12066], ["room_id", 9001], ["created_at", "2018-12-07 02:25:11.310398"], ["updated_at", "2018-12-07 02:25:11.310398"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4744” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.312265"], ["last_sign_in_at", "2018-12-07 02:25:11.312265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.312634"], ["id", 12065]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4744"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4744], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9001], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12066], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Og2mWr0.oPbf77NvvFRdyubbiMGMbz00EyyEf3zHnNXkwEUfB1.9O"], ["created_at", "2018-12-07 02:25:11.322301"], ["updated_at", "2018-12-07 02:25:11.322301"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.324125"], ["updated_at", "2018-12-07 02:25:11.324125"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jAv8vj3wKAUFYTKz/tMZQ.cXV/AWr4mpLKBmToZWoNlCth1/wft9K"], ["created_at", "2018-12-07 02:25:11.327970"], ["updated_at", "2018-12-07 02:25:11.327970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9002], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12068], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12068], ["room_id", 9002], ["created_at", "2018-12-07 02:25:11.331456"], ["updated_at", "2018-12-07 02:25:11.331456"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4745” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.333426"], ["last_sign_in_at", "2018-12-07 02:25:11.333426"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.333857"], ["id", 12067]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4745"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4745], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9002], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12068], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$jr1hCac5rkep2q87R8gjTuGoZTkuHtp9GuCaE89KSJtDmuHUz7Pwa"], ["created_at", "2018-12-07 02:25:11.342672"], ["updated_at", "2018-12-07 02:25:11.342672"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.344285"], ["updated_at", "2018-12-07 02:25:11.344285"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$22Gfxwa.EabmPosw/AnkSuRuCRagHQhrykwLBQBa2KL06KxYIaovK"], ["created_at", "2018-12-07 02:25:11.347575"], ["updated_at", "2018-12-07 02:25:11.347575"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9003], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12070], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12070], ["room_id", 9003], ["created_at", "2018-12-07 02:25:11.350601"], ["updated_at", "2018-12-07 02:25:11.350601"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4746” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.352482"], ["last_sign_in_at", "2018-12-07 02:25:11.352482"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.352870"], ["id", 12069]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4746"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4746], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9003], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12070], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:25:11.357484"], ["id", 4746]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:25:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09da075850c_54552ac965d0a5f8545a0@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09da0757f26_54552ac965d0a5f85443f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09da0757f26_54552ac965d0a5f85443f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09da0757f26_54552ac965d0a5f85443f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09da0757f26_54552ac965d0a5f85443f–

Completed 302 Found in 9ms (ActiveRecord: 0.9ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eWyadLd0.teG0P9.qeyzPuEHaO5UqdowfWMZG21.KN4LwRU0n8WcK"], ["created_at", "2018-12-07 02:25:11.368274"], ["updated_at", "2018-12-07 02:25:11.368274"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.370092"], ["updated_at", "2018-12-07 02:25:11.370092"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/STUtkkijqhA0NJjemd.F.a6G4.CauovZo2lxuVoyDr3qkFP8wqei"], ["created_at", "2018-12-07 02:25:11.373379"], ["updated_at", "2018-12-07 02:25:11.373379"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9004], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12072], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12072], ["room_id", 9004], ["created_at", "2018-12-07 02:25:11.376551"], ["updated_at", "2018-12-07 02:25:11.376551"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:25:11.377946"], ["id", 4747]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9004], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12072], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12072], ["room_id", 9004], ["created_at", "2018-12-07 02:25:11.380583"], ["updated_at", "2018-12-07 02:25:11.380583"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:25:11.381855"], ["id", 4748]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.383259"], ["last_sign_in_at", "2018-12-07 02:25:11.383259"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.383600"], ["id", 12071]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12072], ["LIMIT", 1]]
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9004], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12072], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9004], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (4.0ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 8ms (Views: 6.3ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$uAIhaoQqdY0KqZoTjzShkOWrocit.hQ00X8N7ZziTvdszPymf7yle"], ["created_at", "2018-12-07 02:25:11.397941"], ["updated_at", "2018-12-07 02:25:11.397941"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.399693"], ["updated_at", "2018-12-07 02:25:11.399693"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$W3LTr2Vk.Xm7RJePO1Y.O.nHVPDAyuwaBDwtUecx4qYUyQ2mGvp2q"], ["created_at", "2018-12-07 02:25:11.402764"], ["updated_at", "2018-12-07 02:25:11.402764"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9005], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12074], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12074], ["room_id", 9005], ["created_at", "2018-12-07 02:25:11.405883"], ["updated_at", "2018-12-07 02:25:11.405883"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:25:11.407401"], ["id", 4749]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9005], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12074], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12074], ["room_id", 9005], ["created_at", "2018-12-07 02:25:11.410001"], ["updated_at", "2018-12-07 02:25:11.410001"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:25:11.411237"], ["id", 4750]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.412618"], ["last_sign_in_at", "2018-12-07 02:25:11.412618"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.412987"], ["id", 12073]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12074], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9005], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12074], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9005], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.5ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cMNKLnTbWnnbkNyXX5fSiOPD/Ik.akAqLxLCnA42Akro2a8cgVdw2"], ["created_at", "2018-12-07 02:25:11.426037"], ["updated_at", "2018-12-07 02:25:11.426037"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.427767"], ["last_sign_in_at", "2018-12-07 02:25:11.427767"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.428121"], ["id", 12075]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$QoVI8t5GDa9pw7Yt1vf8YORonT/Wv0WcCMN5ELytvDWAGQ23CSVJe"], ["created_at", "2018-12-07 02:25:11.441014"], ["updated_at", "2018-12-07 02:25:11.441014"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.442689"], ["last_sign_in_at", "2018-12-07 02:25:11.442689"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.443037"], ["id", 12076]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tminQE49458WfeM339pH/OTFbIHu3.W7t6r2JL4aHyzQBdN1WQz2i"], ["created_at", "2018-12-07 02:25:11.448875"], ["updated_at", "2018-12-07 02:25:11.448875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.450666"], ["last_sign_in_at", "2018-12-07 02:25:11.450666"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.451074"], ["id", 12077]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LQzg9sRaMIq4Sp3fw0XB0.ladLVThcaIbGCcb8eVNqtIHRmh/duyu"], ["created_at", "2018-12-07 02:25:11.461492"], ["updated_at", "2018-12-07 02:25:11.461492"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.463139"], ["last_sign_in_at", "2018-12-07 02:25:11.463139"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.463513"], ["id", 12078]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$vWhyfgumnNFKehbDkVKMcOXYS.M/YbaCTaxpIlGkqY5QrraEXuCwi"], ["created_at", "2018-12-07 02:25:11.477267"], ["updated_at", "2018-12-07 02:25:11.477267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.478832"], ["updated_at", "2018-12-07 02:25:11.478832"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9006” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.480398"], ["last_sign_in_at", "2018-12-07 02:25:11.480398"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.480861"], ["id", 12079]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9006"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9006], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$swxRKoXw.RcSkaR5lLapuepp4onRUoC9jVFPoBBDoO/LcW1u3csGS"], ["created_at", "2018-12-07 02:25:11.490717"], ["updated_at", "2018-12-07 02:25:11.490717"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.492323"], ["updated_at", "2018-12-07 02:25:11.492323"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9007” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.493782"], ["last_sign_in_at", "2018-12-07 02:25:11.493782"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.494179"], ["id", 12080]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9007"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9007], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.500630"], ["updated_at", "2018-12-07 02:25:11.500630"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9008” for 127.0.0.1 at 2018-12-07 00:25:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9008"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U7RrW20fbVtUYFOkgYIjverYTWP7LI4VzR1roygR8DCTqkJgcQCJ."], ["created_at", "2018-12-07 02:25:11.506771"], ["updated_at", "2018-12-07 02:25:11.506771"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.508350"], ["updated_at", "2018-12-07 02:25:11.508350"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9009” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.509746"], ["last_sign_in_at", "2018-12-07 02:25:11.509746"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.510119"], ["id", 12081]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9009"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.518880"], ["updated_at", "2018-12-07 02:25:11.518880"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9010” for 127.0.0.1 at 2018-12-07 00:25:11 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9010"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UFjBVLCsnceu0cwVwydTdOg7eZ6KyW1JXAkFew6VylzDxmiTHRkn."], ["created_at", "2018-12-07 02:25:11.525239"], ["updated_at", "2018-12-07 02:25:11.525239"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.526780"], ["updated_at", "2018-12-07 02:25:11.526780"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9011/edit” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.528201"], ["last_sign_in_at", "2018-12-07 02:25:11.528201"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.528566"], ["id", 12082]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9011"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9011], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$djCv1wzO3VgfEyL5TMAjJeP5utVI2xPJaxBRnhOtPNRq3N3GBb9aC"], ["created_at", "2018-12-07 02:25:11.539168"], ["updated_at", "2018-12-07 02:25:11.539168"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.540876"], ["updated_at", "2018-12-07 02:25:11.540876"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9012/edit” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.542639"], ["last_sign_in_at", "2018-12-07 02:25:11.542639"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.543118"], ["id", 12083]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9012"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9012], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.551292"], ["updated_at", "2018-12-07 02:25:11.551292"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9013” for 127.0.0.1 at 2018-12-07 00:25:11 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9013"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rIfRDB8dUwrMDMHqtYBIBuWrNAK/6guaKQ0cyxQhUGllTL0vzb4q6"], ["created_at", "2018-12-07 02:25:11.557692"], ["updated_at", "2018-12-07 02:25:11.557692"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.560128"], ["last_sign_in_at", "2018-12-07 02:25:11.560128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.560539"], ["id", 12084]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.563285"], ["updated_at", "2018-12-07 02:25:11.563285"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$W8cApQrCoNDdyEKPN8gpxO9LMXLfEJbSsX61NAtESBqJUXK98GXgy"], ["created_at", "2018-12-07 02:25:11.569369"], ["updated_at", "2018-12-07 02:25:11.569369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.571424"], ["last_sign_in_at", "2018-12-07 02:25:11.571424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.571807"], ["id", 12085]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.574176"], ["updated_at", "2018-12-07 02:25:11.574176"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3stsnmr..JuJQooiVnSuNOzgmv1FuQULDx5XqxmuI9T6ZQVHbaQJ2"], ["created_at", "2018-12-07 02:25:11.580405"], ["updated_at", "2018-12-07 02:25:11.580405"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.582806"], ["last_sign_in_at", "2018-12-07 02:25:11.582806"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.583229"], ["id", 12086]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Zi/4xQpuQ0aCH9uIgkMH8.Zq9E73/EFeaOiIhLB3GxCpR5Wq5GXHa"], ["created_at", "2018-12-07 02:25:11.591375"], ["updated_at", "2018-12-07 02:25:11.591375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.593351"], ["last_sign_in_at", "2018-12-07 02:25:11.593351"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.593703"], ["id", 12087]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LtSKgb5jh.QyPX4dk1dQX.ucpRma9O5gaONYL/r2pKi2ry18tRzFu"], ["created_at", "2018-12-07 02:25:11.601209"], ["updated_at", "2018-12-07 02:25:11.601209"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.603202"], ["last_sign_in_at", "2018-12-07 02:25:11.603202"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.603547"], ["id", 12088]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zAQLnWkAaBIf/qCesLr.ZOQGcDp8cR9YmMQC257dOTB0Af6TjAA22"], ["created_at", "2018-12-07 02:25:11.610260"], ["updated_at", "2018-12-07 02:25:11.610260"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.612028"], ["updated_at", "2018-12-07 02:25:11.612028"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9016” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.613987"], ["last_sign_in_at", "2018-12-07 02:25:11.613987"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.614415"], ["id", 12089]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9016"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9016], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:25:11.617592"], ["id", 9016]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9016 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6m3yL3o63rWNxVrKVzXPOuaBgbQ49EXK4G3bRhrFdyCg6RzLEW6ye"], ["created_at", "2018-12-07 02:25:11.623358"], ["updated_at", "2018-12-07 02:25:11.623358"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.624942"], ["updated_at", "2018-12-07 02:25:11.624942"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9017” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.626761"], ["last_sign_in_at", "2018-12-07 02:25:11.626761"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.627211"], ["id", 12090]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9017"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9017], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:25:11.630210"], ["id", 9017]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9017 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PsNXHDVw4Lb6z7P3LWenXuJ0zTE5PbbkSC8qfX3qMwxx7WwzsFWha"], ["created_at", "2018-12-07 02:25:11.635557"], ["updated_at", "2018-12-07 02:25:11.635557"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.637221"], ["updated_at", "2018-12-07 02:25:11.637221"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9018” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.639299"], ["last_sign_in_at", "2018-12-07 02:25:11.639299"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.640064"], ["id", 12091]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9018"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9018], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8mCP/rjJxlr9.2t54GooDexJrnvlPQUc9WYNtPOqPzmRfVVJCWj6q"], ["created_at", "2018-12-07 02:25:11.652089"], ["updated_at", "2018-12-07 02:25:11.652089"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.653711"], ["updated_at", "2018-12-07 02:25:11.653711"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9019” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.655530"], ["last_sign_in_at", "2018-12-07 02:25:11.655530"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.655975"], ["id", 12092]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9019"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9019], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xin31HFCMysnTTSUTsVMZOgfdqCTkL2byKEyhyNAk3H0/ZxA4xWt6"], ["created_at", "2018-12-07 02:25:11.667090"], ["updated_at", "2018-12-07 02:25:11.667090"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.669272"], ["last_sign_in_at", "2018-12-07 02:25:11.669272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.669660"], ["id", 12093]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aM1D2YKcMeFIQvL/GUb5Q.IzHHgSl6BDMEnE1L2YxDazasvKEie0C"], ["created_at", "2018-12-07 02:25:11.677027"], ["updated_at", "2018-12-07 02:25:11.677027"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.678703"], ["updated_at", "2018-12-07 02:25:11.678703"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9020” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.680217"], ["last_sign_in_at", "2018-12-07 02:25:11.680217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.680648"], ["id", 12094]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9020"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9020], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9020]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gZ9jSfUFf6Vj9CW7CBK9gOUhlFSaY6knsAOaCugyVQEBsEjOutbtm"], ["created_at", "2018-12-07 02:25:11.688425"], ["updated_at", "2018-12-07 02:25:11.688425"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.689943"], ["updated_at", "2018-12-07 02:25:11.689943"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9021” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.691360"], ["last_sign_in_at", "2018-12-07 02:25:11.691360"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.691801"], ["id", 12095]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9021"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9021], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9021]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PXMUmd/Cghry1P9o6YNKDuLXlO1/zdomYpDUOOZJqBEZIfK9/qQ1O"], ["created_at", "2018-12-07 02:25:11.699012"], ["updated_at", "2018-12-07 02:25:11.699012"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.700736"], ["updated_at", "2018-12-07 02:25:11.700736"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9022” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.702662"], ["last_sign_in_at", "2018-12-07 02:25:11.702662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.703296"], ["id", 12096]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9022"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fQdAYwTRkFYczW6W/JTT9OPplanXnUQLYPxoff32FF/sR9uPLQEi2"], ["created_at", "2018-12-07 02:25:11.710096"], ["updated_at", "2018-12-07 02:25:11.710096"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.711689"], ["updated_at", "2018-12-07 02:25:11.711689"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9023” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.713134"], ["last_sign_in_at", "2018-12-07 02:25:11.713134"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.713579"], ["id", 12097]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9023"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/nNH28KZo4GVpglvpgKsHuOQcNSuwSzqrwXrbeG5JnpDwg0WUb/TW"], ["created_at", "2018-12-07 02:25:11.719609"], ["updated_at", "2018-12-07 02:25:11.719609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.721339"], ["last_sign_in_at", "2018-12-07 02:25:11.721339"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.721672"], ["id", 12098]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MV2/Afde7Jst3zdTlM0w9O9PRlDWSi6OKIZ59UxEiifMmi4Ugs1he"], ["created_at", "2018-12-07 02:25:11.733782"], ["updated_at", "2018-12-07 02:25:11.733782"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.735674"], ["updated_at", "2018-12-07 02:25:11.735674"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.736951"], ["updated_at", "2018-12-07 02:25:11.736951"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.738182"], ["updated_at", "2018-12-07 02:25:11.738182"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9024], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12099], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12099], ["room_id", 9024], ["created_at", "2018-12-07 02:25:11.741072"], ["updated_at", "2018-12-07 02:25:11.741072"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.742703"], ["last_sign_in_at", "2018-12-07 02:25:11.742703"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.743068"], ["id", 12099]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.0ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rCIyoGG8jP58RozRfA6Tg.54ls1TE7oRvRSgrYc8S8HfwC8n.ZkOa"], ["created_at", "2018-12-07 02:25:11.759454"], ["updated_at", "2018-12-07 02:25:11.759454"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.761035"], ["updated_at", "2018-12-07 02:25:11.761035"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.762451"], ["updated_at", "2018-12-07 02:25:11.762451"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:25:11.763842"], ["updated_at", "2018-12-07 02:25:11.763842"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9027], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12100], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12100], ["room_id", 9027], ["created_at", "2018-12-07 02:25:11.767317"], ["updated_at", "2018-12-07 02:25:11.767317"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:25:11 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:11.768987"], ["last_sign_in_at", "2018-12-07 02:25:11.768987"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:11.769364"], ["id", 12100]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$SIVHBiLNBtntriVfh7XEAenpcrw32E7h6T2VMupPqWqok8MRJcPQ6"], ["created_at", "2018-12-07 02:25:18.799977"], ["updated_at", "2018-12-07 02:25:18.799977"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:18 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (35.6ms)
Rendered users/sessions/new.html.erb within layouts/application (189.9ms)

Completed 200 OK in 209ms (Views: 200.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.039641"], ["last_sign_in_at", "2018-12-07 02:25:19.039641"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.040205"], ["id", 12101]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 10ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12101], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.7ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12101], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12101], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 5.8ms | ActiveRecord: 2.2ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12101], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12101], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Yix7aSfpDPY3OjhFhs0B1.Kgmq71XgcEssNDX42/w4zNRfY1/IxW6"], ["created_at", "2018-12-07 02:25:19.098268"], ["updated_at", "2018-12-07 02:25:19.098268"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.110261"], ["last_sign_in_at", "2018-12-07 02:25:19.110261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.110729"], ["id", 12102]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12102], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12102], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12102], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12102], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12102], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$foDDp2XTRwtGE0LwCFJcaOlWiZ7eYoTKWxAi5poAz0rM5DLv2gz66"], ["created_at", "2018-12-07 02:25:19.154487"], ["updated_at", "2018-12-07 02:25:19.154487"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.167549"], ["last_sign_in_at", "2018-12-07 02:25:19.167549"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.167966"], ["id", 12103]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12103], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$bW0C5CA3ejbllf3EOmqUj.GM.nkjJlEROw6Zlveop8ztWY10frZCy"], ["created_at", "2018-12-07 02:25:19.182836"], ["updated_at", "2018-12-07 02:25:19.182836"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$QNnnlkRZP.79oeyOAcAZnu3i5qIdDVKgrWXwmJcxjdyrLA.1UCq7S"], ["created_at", "2018-12-07 02:25:19.205938"], ["updated_at", "2018-12-07 02:25:19.205938"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.217814"], ["last_sign_in_at", "2018-12-07 02:25:19.217814"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.218275"], ["id", 12105]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12105], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:19.227359"], ["updated_at", "2018-12-07 02:25:19.227359"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12105], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.4ms) Started GET “/appointments/9030” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9030"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9030], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9030')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12105], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 6.9ms | ActiveRecord: 1.9ms) Started POST “/appointments.9030” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12105], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9030 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9030], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12105], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 12105], ["room_id", 9030], ["created_at", "2018-12-07 02:25:19.280273"], ["updated_at", "2018-12-07 02:25:19.280273"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12105], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$vYsL8ycVcVKFdz0lD4MzvOdNudAf5SdJspGmeep4CBSbWQwGVdCrS"], ["created_at", "2018-12-07 02:25:19.292263"], ["updated_at", "2018-12-07 02:25:19.292263"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.304262"], ["last_sign_in_at", "2018-12-07 02:25:19.304262"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.304752"], ["id", 12106]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12106], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:19.313184"], ["updated_at", "2018-12-07 02:25:19.313184"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9031], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12106], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12106], ["room_id", 9031], ["created_at", "2018-12-07 02:25:19.317607"], ["updated_at", "2018-12-07 02:25:19.317607"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12106], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/9031” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9031"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9031], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9031')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12106], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 5.0ms | ActiveRecord: 0.7ms) Started POST “/appointments.9031” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12106], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9031 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9031], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12106], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 12106], ["room_id", 9031], ["created_at", "2018-12-07 02:25:19.345708"], ["updated_at", "2018-12-07 02:25:19.345708"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12106], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$7JGadId3s.VFeRh6ggbLWO5ulCQlqwdfxVeY1SPEyyFamxErFnw8y"], ["created_at", "2018-12-07 02:25:19.357355"], ["updated_at", "2018-12-07 02:25:19.357355"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.369101"], ["last_sign_in_at", "2018-12-07 02:25:19.369101"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.369583"], ["id", 12107]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12107], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:19.377470"], ["updated_at", "2018-12-07 02:25:19.377470"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9032], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12107], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12107], ["room_id", 9032], ["created_at", "2018-12-07 02:25:19.381436"], ["updated_at", "2018-12-07 02:25:19.381436"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12107], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12107]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.5ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/4756” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4756"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4756], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4756]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12107], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12107]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$3gaHBhdkLPZxX7gD93kK5uwZqrei9jSqVOmjwmcZLrExodARsPjNe"], ["created_at", "2018-12-07 02:25:19.411088"], ["updated_at", "2018-12-07 02:25:19.411088"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.428804"], ["last_sign_in_at", "2018-12-07 02:25:19.428804"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.429260"], ["id", 12108]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12108], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:25:19.436304"], ["updated_at", "2018-12-07 02:25:19.436304"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9033], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12108], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 12108], ["room_id", 9033], ["created_at", "2018-12-07 02:25:19.440218"], ["updated_at", "2018-12-07 02:25:19.440218"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12108], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12108]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started DELETE “/appointments/4757” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4757"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4757], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4757]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12108], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12108]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$eX7xwevie6hREprFoL.JCuPyBNLRmX9eZrg7ON8sCJUUcr1wHiE2e"], ["created_at", "2018-12-07 02:25:19.462630"], ["updated_at", "2018-12-07 02:25:19.462630"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.474062"], ["last_sign_in_at", "2018-12-07 02:25:19.474062"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.474432"], ["id", 12109]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12109], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 02:25:19.482362"], ["updated_at", "2018-12-07 02:25:19.482362"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:25:19.483527"], ["updated_at", "2018-12-07 02:25:19.483527"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12109], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.5ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12109], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.3ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12109], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$uGy58EYNRw41yVKMWMnHFe.1hUtOw8qp6U7DLDZrWe/m0EgFxv/YO"], ["created_at", "2018-12-07 02:25:19.506686"], ["updated_at", "2018-12-07 02:25:19.506686"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.518824"], ["last_sign_in_at", "2018-12-07 02:25:19.518824"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.519198"], ["id", 12110]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12110], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.5ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12110], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12110], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.7ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$BHhFb3uQ1F4NAr60UVVXcOsef8MwHt.lCrXtzI7Fdhnmbjwb77LJ2"], ["created_at", "2018-12-07 02:25:19.543506"], ["updated_at", "2018-12-07 02:25:19.543506"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.555154"], ["last_sign_in_at", "2018-12-07 02:25:19.555154"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.555533"], ["id", 12111]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12111], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.2ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.5ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12111], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$EJXoR65/lEAfkXOULAMWBuBq4vjLVLRCByHMez.YsiOiE1O4f5LLK"], ["created_at", "2018-12-07 02:25:19.591330"], ["updated_at", "2018-12-07 02:25:19.591330"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.602582"], ["last_sign_in_at", "2018-12-07 02:25:19.602582"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.603184"], ["id", 12112]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12112], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:19.612226"], ["updated_at", "2018-12-07 02:25:19.612226"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9036], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12112], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12112], ["room_id", 9036], ["created_at", "2018-12-07 02:25:19.615835"], ["updated_at", "2018-12-07 02:25:19.615835"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12112], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET “/appointments/9036” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9036"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9036], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9036')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12112], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.5ms) Started POST “/appointments.9036” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12112], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9036 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9036], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12112], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 12112], ["room_id", 9036], ["created_at", "2018-12-07 02:25:19.644005"], ["updated_at", "2018-12-07 02:25:19.644005"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12112], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$IBEMWm9PgMD7NpXDcFwJbu5Gu67Y/BsGuKylsBaeAxjSBWYpC5ha6"], ["created_at", "2018-12-07 02:25:19.655486"], ["updated_at", "2018-12-07 02:25:19.655486"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.666893"], ["last_sign_in_at", "2018-12-07 02:25:19.666893"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.667329"], ["id", 12113]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12113], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:19.675761"], ["updated_at", "2018-12-07 02:25:19.675761"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9037], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12113], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12113], ["room_id", 9037], ["created_at", "2018-12-07 02:25:19.679389"], ["updated_at", "2018-12-07 02:25:19.679389"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12113], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12113]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$19PtYxkwM65wwyiB9/eK4OkxhnbKrYX9nL2iMevDIH.RocAaof3YG"], ["created_at", "2018-12-07 02:25:19.694145"], ["updated_at", "2018-12-07 02:25:19.694145"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.706599"], ["last_sign_in_at", "2018-12-07 02:25:19.706599"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.707012"], ["id", 12114]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12114], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:25:19.713829"], ["updated_at", "2018-12-07 02:25:19.713829"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9038], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12114], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 12114], ["room_id", 9038], ["created_at", "2018-12-07 02:25:19.717353"], ["updated_at", "2018-12-07 02:25:19.717353"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12114], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12114]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$h9bBjGFziLEPA9xBtonXaOHCo0aIYgZ1q18XIQO4PSEO9chyoz8tO"], ["created_at", "2018-12-07 02:25:19.732053"], ["updated_at", "2018-12-07 02:25:19.732053"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.744699"], ["last_sign_in_at", "2018-12-07 02:25:19.744699"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.745073"], ["id", 12115]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12115], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$v/FrjH2D.ZfwMDKIWsqQbOoCavTlBOrjMK/t96VygPjSC9u77yfoS"], ["created_at", "2018-12-07 02:25:19.758227"], ["updated_at", "2018-12-07 02:25:19.758227"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.771009"], ["last_sign_in_at", "2018-12-07 02:25:19.771009"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.771425"], ["id", 12116]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12116], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:25:19.779195"], ["updated_at", "2018-12-07 02:25:19.779195"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:19.780374"], ["updated_at", "2018-12-07 02:25:19.780374"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12116], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.4ms) Started GET “/appointments/9039” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9039"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9039], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9039')
Rendered appointments/show.html.erb within layouts/application (1.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12116], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 6ms (Views: 4.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.9039” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12116], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9039 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9039], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12116], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 12116], ["room_id", 9039], ["created_at", "2018-12-07 02:25:19.810423"], ["updated_at", "2018-12-07 02:25:19.810423"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12116], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Z.pFruIvAXQDVkwHo87ucewizWDCXtr8d5udgeZ8CNhm2XF.tFknu"], ["created_at", "2018-12-07 02:25:19.828301"], ["updated_at", "2018-12-07 02:25:19.828301"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.841388"], ["last_sign_in_at", "2018-12-07 02:25:19.841388"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.841804"], ["id", 12117]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12117], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:25:19.849116"], ["updated_at", "2018-12-07 02:25:19.849116"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:19.850234"], ["updated_at", "2018-12-07 02:25:19.850234"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12117], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/9041” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9041"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9041], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9041')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12117], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.4ms | ActiveRecord: 0.6ms) Started POST “/appointments.9041” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12117], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9041 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12117], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$cqTDbUQYAdsQNfcZh475JOqOVZRwF9y.gESOeHJz2dQMFe8MXP6DS"], ["created_at", "2018-12-07 02:25:19.886051"], ["updated_at", "2018-12-07 02:25:19.886051"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.898272"], ["last_sign_in_at", "2018-12-07 02:25:19.898272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.898663"], ["id", 12118]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12118], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:25:19.905467"], ["updated_at", "2018-12-07 02:25:19.905467"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12118], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12118], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started DELETE “/rooms/9043” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9043"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12118], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9043], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9043]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12118], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$NBPCMtTWCmvMox8KAS.d4evkAMkW7pPj30Tqay5UY5qC5ZlF6Yaeq"], ["created_at", "2018-12-07 02:25:19.933063"], ["updated_at", "2018-12-07 02:25:19.933063"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:25:19.934414"], ["updated_at", "2018-12-07 02:25:19.934414"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:19.950227"], ["last_sign_in_at", "2018-12-07 02:25:19.950227"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:19.950638"], ["id", 12119]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12119], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12119], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/rooms/9044/edit” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9044"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12119], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9044], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.3ms) Started PATCH “/rooms/9044” for 127.0.0.1 at 2018-12-07 00:25:19 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"9044"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12119], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9044], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.2ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$vhUjjdwMeWpIwHGBpHmfjOh7mUk7WUMlzowWvRTe62bguubVPVRMG"], ["created_at", "2018-12-07 02:25:19.995455"], ["updated_at", "2018-12-07 02:25:19.995455"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$Fwz6jbFbBRXZ.eO78hS7Bu9PLXA//nh1Sk6mcxzJzh2FNkv158zEi"], ["created_at", "2018-12-07 02:25:20.004370"], ["updated_at", "2018-12-07 02:25:20.004370"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.015692"], ["last_sign_in_at", "2018-12-07 02:25:20.015692"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.016062"], ["id", 12121]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12121], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12121], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 02:25:20.028904"], ["updated_at", "2018-12-07 02:25:20.028904"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 02:25:20.030065"], ["updated_at", "2018-12-07 02:25:20.030065"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 02:25:20.031027"], ["updated_at", "2018-12-07 02:25:20.031027"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iN0w7Sbi90y9IpaNUjQCOuIrmFaKXb83wmnNIbP3OeTuUop1JUkRm"], ["created_at", "2018-12-07 02:25:20.046037"], ["updated_at", "2018-12-07 02:25:20.046037"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.058344"], ["last_sign_in_at", "2018-12-07 02:25:20.058344"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.058723"], ["id", 12122]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.6ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12122], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:25:20.065658"], ["updated_at", "2018-12-07 02:25:20.065658"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:20.066765"], ["updated_at", "2018-12-07 02:25:20.066765"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12122], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$rKOiTgQykGMY8xGBdPi0gePrft8Z0M1z7mYWPsXJP8iPo3dIwtzOy"], ["created_at", "2018-12-07 02:25:20.082142"], ["updated_at", "2018-12-07 02:25:20.082142"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.094651"], ["last_sign_in_at", "2018-12-07 02:25:20.094651"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.095091"], ["id", 12123]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12123], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:25:20.102647"], ["updated_at", "2018-12-07 02:25:20.102647"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:20.104034"], ["updated_at", "2018-12-07 02:25:20.104034"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12123], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$m8oL9PmyvV2JKQB91RfkDe66iCFbs66Nl8YzK7Mbl8bGbxxYTRsTq"], ["created_at", "2018-12-07 02:25:20.121341"], ["updated_at", "2018-12-07 02:25:20.121341"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.133174"], ["last_sign_in_at", "2018-12-07 02:25:20.133174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.133633"], ["id", 12124]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12124], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:25:20.141100"], ["updated_at", "2018-12-07 02:25:20.141100"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:20.142495"], ["updated_at", "2018-12-07 02:25:20.142495"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12124], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12124], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12124], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12124], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12124], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-08", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12124], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-08' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 11ms (Views: 3.3ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$AiEndrKd3Rr.9y0yOnUs4.58cQCpHy/LZz3rCTTUIMAElx7iSXOeq"], ["created_at", "2018-12-07 02:25:20.190075"], ["updated_at", "2018-12-07 02:25:20.190075"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.0ms)
Rendered users/sessions/new.html.erb within layouts/application (2.2ms)

Completed 200 OK in 4ms (Views: 3.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.203436"], ["last_sign_in_at", "2018-12-07 02:25:20.203436"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.203940"], ["id", 12125]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12125], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 9ms (Views: 8.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:25:20.217895"], ["updated_at", "2018-12-07 02:25:20.217895"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:25:20.219362"], ["updated_at", "2018-12-07 02:25:20.219362"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12125], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12125], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12125], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12125], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12125], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.2ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12125], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12125], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$YOnS0/i8/uYs3VfX9zCk1O6XGXwnt2zwHMsWIcK6vj88fpJEQXsOu"], ["created_at", "2018-12-07 02:25:20.255417"], ["updated_at", "2018-12-07 02:25:20.255417"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.272593"], ["last_sign_in_at", "2018-12-07 02:25:20.272593"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.273004"], ["id", 12126]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12126], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.1ms)
Rendered users/registrations/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 5ms (Views: 4.8ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$nnC0Sb/MdPUeDk0.vmc.E.sUYX1DeAfjlN7SE3aLvVK1yLFE3jDai"], ["created_at", "2018-12-07 02:25:20.312205"], ["updated_at", "2018-12-07 02:25:20.312205"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:25:20.313430"], ["last_sign_in_at", "2018-12-07 02:25:20.313430"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:25:20.313734"], ["id", 12127]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 7ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12127], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$4AghKUIRf00WwZ7Jp1R8meb/Li6EZUB6CUiMnem6MQCKKKc7AwSAy"], ["created_at", "2018-12-07 02:25:20.325765"], ["updated_at", "2018-12-07 02:25:20.325765"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.1ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.342585"], ["last_sign_in_at", "2018-12-07 02:25:20.342585"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.343025"], ["id", 12128]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12128], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms) Started GET “/users/12128/edit” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"12128"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12128], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started PUT “/users/12128” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"12128"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12128], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12128], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 12128], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 02:25:20.374763"], ["id", 12128]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.4ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12128], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$o5qoBUB3c7ctbEPDQu0mSePTgQvDHKdwGCKuei0uAdyRrfhKyMGCi"], ["created_at", "2018-12-07 02:25:20.389102"], ["updated_at", "2018-12-07 02:25:20.389102"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.400466"], ["last_sign_in_at", "2018-12-07 02:25:20.400466"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.400895"], ["id", 12129]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12129], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:25:20.409109"], ["updated_at", "2018-12-07 02:25:20.409109"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12129], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12129], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.6ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12129], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12129], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12129], ["room_id", 1], ["created_at", "2018-12-07 02:25:20.434196"], ["updated_at", "2018-12-07 02:25:20.434196"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12129], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$QCiTI8qVv4.1IYpe35H93OdYyUwX88MTb9lMUmGsxQbhzN6WoxBXO"], ["created_at", "2018-12-07 02:25:20.446072"], ["updated_at", "2018-12-07 02:25:20.446072"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:25:20.457993"], ["last_sign_in_at", "2018-12-07 02:25:20.457993"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:25:20.458416"], ["id", 12130]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12130], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:25:20.465682"], ["updated_at", "2018-12-07 02:25:20.465682"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12130], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12130], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12130], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12130], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12130], ["room_id", 1], ["created_at", "2018-12-07 02:25:20.492408"], ["updated_at", "2018-12-07 02:25:20.492408"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12130], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$oxsuWw8LJHUFWe3uG0HepOuTYXYyFrBd47UotvtpO32oquZG2laMS"], ["created_at", "2018-12-07 02:25:20.504382"], ["updated_at", "2018-12-07 02:25:20.504382"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (0.9ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$fTEcZO/ASXLnAwO/QUZkZ.3Zq/nlvED/o6T.By8tadZ8VIe/CElWa"], ["updated_at", "2018-12-07 02:25:20.534367"], ["id", 12131]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$uE94k8NkonqpXmeNsY1g1ukFJkR1LPp6vKemWjAWCFY1t2bg0GK4y"], ["created_at", "2018-12-07 02:25:20.540927"], ["updated_at", "2018-12-07 02:25:20.540927"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 2ms (Views: 2.1ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (0.9ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:25:20 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$cnt.7qtwvKxiR9cHOkXJmeyDb6gG6Plc04JuVV1AuSJFjE9Y0U4Vy"], ["created_at", "2018-12-07 02:27:25.918728"], ["updated_at", "2018-12-07 02:27:25.918728"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (39.7ms)
Rendered users/sessions/new.html.erb within layouts/application (194.3ms)

Completed 200 OK in 208ms (Views: 199.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.157347"], ["last_sign_in_at", "2018-12-07 02:27:26.157347"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.157913"], ["id", 12133]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 11ms (ActiveRecord: 1.2ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12133], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.9ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 6ms (Views: 4.7ms | ActiveRecord: 0.4ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12133], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12133], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (3.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 5.8ms | ActiveRecord: 2.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12133], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12133], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$lwLJ7qxv53XDLRNAnJFxvOQN/Q6LlSu8Fd.L1BdR4UKhjx/qGpU42"], ["created_at", "2018-12-07 02:27:26.217684"], ["updated_at", "2018-12-07 02:27:26.217684"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.229655"], ["last_sign_in_at", "2018-12-07 02:27:26.229655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.230107"], ["id", 12134]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12134], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.3ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12134], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.4ms) Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#new as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12134], ["LIMIT", 1]]
Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#create as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"BS-1234", "location"=>"Babylon", "tipo_sala"=>""}, "commit"=>"Criar Sala"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12134], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12134], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$zWKahjC4gAt4IT8WKeiHse3vDL2x.MumnN.RMEL9LpVtW9HyYTZOC"], ["created_at", "2018-12-07 02:27:26.274176"], ["updated_at", "2018-12-07 02:27:26.274176"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.287261"], ["last_sign_in_at", "2018-12-07 02:27:26.287261"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.287739"], ["id", 12135]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12135], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)

 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$FLdWyUsPB5.NI5YY.D5JpuQ/91Zebc/yccruGTU6JJEqhce22s1Vm"], ["created_at", "2018-12-07 02:27:26.302629"], ["updated_at", "2018-12-07 02:27:26.302629"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]

Completed 401 Unauthorized in 2ms (ActiveRecord: 0.3ms) Processing by Users::SessionsController#new as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.7ms)
Rendered users/sessions/new.html.erb within layouts/application (1.3ms)

Completed 200 OK in 4ms (Views: 2.3ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$O.mmYvoW.oE7bAXk5V8F4eomAVQhY1Y2rQsI8y5dRJvkyJtx4J/qe"], ["created_at", "2018-12-07 02:27:26.325803"], ["updated_at", "2018-12-07 02:27:26.325803"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.337572"], ["last_sign_in_at", "2018-12-07 02:27:26.337572"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.338038"], ["id", 12137]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12137], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:26.347036"], ["updated_at", "2018-12-07 02:27:26.347036"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12137], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms) Started GET “/appointments/9056” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9056"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9056], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9056')
Rendered appointments/show.html.erb within layouts/application (5.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12137], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 6.7ms | ActiveRecord: 1.9ms) Started POST “/appointments.9056” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12137], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9056 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9056], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12137], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 12137], ["room_id", 9056], ["created_at", "2018-12-07 02:27:26.399644"], ["updated_at", "2018-12-07 02:27:26.399644"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 17ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12137], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$d96CXHcYmscDAaY1vEE2a.sWhBgZ.oDhZXIaGRLyNSfytgbs/DAk6"], ["created_at", "2018-12-07 02:27:26.411549"], ["updated_at", "2018-12-07 02:27:26.411549"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.423393"], ["last_sign_in_at", "2018-12-07 02:27:26.423393"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.423887"], ["id", 12138]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12138], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:26.432183"], ["updated_at", "2018-12-07 02:27:26.432183"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9057], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12138], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12138], ["room_id", 9057], ["created_at", "2018-12-07 02:27:26.436735"], ["updated_at", "2018-12-07 02:27:26.436735"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12138], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.5ms) Started GET “/appointments/9057” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9057"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9057], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9057')
Rendered appointments/show.html.erb within layouts/application (2.9ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12138], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.9ms | ActiveRecord: 0.8ms) Started POST “/appointments.9057” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12138], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9057 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9057], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12138], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 12138], ["room_id", 9057], ["created_at", "2018-12-07 02:27:26.465415"], ["updated_at", "2018-12-07 02:27:26.465415"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12138], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.8ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$F1Do03owqdsPP..n1oaJA.ctok2q9V9cxeQqENDi0UkCH1xbLK7wu"], ["created_at", "2018-12-07 02:27:26.477140"], ["updated_at", "2018-12-07 02:27:26.477140"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.489136"], ["last_sign_in_at", "2018-12-07 02:27:26.489136"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.489595"], ["id", 12139]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12139], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:26.497539"], ["updated_at", "2018-12-07 02:27:26.497539"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9058], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12139], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12139], ["room_id", 9058], ["created_at", "2018-12-07 02:27:26.501469"], ["updated_at", "2018-12-07 02:27:26.501469"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12139], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12139]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.6ms | ActiveRecord: 0.6ms) Started DELETE “/appointments/4768” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4768"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4768], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4768]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12139], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12139]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$w7WPWrkjxCa6igPjJIGM9OqNH8t3x4.sYDXrEZHpQ0u2QqeAxKy6O"], ["created_at", "2018-12-07 02:27:26.530420"], ["updated_at", "2018-12-07 02:27:26.530420"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 9ms (Views: 8.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.549362"], ["last_sign_in_at", "2018-12-07 02:27:26.549362"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.549871"], ["id", 12140]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12140], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:27:26.556947"], ["updated_at", "2018-12-07 02:27:26.556947"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9059], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12140], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 12140], ["room_id", 9059], ["created_at", "2018-12-07 02:27:26.560929"], ["updated_at", "2018-12-07 02:27:26.560929"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12140], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12140]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.5ms) Started DELETE “/appointments/4769” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4769"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4769], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4769]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms) Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12140], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12140]]
Rendered appointments/my_appointments.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$4rAhRCwEh405tXYgVjWDpeFwvUwIf1AFfNJmGqu9pc/rYlZNJaQo2"], ["created_at", "2018-12-07 02:27:26.584294"], ["updated_at", "2018-12-07 02:27:26.584294"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.596021"], ["last_sign_in_at", "2018-12-07 02:27:26.596021"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.596541"], ["id", 12141]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12141], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "Pjc-54"], ["created_at", "2018-12-07 02:27:26.604621"], ["updated_at", "2018-12-07 02:27:26.604621"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PJC-BT"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:27:26.605822"], ["updated_at", "2018-12-07 02:27:26.605822"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12141], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12141], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.7ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12141], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.1ms | ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$AqgerR3SJ.ztswfZ7vR3D.Svr57CZVz0hIr16pRlzLoqULWydKPau"], ["created_at", "2018-12-07 02:27:26.630141"], ["updated_at", "2018-12-07 02:27:26.630141"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.642121"], ["last_sign_in_at", "2018-12-07 02:27:26.642121"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.642626"], ["id", 12142]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12142], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12142], ["LIMIT", 1]]
Rendered layouts/_header-admin.html.erb (0.9ms)

Completed 200 OK in 4ms (Views: 3.0ms | ActiveRecord: 0.4ms) Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#weeks_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12142], ["LIMIT", 1]]
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
Rendered appointments/weeks_appointments.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$LAWvFk.PLdljNmt0ihiZQO6Q3EqSYnLV73ndwBgKSHBrpuj9bXzNC"], ["created_at", "2018-12-07 02:27:26.668010"], ["updated_at", "2018-12-07 02:27:26.668010"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.679635"], ["last_sign_in_at", "2018-12-07 02:27:26.679635"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.680061"], ["id", 12143]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12143], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms) Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (0.6ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12143], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.5ms)

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 3], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 8], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 0], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$UmoG4QVbrFkdRsHLbe4SwORw2edQqKCB4NAYqA.OOg67WROmC2.Ny"], ["created_at", "2018-12-07 02:27:26.717206"], ["updated_at", "2018-12-07 02:27:26.717206"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.729759"], ["last_sign_in_at", "2018-12-07 02:27:26.729759"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.730195"], ["id", 12144]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12144], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:26.738310"], ["updated_at", "2018-12-07 02:27:26.738310"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9062], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12144], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12144], ["room_id", 9062], ["created_at", "2018-12-07 02:27:26.742182"], ["updated_at", "2018-12-07 02:27:26.742182"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12144], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/9062” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9062"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9062], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9062')
Rendered appointments/show.html.erb within layouts/application (3.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12144], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.7ms | ActiveRecord: 0.8ms) Started POST “/appointments.9062” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12144], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9062 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9062], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12144], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 12144], ["room_id", 9062], ["created_at", "2018-12-07 02:27:26.771352"], ["updated_at", "2018-12-07 02:27:26.771352"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12144], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$TjZpWZuM.prTXHogGJNkt.y57u4IrDZOeidSixf9wbIuOWCjIt3ky"], ["created_at", "2018-12-07 02:27:26.783658"], ["updated_at", "2018-12-07 02:27:26.783658"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.8ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.796598"], ["last_sign_in_at", "2018-12-07 02:27:26.796598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.797055"], ["id", 12145]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12145], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:26.804735"], ["updated_at", "2018-12-07 02:27:26.804735"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9063], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12145], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12145], ["room_id", 9063], ["created_at", "2018-12-07 02:27:26.808805"], ["updated_at", "2018-12-07 02:27:26.808805"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12145], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12145]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "xela@email.com"], ["encrypted_password", "$2a$04$zZc.PZ5C9r5vbUZ1oYUywu0P1wXePk6XE/w3IBkz4qH6UVsw0pzHO"], ["created_at", "2018-12-07 02:27:26.824923"], ["updated_at", "2018-12-07 02:27:26.824923"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"xela@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "xela@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.836747"], ["last_sign_in_at", "2018-12-07 02:27:26.836747"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.837202"], ["id", 12146]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12146], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pjc-54"], ["location", "PJC-BT"], ["created_at", "2018-12-07 02:27:26.844270"], ["updated_at", "2018-12-07 02:27:26.844270"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9064], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12146], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["user_id", 12146], ["room_id", 9064], ["created_at", "2018-12-07 02:27:26.848046"], ["updated_at", "2018-12-07 02:27:26.848046"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#my_appointments as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12146], ["LIMIT", 1]]
Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.5ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12146]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$1alw/KusPmNEEYrJROao2ez52DIVV6W/S.z761y2hnkDoV3IzQDXa"], ["created_at", "2018-12-07 02:27:26.864714"], ["updated_at", "2018-12-07 02:27:26.864714"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.876537"], ["last_sign_in_at", "2018-12-07 02:27:26.876537"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.877010"], ["id", 12147]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12147], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$c3Wosd7lz785SZ0Pf6yq9e2r1R3tJ0pUJVWvOImGGnQDxTmVIt8/."], ["created_at", "2018-12-07 02:27:26.891905"], ["updated_at", "2018-12-07 02:27:26.891905"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.7ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.903888"], ["last_sign_in_at", "2018-12-07 02:27:26.903888"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.904365"], ["id", 12148]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12148], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:27:26.912174"], ["updated_at", "2018-12-07 02:27:26.912174"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:26.913603"], ["updated_at", "2018-12-07 02:27:26.913603"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12148], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started GET “/appointments/9065” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9065"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9065], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9065')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12148], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.5ms | ActiveRecord: 0.7ms) Started POST “/appointments.9065” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12148], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9065 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9065], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12148], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 12148], ["room_id", 9065], ["created_at", "2018-12-07 02:27:26.944946"], ["updated_at", "2018-12-07 02:27:26.944946"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 6ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12148], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Up8eFnbUiTvUc5mTpGUBFuie4bkkD8x3zfd3WDGbbxNsFxUriWi7y"], ["created_at", "2018-12-07 02:27:26.964588"], ["updated_at", "2018-12-07 02:27:26.964588"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:26.976975"], ["last_sign_in_at", "2018-12-07 02:27:26.976975"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:26.977444"], ["id", 12149]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12149], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:27:26.986506"], ["updated_at", "2018-12-07 02:27:26.986506"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:26.987913"], ["updated_at", "2018-12-07 02:27:26.987913"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:26 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12149], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9067” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9067"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9067], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9067')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12149], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started POST “/appointments.9067” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12149], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9067 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12149], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$.Ep1tutOS.il3NShJBbA3eyKZMCMCJvFzQ4wH5l34ucNVoi9DsER2"], ["created_at", "2018-12-07 02:27:27.025555"], ["updated_at", "2018-12-07 02:27:27.025555"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.037240"], ["last_sign_in_at", "2018-12-07 02:27:27.037240"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.037726"], ["id", 12150]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12150], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.2ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "teste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:27:27.045448"], ["updated_at", "2018-12-07 02:27:27.045448"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12150], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12150], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started DELETE “/rooms/9069” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9069"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12150], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9069], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9069]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12150], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.admin"], ["encrypted_password", "$2a$04$JPteTFW7eB8wfIxNQ5pbSOafki9p9fzBvOddHRpdamA/Up5OX/Yye"], ["created_at", "2018-12-07 02:27:27.074177"], ["updated_at", "2018-12-07 02:27:27.074177"], ["username", "admin"], ["registration", "admin000"], ["course", "ADMIN"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "SalaTeste"], ["location", "locationTeste"], ["created_at", "2018-12-07 02:27:27.075913"], ["updated_at", "2018-12-07 02:27:27.075913"], ["tipo_sala", "tipoTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.admin", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.admin"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.092827"], ["last_sign_in_at", "2018-12-07 02:27:27.092827"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.093299"], ["id", 12151]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12151], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12151], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/rooms/9070/edit” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9070"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12151], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9070], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.6ms | ActiveRecord: 0.5ms) Started PATCH “/rooms/9070” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#update as HTML

Parameters: {"utf8"=>"✓", "room"=>{"name"=>"SalaTeste", "location"=>"LocalizacaoTeste", "tipo_sala"=>""}, "commit"=>"Update", "id"=>"9070"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12151], ["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9070], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.0ms | ActiveRecord: 0.7ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 ORDER BY "rooms"."id" ASC LIMIT $2  [["name", "SalaTeste"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$h4Wvp8p/L0iuqCCYO5nrO.q34jO665zeiYbSiLJeKXSFtl.5ePnkm"], ["created_at", "2018-12-07 02:27:27.138055"], ["updated_at", "2018-12-07 02:27:27.138055"], ["username", "admin"], ["registration", "15/0115474"], ["course", "Engenharia"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@teste.teste"], ["encrypted_password", "$2a$04$exaJCwdIT9wR2UNfN3hB3.oDqQfamiYoL3dXWnWHwciRUxtdHwKeW"], ["created_at", "2018-12-07 02:27:27.148103"], ["updated_at", "2018-12-07 02:27:27.148103"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"teste@teste.teste", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "teste@teste.teste"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.159591"], ["last_sign_in_at", "2018-12-07 02:27:27.159591"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.160040"], ["id", 12153]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12153], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms) Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12153], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.4ms | ActiveRecord: 0.5ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Coodernação"], ["location", "Coodernação"], ["created_at", "2018-12-07 02:27:27.172064"], ["updated_at", "2018-12-07 02:27:27.172064"], ["tipo_sala", "Coodernação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Predio CIC"], ["location", "Predio CIC"], ["created_at", "2018-12-07 02:27:27.173808"], ["updated_at", "2018-12-07 02:27:27.173808"], ["tipo_sala", "Predio CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Salas de Reunião"], ["location", "Salas de Reunião"], ["created_at", "2018-12-07 02:27:27.175125"], ["updated_at", "2018-12-07 02:27:27.175125"], ["tipo_sala", "Salas de Reunião"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.0ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$pqQsNXhGgX5EcUOPyyd08uhhE5M.gAHZrBaj0jauzQ0f6dl4fUi0W"], ["created_at", "2018-12-07 02:27:27.190392"], ["updated_at", "2018-12-07 02:27:27.190392"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.201948"], ["last_sign_in_at", "2018-12-07 02:27:27.201948"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.202386"], ["id", 12154]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12154], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:27:27.211304"], ["updated_at", "2018-12-07 02:27:27.211304"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:27.212514"], ["updated_at", "2018-12-07 02:27:27.212514"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12154], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "admin@admin.com"], ["encrypted_password", "$2a$04$Y4zEEQMEIUmgo789FwX5V.agzQyVUX75xzRl0lIJCMNk0KyLxHl.e"], ["created_at", "2018-12-07 02:27:27.228285"], ["updated_at", "2018-12-07 02:27:27.228285"], ["username", "admin"], ["registration", "15015296"], ["course", "CIC"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"admin@admin.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "admin@admin.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.241327"], ["last_sign_in_at", "2018-12-07 02:27:27.241327"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.241849"], ["id", 12155]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12155], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.4ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:27:27.249858"], ["updated_at", "2018-12-07 02:27:27.249858"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:27.251108"], ["updated_at", "2018-12-07 02:27:27.251108"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12155], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.4ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$OQEP/atSc7yglYZ4Q9Nes.jbNVXapn7I1We.DHl.8FxIgh7eraYZy"], ["created_at", "2018-12-07 02:27:27.267771"], ["updated_at", "2018-12-07 02:27:27.267771"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.281032"], ["last_sign_in_at", "2018-12-07 02:27:27.281032"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.281444"], ["id", 12156]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12156], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:27:27.289020"], ["updated_at", "2018-12-07 02:27:27.289020"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:27.290511"], ["updated_at", "2018-12-07 02:27:27.290511"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12156], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12156], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12156], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12156], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12156], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"2018-12-08", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12156], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '2018-12-08' AND start_time = '8:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 11ms (Views: 3.0ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$leXQoiRdViPbhygLFJzZnO/4uip18gegSetSBEEnX2cFXHLEU7QKe"], ["created_at", "2018-12-07 02:27:27.339098"], ["updated_at", "2018-12-07 02:27:27.339098"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (1.3ms)
Rendered users/sessions/new.html.erb within layouts/application (2.1ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.352379"], ["last_sign_in_at", "2018-12-07 02:27:27.352379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.352851"], ["id", 12157]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12157], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 9ms (Views: 8.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:27:27.366690"], ["updated_at", "2018-12-07 02:27:27.366690"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:27:27.368611"], ["updated_at", "2018-12-07 02:27:27.368611"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.2ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.2ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Amanha"], ["location", "Amanha"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12157], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "08:00:00"], ["location", "08:00:00"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12157], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "Pjc-54"], ["location", "Pjc-54"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12157], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SELECT "rooms"."id" FROM "rooms" WHERE "rooms"."name" = $1 AND "rooms"."location" = $2  [["name", "PJC-BT"], ["location", "PJC-BT"]]
 (0.1ms)  SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12157], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12157], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.5ms | ActiveRecord: 0.3ms) Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#search_result as HTML

Parameters: {"utf8"=>"✓", "date_search"=>"", "time_search"=>"8:00", "commit"=>"Buscar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12157], ["LIMIT", 1]]

Redirected to www.example.com/search-rooms Completed 302 Found in 1ms (ActiveRecord: 0.3ms) Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#search_rooms as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12157], ["LIMIT", 1]]
Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$iYkCait0H9ge.PzBpn6MnecGKgBr7QIDN8EQ0gTnEtkzKHmOMZGvK"], ["created_at", "2018-12-07 02:27:27.405070"], ["updated_at", "2018-12-07 02:27:27.405070"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.422662"], ["last_sign_in_at", "2018-12-07 02:27:27.422662"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.423136"], ["id", 12158]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12158], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/create_user” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::RegistrationsController#new as HTML

Rendering users/registrations/new.html.erb within layouts/application
Rendered layouts/_register-form.html.erb (1.2ms)
Rendered users/registrations/new.html.erb within layouts/application (2.4ms)

Completed 200 OK in 5ms (Views: 4.9ms | ActiveRecord: 0.0ms) Started POST “/create_user” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::RegistrationsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"username"=>"usuario1", "registration"=>"150150296", "course"=>"Ciência da Computação", "email"=>"a@a.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"}
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$OsfBYoZjslwP.q3B4WYTXe/nBGMfQMLag7OSNb/0woMXXM6eKCqny"], ["created_at", "2018-12-07 02:27:27.462611"], ["updated_at", "2018-12-07 02:27:27.462611"], ["username", "usuario1"], ["registration", "150150296"], ["course", "Ciência da Computação"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:27:27.464478"], ["last_sign_in_at", "2018-12-07 02:27:27.464478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:27:27.464843"], ["id", 12159]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 8ms (ActiveRecord: 1.3ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12159], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "a@a.com"], ["encrypted_password", "$2a$04$NAUJhqO/SjUkJb99MhNP3usIFO8T9uSh9sc2mvZ7dR2lAi99BY0ia"], ["created_at", "2018-12-07 02:27:27.477052"], ["updated_at", "2018-12-07 02:27:27.477052"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.3ms)

Completed 200 OK in 1ms (Views: 1.2ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"a@a.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "a@a.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.493279"], ["last_sign_in_at", "2018-12-07 02:27:27.493279"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.493826"], ["id", 12160]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12160], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms) Started GET “/users/12160/edit” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::RegistrationsController#edit as HTML

Parameters: {"id"=>"12160"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12160], ["LIMIT", 1]]
Rendering users/registrations/edit.html.erb within layouts/application
Rendered users/registrations/edit.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.4ms | ActiveRecord: 0.3ms) Started PUT “/users/12160” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::RegistrationsController#update as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"novo_email@a.com", "username"=>"novo_usuario", "registration"=>"150155978", "course"=>"Engenharia de Computação", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]", "current_password"=>"[FILTERED]"}, "commit"=>"Update", "id"=>"12160"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12160], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12160], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3  [["email", "novo_email@a.com"], ["id", 12160], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "users" SET "email" = $1, "username" = $2, "registration" = $3, "course" = $4, "updated_at" = $5 WHERE "users"."id" = $6  [["email", "novo_email@a.com"], ["username", "novo_usuario"], ["registration", "150155978"], ["course", "Engenharia de Computação"], ["updated_at", "2018-12-07 02:27:27.526299"], ["id", 12160]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12160], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "novo_email@a.com"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$aDjy9nvZeG4VJO0Z82nlX.JlogIyUUjLH0mYJmbPev9/k.q84WLfq"], ["created_at", "2018-12-07 02:27:27.541500"], ["updated_at", "2018-12-07 02:27:27.541500"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.552839"], ["last_sign_in_at", "2018-12-07 02:27:27.552839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.553276"], ["id", 12161]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12161], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:27:27.561154"], ["updated_at", "2018-12-07 02:27:27.561154"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12161], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12161], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12161], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12161], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12161], ["room_id", 1], ["created_at", "2018-12-07 02:27:27.587331"], ["updated_at", "2018-12-07 02:27:27.587331"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12161], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.2ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@email.com"], ["encrypted_password", "$2a$04$SL.bK5HTJtmNP.hxUQTqSeVexY8GDbesZHilHgoedzUSQgBEOKfYO"], ["created_at", "2018-12-07 02:27:27.599758"], ["updated_at", "2018-12-07 02:27:27.599758"], ["username", "Andre Luis"], ["registration", "150017171"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"andre@email.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "andre@email.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:27:27.611514"], ["last_sign_in_at", "2018-12-07 02:27:27.611514"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:27:27.611902"], ["id", 12162]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12162], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("id", "name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["id", 1], ["name", "<name>"], ["location", "<location>"], ["created_at", "2018-12-07 02:27:27.619157"], ["updated_at", "2018-12-07 02:27:27.619157"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12162], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started GET “/appointments/1” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"1"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '1')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12162], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.7ms) Started POST “/appointments.1” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"10:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12162], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 1 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12162], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12162], ["room_id", 1], ["created_at", "2018-12-07 02:27:27.646528"], ["updated_at", "2018-12-07 02:27:27.646528"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12162], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$qX0ioCvHCxgsTg06Mz/I3e24r5HRJ.xrurEMzsa5enPPTRTHPowb6"], ["created_at", "2018-12-07 02:27:27.658032"], ["updated_at", "2018-12-07 02:27:27.658032"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.3ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.7ms)
Rendered password_resets/new.html.erb within layouts/application (2.0ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$oztlk.eFmSqQFtzsUb1JwuQL6iepL05xwSom2xydhidLZZ7l2/FjC"], ["updated_at", "2018-12-07 02:27:27.687465"], ["id", 12163]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "andre@a.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "andre@a.com"], ["encrypted_password", "$2a$04$ImwFhv9HhEPbO4n6Jvo3LeUG9M9xm8CGq1f4zD5YbtDba4zkrS88C"], ["created_at", "2018-12-07 02:27:27.694751"], ["updated_at", "2018-12-07 02:27:27.694751"], ["username", "andre"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms) Started GET “/login” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.8ms | ActiveRecord: 0.0ms) Started GET “/password_resets/new” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by PasswordResetsController#new as HTML

Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (1.0ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.0ms) Started POST “/password_resets” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by PasswordResetsController#create as HTML

Parameters: {"utf8"=>"✓", "password_reset"=>"[FILTERED]", "commit"=>"Enviar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", ""], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Rendered layouts/_password_reset_email-form.erb (0.3ms)
Rendered password_resets/new.html.erb within layouts/application (0.9ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN

Started GET “/” for 127.0.0.1 at 2018-12-07 00:27:27 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
Rendered home/index.html.erb within layouts/home (0.4ms)

Completed 200 OK in 2ms (Views: 1.5ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$V3seYGXTR.rpir.LkdDvY.utZMzXMZs1DyRivo5q/LDRh89IB8aKi"], ["created_at", "2018-12-07 02:29:21.858795"], ["updated_at", "2018-12-07 02:29:21.858795"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gA4.1kKPRJJ6Nv0PESDQ7uhilMTWK/au7QnaWng1XHo5RHhrmi2dm"], ["created_at", "2018-12-07 02:29:21.863119"], ["updated_at", "2018-12-07 02:29:21.863119"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:21.870569"], ["updated_at", "2018-12-07 02:29:21.870569"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9082], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12166], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12166], ["room_id", 9082], ["created_at", "2018-12-07 02:29:21.889274"], ["updated_at", "2018-12-07 02:29:21.889274"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4777"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4777], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9082], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12166], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 122.6ms Sent mail to 123@123.com (5.3ms) Date: Fri, 07 Dec 2018 00:29:22 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db025fc2_56fe2afed41a25f4585bb@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db0251e2_56fe2afed41a25f458436";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db0251e2_56fe2afed41a25f458436 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db0251e2_56fe2afed41a25f458436 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db0251e2_56fe2afed41a25f458436–

Completed 302 Found in 132ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KGT7GPzSM55gmuf1ii.NZu5WC3.yHHkJZf/k5HlhLg2JAyRDG8wCW"], ["created_at", "2018-12-07 02:29:22.031245"], ["updated_at", "2018-12-07 02:29:22.031245"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XIc2UtfwtIEX6xGALclGjeT9Ejm5NmC9tx3H4ZyNUA8lG4LAhWFZK"], ["created_at", "2018-12-07 02:29:22.034324"], ["updated_at", "2018-12-07 02:29:22.034324"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.035734"], ["updated_at", "2018-12-07 02:29:22.035734"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9083], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12168], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12168], ["room_id", 9083], ["created_at", "2018-12-07 02:29:22.038377"], ["updated_at", "2018-12-07 02:29:22.038377"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4778"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4778], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9083], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12168], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:29:22.043343"], ["id", 4778]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:29:22 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db02b877_56fe2afed41a25f458742@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db02b2fb_56fe2afed41a25f4586fa";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db02b2fb_56fe2afed41a25f4586fa Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db02b2fb_56fe2afed41a25f4586fa Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db02b2fb_56fe2afed41a25f4586fa–

Completed 302 Found in 9ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Wu/9Pf6q4HpvTIBH13Xwqeireov8d89wogoj0riUZazPERGFCnPje"], ["created_at", "2018-12-07 02:29:22.052495"], ["updated_at", "2018-12-07 02:29:22.052495"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MNf986eSgjZZIU1./DPlL.aVNtvX5edVWljTd2AyYsNvvmLTzlxW."], ["created_at", "2018-12-07 02:29:22.056015"], ["updated_at", "2018-12-07 02:29:22.056015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.058244"], ["updated_at", "2018-12-07 02:29:22.058244"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9084], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12170], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12170], ["room_id", 9084], ["created_at", "2018-12-07 02:29:22.061558"], ["updated_at", "2018-12-07 02:29:22.061558"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Lw8X9GI1zntQuATqnma.JefPMjR9kPfxfdWEjUr.sYODuxNkDxuHC"], ["created_at", "2018-12-07 02:29:22.068126"], ["updated_at", "2018-12-07 02:29:22.068126"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$JA4LbWC.lGKnTOGFB77CLejfvUs59ZQVRloUUm2M/h66uN5DJXSEm"], ["created_at", "2018-12-07 02:29:22.071283"], ["updated_at", "2018-12-07 02:29:22.071283"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.072819"], ["updated_at", "2018-12-07 02:29:22.072819"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9085], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12172], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12172], ["room_id", 9085], ["created_at", "2018-12-07 02:29:22.075712"], ["updated_at", "2018-12-07 02:29:22.075712"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4780], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$qVfLpcPrf2yQq2PjTFI/be2terC/oaP1R0CZjcNpqmJHTakANV.CK"], ["created_at", "2018-12-07 02:29:22.080788"], ["updated_at", "2018-12-07 02:29:22.080788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12173"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "TksAAl4HfmL00CfWr0hcWA"], ["updated_at", "2018-12-07 02:29:22.084066"], ["id", 12173]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:29:22.085597"], ["reset_sent_at", "2018-12-07 02:29:22.085262"], ["id", 12173]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.4ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:29:22 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09db0216b6f_56fe2afed41a25f459047@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db0216596_56fe2afed41a25f45893e";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db0216596_56fe2afed41a25f45893e Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/TksAAl4HfmL00CfWr0hcWA/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09db0216596_56fe2afed41a25f45893e Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/TksAAl4HfmL00CfWr0hcWA/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db0216596_56fe2afed41a25f45893e–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$H0vVFyiyGo411cazziem5O75iIixIgmI8t4hqhQH9KItZoq/reQ3S"], ["created_at", "2018-12-07 02:29:22.098834"], ["updated_at", "2018-12-07 02:29:22.098834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$cHhgHdj28PtRJxFIw9/NduzQcUvQBKfuNbhRVIz3kS8kTLgwoUTVm"], ["created_at", "2018-12-07 02:29:22.105981"], ["updated_at", "2018-12-07 02:29:22.105981"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12175"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$NQc0sgmfRUfqcVf1qGDyc.g9Q5VTfekbMqYyboYcnD1K.r7finFDG"], ["updated_at", "2018-12-07 02:29:22.109939"], ["id", 12175]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vGRw8LjVM8ON9oCssxwesOv9xc3ZmVlkoMO9YInkGmJ2qi51PmrsC"], ["created_at", "2018-12-07 02:29:22.114901"], ["updated_at", "2018-12-07 02:29:22.114901"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12176"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.8ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$vRi/7qnbYw8iRBY9ZxZjxehrMBZGn8GIXYkOvOrzzuHo5fxZvTHGy"], ["created_at", "2018-12-07 02:29:22.123163"], ["updated_at", "2018-12-07 02:29:22.123163"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12177"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$A5Zev6Td.IWILBUW4Kx14.B2smTUU3D3lagHF4ew15HeL3b7I41Vy"], ["created_at", "2018-12-07 02:29:22.136658"], ["updated_at", "2018-12-07 02:29:22.136658"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12178"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$jTdg8fRan/TEDS7muBpEEOJ6G2LmkyITh6QiHIPJqUqEogZea7CMu"], ["created_at", "2018-12-07 02:29:22.144823"], ["updated_at", "2018-12-07 02:29:22.144823"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12179"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6UDwVYrtWplTlYGx9li4uO0H5J8AumXEfuUFXjBjFe.XIHHrlNtv."], ["created_at", "2018-12-07 02:29:22.152886"], ["updated_at", "2018-12-07 02:29:22.152886"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TUQc3SlsGmjrAm2dJ7pQWuRt/8SaZq0a8pZy2y0mmuFWmoZ4i0rjO"], ["created_at", "2018-12-07 02:29:22.159744"], ["updated_at", "2018-12-07 02:29:22.159744"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$anDFX2XaSRZq2WG3zB4phe.tNrJuLldNbOnTr6vHegVb4El2S1KAS"], ["created_at", "2018-12-07 02:29:22.166361"], ["updated_at", "2018-12-07 02:29:22.166361"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.167904"], ["updated_at", "2018-12-07 02:29:22.167904"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9086], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12182], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12182], ["room_id", 9086], ["created_at", "2018-12-07 02:29:22.170714"], ["updated_at", "2018-12-07 02:29:22.170714"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.5ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9plWLsD0wriza75XfH8cVu7GrCESO1psmoyUpxWSBFtMQ62//k8I6"], ["created_at", "2018-12-07 02:29:22.176803"], ["updated_at", "2018-12-07 02:29:22.176803"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.178299"], ["updated_at", "2018-12-07 02:29:22.178299"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9087], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12183], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12183], ["room_id", 9087], ["created_at", "2018-12-07 02:29:22.181260"], ["updated_at", "2018-12-07 02:29:22.181260"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 2.1ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2cEF2XQFqp6R9.jfDuKRteV/oGsc7pDvEk2iesb7hrZxAPW84Yhu."], ["created_at", "2018-12-07 02:29:22.203670"], ["updated_at", "2018-12-07 02:29:22.203670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.205093"], ["updated_at", "2018-12-07 02:29:22.205093"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.211738"], ["last_sign_in_at", "2018-12-07 02:29:22.211738"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.212151"], ["id", 12184]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9088"}
 (0.5ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9088 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9088], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12184], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12184], ["room_id", 9088], ["created_at", "2018-12-07 02:29:22.220630"], ["updated_at", "2018-12-07 02:29:22.220630"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 9088], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rwel7aJV.HOEzW9QwJwYsOQ759yb03k80.EdIPzlzigbLEBaUBnXG"], ["created_at", "2018-12-07 02:29:22.226809"], ["updated_at", "2018-12-07 02:29:22.226809"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.228320"], ["updated_at", "2018-12-07 02:29:22.228320"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.230113"], ["last_sign_in_at", "2018-12-07 02:29:22.230113"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.230485"], ["id", 12185]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9089"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9089 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9089], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12185], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12185], ["room_id", 9089], ["created_at", "2018-12-07 02:29:22.234918"], ["updated_at", "2018-12-07 02:29:22.234918"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VxvTO7Rmm.Cmter0VzKDPucseIE09qmZyerLZH6FM3UZbl94Ive5y"], ["created_at", "2018-12-07 02:29:22.240258"], ["updated_at", "2018-12-07 02:29:22.240258"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.241718"], ["updated_at", "2018-12-07 02:29:22.241718"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.243873"], ["last_sign_in_at", "2018-12-07 02:29:22.243873"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.244253"], ["id", 12186]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9090", "user_id"=>"12186"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9090 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9090], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12186], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12186], ["room_id", 9090], ["created_at", "2018-12-07 02:29:22.249664"], ["updated_at", "2018-12-07 02:29:22.249664"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9090", "user_id"=>"12186"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12186], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9090 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9090], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12186], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12186], ["room_id", 9090], ["created_at", "2018-12-07 02:29:22.256382"], ["updated_at", "2018-12-07 02:29:22.256382"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$a4FZ3ArTJ8.tyjBxF0KeIuBEKuAkYhRLaEvUBZBgcbDVAsStokgba"], ["created_at", "2018-12-07 02:29:22.261550"], ["updated_at", "2018-12-07 02:29:22.261550"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.263065"], ["updated_at", "2018-12-07 02:29:22.263065"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.265272"], ["last_sign_in_at", "2018-12-07 02:29:22.265272"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.265638"], ["id", 12187]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9091", "user_id"=>"12187"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9091 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9091], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12187], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12187], ["room_id", 9091], ["created_at", "2018-12-07 02:29:22.269874"], ["updated_at", "2018-12-07 02:29:22.269874"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9091", "user_id"=>"12187"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12187], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9091 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9091], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12187], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12187], ["room_id", 9091], ["created_at", "2018-12-07 02:29:22.275481"], ["updated_at", "2018-12-07 02:29:22.275481"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 9091], ["user_id", 12187], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bx.BDQ0dkuD7KqK3nUvn7uLkqHnexcdbGME9ZdNAieVuM/8TzSSOq"], ["created_at", "2018-12-07 02:29:22.281944"], ["updated_at", "2018-12-07 02:29:22.281944"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.283612"], ["updated_at", "2018-12-07 02:29:22.283612"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.285763"], ["last_sign_in_at", "2018-12-07 02:29:22.285763"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.286164"], ["id", 12188]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9092", "user_id"=>"12188"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9092 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9092], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12188], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12188], ["room_id", 9092], ["created_at", "2018-12-07 02:29:22.290665"], ["updated_at", "2018-12-07 02:29:22.290665"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9092", "user_id"=>"12188"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12188], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9092 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9092], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12188], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12188], ["room_id", 9092], ["created_at", "2018-12-07 02:29:22.296671"], ["updated_at", "2018-12-07 02:29:22.296671"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.3ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 9092], ["user_id", 12188], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZtOp8P9Tfsf/DdiUkCf2musN03RYkcgRHtQxuRuBxiByOV02O97K6"], ["created_at", "2018-12-07 02:29:22.302142"], ["updated_at", "2018-12-07 02:29:22.302142"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.303685"], ["updated_at", "2018-12-07 02:29:22.303685"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.305483"], ["last_sign_in_at", "2018-12-07 02:29:22.305483"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.305847"], ["id", 12189]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9093"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 9093], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YdUIGEjtUolWgo8FFhJu7.HMe/m.3Lg/srI9n2mfii/hm8c5ccDF."], ["created_at", "2018-12-07 02:29:22.313800"], ["updated_at", "2018-12-07 02:29:22.313800"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.315559"], ["updated_at", "2018-12-07 02:29:22.315559"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.317489"], ["last_sign_in_at", "2018-12-07 02:29:22.317489"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.317890"], ["id", 12190]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9094"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$sVb.SUCew1n55BjQRzolmei88klg7NihxJpDWIbSPow2hBb03..4y"], ["created_at", "2018-12-07 02:29:22.329199"], ["updated_at", "2018-12-07 02:29:22.329199"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.330765"], ["updated_at", "2018-12-07 02:29:22.330765"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9095], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12191], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12191], ["room_id", 9095], ["created_at", "2018-12-07 02:29:22.333601"], ["updated_at", "2018-12-07 02:29:22.333601"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/9095” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.335152"], ["last_sign_in_at", "2018-12-07 02:29:22.335152"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.335539"], ["id", 12191]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9095"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9095], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9095')
Rendered appointments/show.html.erb within layouts/application (6.8ms)
Rendered layouts/_header-user.html.erb (1.3ms)

Completed 200 OK in 211ms (Views: 209.2ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Xge96p9/c0F7rkGP1fVqzeU/x7gitW6UKGJ8JmqOQGkbEgyZAumIG"], ["created_at", "2018-12-07 02:29:22.553033"], ["updated_at", "2018-12-07 02:29:22.553033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.554852"], ["updated_at", "2018-12-07 02:29:22.554852"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9096], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12192], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12192], ["room_id", 9096], ["created_at", "2018-12-07 02:29:22.557934"], ["updated_at", "2018-12-07 02:29:22.557934"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4792/edit” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.559596"], ["last_sign_in_at", "2018-12-07 02:29:22.559596"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.559974"], ["id", 12192]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4792"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4792], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MC/zMQIyuNbBhDyejE75ie1Cn350uNQ7t9nkqi5JLk.IlBWhwo/Xi"], ["created_at", "2018-12-07 02:29:22.571842"], ["updated_at", "2018-12-07 02:29:22.571842"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.573655"], ["last_sign_in_at", "2018-12-07 02:29:22.573655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.574057"], ["id", 12193]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VKxj2ErgNp4XeKDneGu/dO57yAz7rhnzATb5bnaQAV3MbT35Gwhn."], ["created_at", "2018-12-07 02:29:22.585002"], ["updated_at", "2018-12-07 02:29:22.585002"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.586670"], ["updated_at", "2018-12-07 02:29:22.586670"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9097], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12194], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12194], ["room_id", 9097], ["created_at", "2018-12-07 02:29:22.589610"], ["updated_at", "2018-12-07 02:29:22.589610"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9097], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12194], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12194], ["room_id", 9097], ["created_at", "2018-12-07 02:29:22.592438"], ["updated_at", "2018-12-07 02:29:22.592438"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.593951"], ["last_sign_in_at", "2018-12-07 02:29:22.593951"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.594313"], ["id", 12194]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12194]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Po8IyK3mj/YbWoCmiy6k3OnHFJw.dT.OYJAd1Lt1we2/utHOrm8PO"], ["created_at", "2018-12-07 02:29:22.608895"], ["updated_at", "2018-12-07 02:29:22.608895"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.610930"], ["updated_at", "2018-12-07 02:29:22.610930"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9098], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12195], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12195], ["room_id", 9098], ["created_at", "2018-12-07 02:29:22.614178"], ["updated_at", "2018-12-07 02:29:22.614178"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9098], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12195], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12195], ["room_id", 9098], ["created_at", "2018-12-07 02:29:22.616956"], ["updated_at", "2018-12-07 02:29:22.616956"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.618471"], ["last_sign_in_at", "2018-12-07 02:29:22.618471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.618916"], ["id", 12195]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12195]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$VqGUg9um0VOxNZSNDlie7eth7Bdr7QmOQZFqft5/CVEqsgYhjaMWS"], ["created_at", "2018-12-07 02:29:22.628302"], ["updated_at", "2018-12-07 02:29:22.628302"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.629938"], ["updated_at", "2018-12-07 02:29:22.629938"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9099], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12196], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12196], ["room_id", 9099], ["created_at", "2018-12-07 02:29:22.633019"], ["updated_at", "2018-12-07 02:29:22.633019"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4797” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.634513"], ["last_sign_in_at", "2018-12-07 02:29:22.634513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.634866"], ["id", 12196]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4797"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4797], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4797]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$90cGjfhdrc8QJJYr4Q9pAeeuhZjFypS4g1xB4zAJqwp5e453B3h0W"], ["created_at", "2018-12-07 02:29:22.644131"], ["updated_at", "2018-12-07 02:29:22.644131"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.645963"], ["updated_at", "2018-12-07 02:29:22.645963"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZX59QL6SEUBUc0Jmr5/mHOjqB7/ClWDuhszmi9cMaSB6PNahGRH1W"], ["created_at", "2018-12-07 02:29:22.649270"], ["updated_at", "2018-12-07 02:29:22.649270"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9100], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12198], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12198], ["room_id", 9100], ["created_at", "2018-12-07 02:29:22.652385"], ["updated_at", "2018-12-07 02:29:22.652385"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4798” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.654267"], ["last_sign_in_at", "2018-12-07 02:29:22.654267"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.654636"], ["id", 12197]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4798"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4798], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9100], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12198], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/suaeSGPzB4Mn1y9PiJHN.7uZPyQDeBJiNOAn0P/l0teNWA1DcKcS"], ["created_at", "2018-12-07 02:29:22.664220"], ["updated_at", "2018-12-07 02:29:22.664220"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.665840"], ["updated_at", "2018-12-07 02:29:22.665840"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$yMiPuPpGTzWHwaVuhyYXZ.H2ysGkY7cV93yggZcvymOHFF9YjbR.S"], ["created_at", "2018-12-07 02:29:22.668991"], ["updated_at", "2018-12-07 02:29:22.668991"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9101], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12200], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12200], ["room_id", 9101], ["created_at", "2018-12-07 02:29:22.672140"], ["updated_at", "2018-12-07 02:29:22.672140"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4799” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.674442"], ["last_sign_in_at", "2018-12-07 02:29:22.674442"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.674900"], ["id", 12199]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4799"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4799], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9101], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12200], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mHlYYFRZWTvHDiGBJBWAguL3gPauuSta4rKcCI5.7OCOW4F2FgCg."], ["created_at", "2018-12-07 02:29:22.683814"], ["updated_at", "2018-12-07 02:29:22.683814"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.685393"], ["updated_at", "2018-12-07 02:29:22.685393"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Gxz8B8HqE33lsFDIVcosDOkOAk4eA7xm1oYhB21zrNxBk/N5azCnu"], ["created_at", "2018-12-07 02:29:22.688610"], ["updated_at", "2018-12-07 02:29:22.688610"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9102], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12202], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12202], ["room_id", 9102], ["created_at", "2018-12-07 02:29:22.691533"], ["updated_at", "2018-12-07 02:29:22.691533"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4800” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.693394"], ["last_sign_in_at", "2018-12-07 02:29:22.693394"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.693767"], ["id", 12201]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4800"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4800], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9102], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12202], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:29:22.697692"], ["id", 4800]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:29:22 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db02ab41a_56fe2afed41a25f459786@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db02aae71_56fe2afed41a25f459694";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db02aae71_56fe2afed41a25f459694 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db02aae71_56fe2afed41a25f459694 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db02aae71_56fe2afed41a25f459694–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/XaS/vL3vRA7sLgH5GCVIOyWM8aOaIQAuN0yzwkWb8g0OGcp9nqKG"], ["created_at", "2018-12-07 02:29:22.708669"], ["updated_at", "2018-12-07 02:29:22.708669"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.710363"], ["updated_at", "2018-12-07 02:29:22.710363"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/kgRRdt5VnAb2fMvrg41Gu2dp5zm1zqT1OTkmgPrKj8SPfBVPW5xC"], ["created_at", "2018-12-07 02:29:22.713645"], ["updated_at", "2018-12-07 02:29:22.713645"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9103], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12204], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12204], ["room_id", 9103], ["created_at", "2018-12-07 02:29:22.716657"], ["updated_at", "2018-12-07 02:29:22.716657"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:29:22.718008"], ["id", 4801]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9103], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12204], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12204], ["room_id", 9103], ["created_at", "2018-12-07 02:29:22.720577"], ["updated_at", "2018-12-07 02:29:22.720577"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:29:22.721839"], ["id", 4802]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.723273"], ["last_sign_in_at", "2018-12-07 02:29:22.723273"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.723625"], ["id", 12203]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12204], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9103], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12204], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9103], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.0ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yLo1g8lgmmNUSclZn40uLO/Rz4p7V9nz4i3U/dxkQ2bTdm7pjPIC6"], ["created_at", "2018-12-07 02:29:22.736834"], ["updated_at", "2018-12-07 02:29:22.736834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.738548"], ["updated_at", "2018-12-07 02:29:22.738548"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$n.UohwSq1TyBlJUmdUMS5uV4XAZyB34jkSNYG4Phgnc/nNHHtQtSW"], ["created_at", "2018-12-07 02:29:22.741726"], ["updated_at", "2018-12-07 02:29:22.741726"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9104], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12206], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12206], ["room_id", 9104], ["created_at", "2018-12-07 02:29:22.744723"], ["updated_at", "2018-12-07 02:29:22.744723"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:29:22.746108"], ["id", 4803]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9104], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12206], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12206], ["room_id", 9104], ["created_at", "2018-12-07 02:29:22.748707"], ["updated_at", "2018-12-07 02:29:22.748707"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:29:22.749955"], ["id", 4804]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.751374"], ["last_sign_in_at", "2018-12-07 02:29:22.751374"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.751725"], ["id", 12205]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12206], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9104], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12206], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9104], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oxaPzr/7E.gqPnqEIb4g9ew02qUxVYjxp1KA54yxoH/mn2UfIKJAy"], ["created_at", "2018-12-07 02:29:22.763740"], ["updated_at", "2018-12-07 02:29:22.763740"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.765493"], ["last_sign_in_at", "2018-12-07 02:29:22.765493"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.765851"], ["id", 12207]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aTSPeaKIpCd/t1/FoCHTqu2/CQpK3IAq3MWajleT2K5H8fbXTxg5W"], ["created_at", "2018-12-07 02:29:22.779197"], ["updated_at", "2018-12-07 02:29:22.779197"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.780868"], ["last_sign_in_at", "2018-12-07 02:29:22.780868"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.781214"], ["id", 12208]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xZf0FgbVOpI3.eirk8XN6udYlJzxf36LGanUYfUU4X5PJ8LidPg9O"], ["created_at", "2018-12-07 02:29:22.786995"], ["updated_at", "2018-12-07 02:29:22.786995"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.788525"], ["last_sign_in_at", "2018-12-07 02:29:22.788525"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.788874"], ["id", 12209]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$eKv5kTqiJBZ23gkqP0N8Ru/2zfyysl4mZNV5e0nRrsUNl9xkO24j6"], ["created_at", "2018-12-07 02:29:22.798668"], ["updated_at", "2018-12-07 02:29:22.798668"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.800655"], ["last_sign_in_at", "2018-12-07 02:29:22.800655"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.801034"], ["id", 12210]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PfCl39UqJwJVxxF8yTQun.10Vt1P9iVp/6oD/Q6ILaeoluC7ucLJG"], ["created_at", "2018-12-07 02:29:22.814864"], ["updated_at", "2018-12-07 02:29:22.814864"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.816434"], ["updated_at", "2018-12-07 02:29:22.816434"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9105” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.817903"], ["last_sign_in_at", "2018-12-07 02:29:22.817903"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.818324"], ["id", 12211]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9105"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9105], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FYIxK5QwaAK1rk7TrihzPuHdz3hktTP7fXPQbKi0FjaEHwbV7gSxO"], ["created_at", "2018-12-07 02:29:22.827440"], ["updated_at", "2018-12-07 02:29:22.827440"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.829198"], ["updated_at", "2018-12-07 02:29:22.829198"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9106” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.831043"], ["last_sign_in_at", "2018-12-07 02:29:22.831043"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.831500"], ["id", 12212]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9106"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9106], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.838169"], ["updated_at", "2018-12-07 02:29:22.838169"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9107” for 127.0.0.1 at 2018-12-07 00:29:22 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9107"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$647oHLL1KnVv6Jpw.1sIcuAaOKFUGQQeB7B4BCE39VtK0x/7ppt.i"], ["created_at", "2018-12-07 02:29:22.844353"], ["updated_at", "2018-12-07 02:29:22.844353"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.845931"], ["updated_at", "2018-12-07 02:29:22.845931"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9108” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.847329"], ["last_sign_in_at", "2018-12-07 02:29:22.847329"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.847683"], ["id", 12213]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9108"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.855455"], ["updated_at", "2018-12-07 02:29:22.855455"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9109” for 127.0.0.1 at 2018-12-07 00:29:22 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9109"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xGM8nCD9RAOnJxUxaIWCyeBHsyjL.YMFV6HrbMynP6vOyRB1TZ12e"], ["created_at", "2018-12-07 02:29:22.862096"], ["updated_at", "2018-12-07 02:29:22.862096"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.863944"], ["updated_at", "2018-12-07 02:29:22.863944"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9110/edit” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.865445"], ["last_sign_in_at", "2018-12-07 02:29:22.865445"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.865846"], ["id", 12214]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9110"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9110], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$0ovwnb3huwrwwgvItJtHxuHOxr/FtIozg9fP1yy8iqDBDw81Bjnti"], ["created_at", "2018-12-07 02:29:22.876383"], ["updated_at", "2018-12-07 02:29:22.876383"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.877967"], ["updated_at", "2018-12-07 02:29:22.877967"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9111/edit” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.879436"], ["last_sign_in_at", "2018-12-07 02:29:22.879436"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.879826"], ["id", 12215]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9111"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9111], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.887400"], ["updated_at", "2018-12-07 02:29:22.887400"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9112” for 127.0.0.1 at 2018-12-07 00:29:22 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9112"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2LIS0CR6COozcI0/sqNj0O6gGQYyu/.GQME/xzauZf7EZbH8.R.hm"], ["created_at", "2018-12-07 02:29:22.894416"], ["updated_at", "2018-12-07 02:29:22.894416"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.896650"], ["last_sign_in_at", "2018-12-07 02:29:22.896650"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.897017"], ["id", 12216]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.899434"], ["updated_at", "2018-12-07 02:29:22.899434"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wjGYf1ny875lSXN.w.zlouTOQ9oATZsa195PvDkHIEg8kEnRf.4FG"], ["created_at", "2018-12-07 02:29:22.905109"], ["updated_at", "2018-12-07 02:29:22.905109"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.907112"], ["last_sign_in_at", "2018-12-07 02:29:22.907112"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.907454"], ["id", 12217]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.909731"], ["updated_at", "2018-12-07 02:29:22.909731"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$cXQct0C1TsseuVQ.k9zt.eZHKu1cLxS3TXuS495TR4ono8DkNsj5i"], ["created_at", "2018-12-07 02:29:22.914791"], ["updated_at", "2018-12-07 02:29:22.914791"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.916866"], ["last_sign_in_at", "2018-12-07 02:29:22.916866"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.917208"], ["id", 12218]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9i8WMMcq/goTPoCSdZ5GH.nR3e/EeQwBTAz2KAPq73YLKvglJQSnm"], ["created_at", "2018-12-07 02:29:22.925515"], ["updated_at", "2018-12-07 02:29:22.925515"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.927735"], ["last_sign_in_at", "2018-12-07 02:29:22.927735"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.928097"], ["id", 12219]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/mR62CCk9j1Yx4b1nbU8lOds5QQjsmbXavh6Z6TsxSq4T7vYBv4Ta"], ["created_at", "2018-12-07 02:29:22.935708"], ["updated_at", "2018-12-07 02:29:22.935708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.937676"], ["last_sign_in_at", "2018-12-07 02:29:22.937676"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.938026"], ["id", 12220]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$L3yEIY9DPjh2SyUB1.8wQu2Jd2.wLLUSSblA3Sf0/IMKBaKPmyY4W"], ["created_at", "2018-12-07 02:29:22.943903"], ["updated_at", "2018-12-07 02:29:22.943903"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.945435"], ["updated_at", "2018-12-07 02:29:22.945435"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9115” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.947174"], ["last_sign_in_at", "2018-12-07 02:29:22.947174"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.947549"], ["id", 12221]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9115"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9115], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:29:22.950389"], ["id", 9115]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9115 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2XqqYCQa5Duwcde2yZJaze.F8PrT9n3zcsrF6zJVm0Rc29eXWicd2"], ["created_at", "2018-12-07 02:29:22.956511"], ["updated_at", "2018-12-07 02:29:22.956511"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.958459"], ["updated_at", "2018-12-07 02:29:22.958459"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9116” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.960335"], ["last_sign_in_at", "2018-12-07 02:29:22.960335"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.960698"], ["id", 12222]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9116"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9116], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:29:22.963566"], ["id", 9116]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9116 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Itp6aWAL6fM0bHu9HMzS1OEd.r3Wjh9XIZcbDUFsYo4yODCSjJkBG"], ["created_at", "2018-12-07 02:29:22.968880"], ["updated_at", "2018-12-07 02:29:22.968880"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.970443"], ["updated_at", "2018-12-07 02:29:22.970443"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9117” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.972193"], ["last_sign_in_at", "2018-12-07 02:29:22.972193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.972570"], ["id", 12223]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9117"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9117], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$gTd59HKPWX37MHp3bOk8W.PFuts5yR1X.47KpgeiOz/pTP6DYaXYK"], ["created_at", "2018-12-07 02:29:22.983676"], ["updated_at", "2018-12-07 02:29:22.983676"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:22.985411"], ["updated_at", "2018-12-07 02:29:22.985411"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9118” for 127.0.0.1 at 2018-12-07 00:29:22 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:22.987462"], ["last_sign_in_at", "2018-12-07 02:29:22.987462"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:22.987890"], ["id", 12224]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9118"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9118], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$hwvQaZIwN6Z88tOWkyVLveFuXe91poIFIfwvNn/XvmEl2VrT7R5yu"], ["created_at", "2018-12-07 02:29:22.999567"], ["updated_at", "2018-12-07 02:29:22.999567"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.001672"], ["last_sign_in_at", "2018-12-07 02:29:23.001672"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.002029"], ["id", 12225]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mMzYnfySs/Hf6fnnXI1Hq.y.PmudXPh.UjviJh4LLYy5035YxkK3a"], ["created_at", "2018-12-07 02:29:23.007913"], ["updated_at", "2018-12-07 02:29:23.007913"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.009456"], ["updated_at", "2018-12-07 02:29:23.009456"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9119” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.010820"], ["last_sign_in_at", "2018-12-07 02:29:23.010820"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.011191"], ["id", 12226]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9119"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9119], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9119]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q04iXK25aPJIDMUNDg4uTeDihDOqelo.54OILXCA4JYaMeOJe2Pnq"], ["created_at", "2018-12-07 02:29:23.018788"], ["updated_at", "2018-12-07 02:29:23.018788"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.020990"], ["updated_at", "2018-12-07 02:29:23.020990"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9120” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.022625"], ["last_sign_in_at", "2018-12-07 02:29:23.022625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.023014"], ["id", 12227]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9120"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9120], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9120]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$UaRq9NRc39RpAx0vyBaU3eSXVG1QSvsUynvRyHNzXDzP891i5yyly"], ["created_at", "2018-12-07 02:29:23.030317"], ["updated_at", "2018-12-07 02:29:23.030317"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.031871"], ["updated_at", "2018-12-07 02:29:23.031871"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9121” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.033257"], ["last_sign_in_at", "2018-12-07 02:29:23.033257"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.033610"], ["id", 12228]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9121"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rGv9vYSU7BMhrrvE9.XFOOZE350a.cC4G3eJ0QCr0jjqWLp1Yd8ca"], ["created_at", "2018-12-07 02:29:23.039635"], ["updated_at", "2018-12-07 02:29:23.039635"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.041148"], ["updated_at", "2018-12-07 02:29:23.041148"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9122” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.042518"], ["last_sign_in_at", "2018-12-07 02:29:23.042518"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.042869"], ["id", 12229]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9122"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zdZp8N9CZH7f4ZuvAGKXO.1ZNVZXr2RQgd7ma2z8IZITEo8NP.Joa"], ["created_at", "2018-12-07 02:29:23.048615"], ["updated_at", "2018-12-07 02:29:23.048615"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.050472"], ["last_sign_in_at", "2018-12-07 02:29:23.050472"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.050851"], ["id", 12230]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6/ABauggFjIs1uTI4IhvmeC6cE0oXuTE8QEmUIr.4AcPtovro0RT6"], ["created_at", "2018-12-07 02:29:23.063181"], ["updated_at", "2018-12-07 02:29:23.063181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.064745"], ["updated_at", "2018-12-07 02:29:23.064745"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.066015"], ["updated_at", "2018-12-07 02:29:23.066015"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.067256"], ["updated_at", "2018-12-07 02:29:23.067256"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9123], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12231], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12231], ["room_id", 9123], ["created_at", "2018-12-07 02:29:23.070017"], ["updated_at", "2018-12-07 02:29:23.070017"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.071646"], ["last_sign_in_at", "2018-12-07 02:29:23.071646"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.072009"], ["id", 12231]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 10ms (Views: 3.3ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$WPxy0t14.rErzOz8IYMCCuvW2HCJ3UgA57sO.VdBm2u3EyV5T1vpa"], ["created_at", "2018-12-07 02:29:23.089228"], ["updated_at", "2018-12-07 02:29:23.089228"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.090834"], ["updated_at", "2018-12-07 02:29:23.090834"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.092087"], ["updated_at", "2018-12-07 02:29:23.092087"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:23.093243"], ["updated_at", "2018-12-07 02:29:23.093243"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9126], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12232], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12232], ["room_id", 9126], ["created_at", "2018-12-07 02:29:23.096025"], ["updated_at", "2018-12-07 02:29:23.096025"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:29:23 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:23.097587"], ["last_sign_in_at", "2018-12-07 02:29:23.097587"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:23.097947"], ["id", 12232]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$um/tdklUAYclnDrwvZXC.ulFpAXEBxlb2L/YKAn3w6oTvwcZrR3Hu"], ["created_at", "2018-12-07 02:29:44.853924"], ["updated_at", "2018-12-07 02:29:44.853924"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$oI31JHr.f43BfYO5n7AL1u0mTrIXEgh0ojQwICrlEiDGVrItg/HAG"], ["created_at", "2018-12-07 02:29:44.859707"], ["updated_at", "2018-12-07 02:29:44.859707"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:44.874116"], ["updated_at", "2018-12-07 02:29:44.874116"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9129], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12234], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12234], ["room_id", 9129], ["created_at", "2018-12-07 02:29:44.910193"], ["updated_at", "2018-12-07 02:29:44.910193"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4807"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4807], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9129], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12234], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.8ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.3ms)

UserMailer#status_notification: processed outbound mail in 133.8ms Sent mail to 123@123.com (6.0ms) Date: Fri, 07 Dec 2018 00:29:45 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db1911aac_57292afa73f625f0551da@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db1910b41_57292afa73f625f055051";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db1910b41_57292afa73f625f055051 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db1910b41_57292afa73f625f055051 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db1910b41_57292afa73f625f055051–

Completed 302 Found in 155ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$U8kXkc6THfZ1c5i5DiyWHOAkIEFXaBj9AgfppPSuXzwJVy6qLiwX."], ["created_at", "2018-12-07 02:29:45.079934"], ["updated_at", "2018-12-07 02:29:45.079934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$nBtchm0/5LZSYCpFKcUDsev/ejYV5rLJ.f9.umTzrR4Z72iuwUf6K"], ["created_at", "2018-12-07 02:29:45.083223"], ["updated_at", "2018-12-07 02:29:45.083223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.084669"], ["updated_at", "2018-12-07 02:29:45.084669"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9130], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12236], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12236], ["room_id", 9130], ["created_at", "2018-12-07 02:29:45.087744"], ["updated_at", "2018-12-07 02:29:45.087744"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4808"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4808], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9130], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12236], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:29:45.092310"], ["id", 4808]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:29:45 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db1917789_57292afa73f625f0553b9@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db1917220_57292afa73f625f05521f";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db1917220_57292afa73f625f05521f Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db1917220_57292afa73f625f05521f Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db1917220_57292afa73f625f05521f–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l/9X/.blysfraBLYvMLhG.AFmR03dHrkspVLYBjA/1YbyZOoqp5nW"], ["created_at", "2018-12-07 02:29:45.101546"], ["updated_at", "2018-12-07 02:29:45.101546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6LKqpKc69/Dt0p5zjZ8Ck.TzxquuSsd/iWxsXKcA9t6UthMVA4hRe"], ["created_at", "2018-12-07 02:29:45.105051"], ["updated_at", "2018-12-07 02:29:45.105051"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.106854"], ["updated_at", "2018-12-07 02:29:45.106854"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9131], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12238], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12238], ["room_id", 9131], ["created_at", "2018-12-07 02:29:45.110461"], ["updated_at", "2018-12-07 02:29:45.110461"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$AbA85n.8y/enG73NhJ5T1e4CufptLd5yxe2aBpw1t3Ma63JweI6uS"], ["created_at", "2018-12-07 02:29:45.117025"], ["updated_at", "2018-12-07 02:29:45.117025"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ej9zYQ1HnxTu4PhT7bp7VO8BbD/Fwtfgm8UP.NezQAT6tgoBifC9."], ["created_at", "2018-12-07 02:29:45.120330"], ["updated_at", "2018-12-07 02:29:45.120330"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.121852"], ["updated_at", "2018-12-07 02:29:45.121852"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9132], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12240], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12240], ["room_id", 9132], ["created_at", "2018-12-07 02:29:45.124740"], ["updated_at", "2018-12-07 02:29:45.124740"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4810], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$tdhVGmXNx7JG1d19Jo3xBOGsHTa6y7w7amg2sR9p5BEyBSUuwgLXe"], ["created_at", "2018-12-07 02:29:45.129973"], ["updated_at", "2018-12-07 02:29:45.129973"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12241"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "vZpfboJfOzQ1AZ_Al-MxsQ"], ["updated_at", "2018-12-07 02:29:45.133145"], ["id", 12241]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:29:45.134770"], ["reset_sent_at", "2018-12-07 02:29:45.134368"], ["id", 12241]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.1ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:29:45 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09db1922aad_57292afa73f625f05566a@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db19224cb_57292afa73f625f0555cf";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db19224cb_57292afa73f625f0555cf Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/vZpfboJfOzQ1AZ_Al-MxsQ/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09db19224cb_57292afa73f625f0555cf Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/vZpfboJfOzQ1AZ_Al-MxsQ/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db19224cb_57292afa73f625f0555cf–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$kG73cZqdqGh3HMfFDb5i6O366CBRjCo6TuPl4M7YKZNWlf3yuXBQW"], ["created_at", "2018-12-07 02:29:45.147708"], ["updated_at", "2018-12-07 02:29:45.147708"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$MxwSFMfKhmVlXy.fkjxQYOOBFsNCJO683kWgiUbP5/JetSpKzt0qe"], ["created_at", "2018-12-07 02:29:45.154957"], ["updated_at", "2018-12-07 02:29:45.154957"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12243"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$YxF8CKT8qQyDWe31pLoOuOmAcFLnq/AtIhpmDrPGiFwh7dXmL1qMe"], ["updated_at", "2018-12-07 02:29:45.158955"], ["id", 12243]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$7G6DrN3/BLBsX4yypB4HiOty5a9.qAs/eg3PM8qxapeyftELHTWeK"], ["created_at", "2018-12-07 02:29:45.163753"], ["updated_at", "2018-12-07 02:29:45.163753"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12244"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$G4LIV2EAfGi2svS/uc4CM.CGEBpJEbXpL9v5Zhjgy4WuwMOJFewlS"], ["created_at", "2018-12-07 02:29:45.171945"], ["updated_at", "2018-12-07 02:29:45.171945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12245"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$ahMH8gs76pE2iNGZCB7LGOEs1yCqdMXEMYdwu1ClPkKI3/vj5KnuO"], ["created_at", "2018-12-07 02:29:45.185181"], ["updated_at", "2018-12-07 02:29:45.185181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12246"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$gvy2Z7S0UzGnc3dTC1zD6up.G0XX91w2Ac35.FTOSxP46m3HIHCjm"], ["created_at", "2018-12-07 02:29:45.193623"], ["updated_at", "2018-12-07 02:29:45.193623"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12247"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DifxweWycdeJAkfcX7PQyORD1Lh92lKLX2Of7l0BBNMtJ5ZIC/IoC"], ["created_at", "2018-12-07 02:29:45.201505"], ["updated_at", "2018-12-07 02:29:45.201505"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$GvJ.6BViBDmXq8JNzD66BOn/ZpSoV9byMGe08P47qmRI1sgL6FQrO"], ["created_at", "2018-12-07 02:29:45.208504"], ["updated_at", "2018-12-07 02:29:45.208504"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9piGLpI.RSoH5EqsAG5cweQjZyKHbfInp/8XIm/yussAOdVBLOhl."], ["created_at", "2018-12-07 02:29:45.215214"], ["updated_at", "2018-12-07 02:29:45.215214"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.216707"], ["updated_at", "2018-12-07 02:29:45.216707"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9133], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12250], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12250], ["room_id", 9133], ["created_at", "2018-12-07 02:29:45.219601"], ["updated_at", "2018-12-07 02:29:45.219601"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$s5hbziJ3WjYH4AO0jO/cgOwJCMVtcEgXtjTw4LlVL6PHkrduMYWyO"], ["created_at", "2018-12-07 02:29:45.225838"], ["updated_at", "2018-12-07 02:29:45.225838"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.227319"], ["updated_at", "2018-12-07 02:29:45.227319"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9134], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12251], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12251], ["room_id", 9134], ["created_at", "2018-12-07 02:29:45.230384"], ["updated_at", "2018-12-07 02:29:45.230384"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4DAMNvobNPEp8hVzDdTlgeA4OWXwTG2zaDf0BkRo/0Jp6o3MaYzKO"], ["created_at", "2018-12-07 02:29:45.251801"], ["updated_at", "2018-12-07 02:29:45.251801"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.253296"], ["updated_at", "2018-12-07 02:29:45.253296"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.260213"], ["last_sign_in_at", "2018-12-07 02:29:45.260213"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.260655"], ["id", 12252]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9135"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4grZpI3Fey03nKqso90.7OhltR6erUJtg.lGbkn4GlICJTQJMm3w6"], ["created_at", "2018-12-07 02:29:45.277561"], ["updated_at", "2018-12-07 02:29:45.277561"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.279174"], ["updated_at", "2018-12-07 02:29:45.279174"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.281038"], ["last_sign_in_at", "2018-12-07 02:29:45.281038"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.281446"], ["id", 12253]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9136"}

Completed 500 Internal Server Error in 7ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EGaohBAkNe/JucaUnvd4weqjzZbc0wj9U2XRx1oWsjnwqQfhuC5rS"], ["created_at", "2018-12-07 02:29:45.294098"], ["updated_at", "2018-12-07 02:29:45.294098"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.295848"], ["updated_at", "2018-12-07 02:29:45.295848"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.298453"], ["last_sign_in_at", "2018-12-07 02:29:45.298453"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.298935"], ["id", 12254]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9137", "user_id"=>"12254"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$7ebtsvK421ZZ7vt2PF4KheoJVAI5Lzdi8PPwRQBZF/lWDeJR7N0lG"], ["created_at", "2018-12-07 02:29:45.311934"], ["updated_at", "2018-12-07 02:29:45.311934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.313459"], ["updated_at", "2018-12-07 02:29:45.313459"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.315483"], ["last_sign_in_at", "2018-12-07 02:29:45.315483"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.315838"], ["id", 12255]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9138", "user_id"=>"12255"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zTVPc7byREhomgpkN0rQsOxBvfJvt44APHOCAqvIpeagSAhTlxEZi"], ["created_at", "2018-12-07 02:29:45.328677"], ["updated_at", "2018-12-07 02:29:45.328677"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.330567"], ["updated_at", "2018-12-07 02:29:45.330567"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.332740"], ["last_sign_in_at", "2018-12-07 02:29:45.332740"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.333148"], ["id", 12256]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9139", "user_id"=>"12256"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$r7cHmwyn8G85Gqp/MbCix.DG2nQ9dSU4ldAARxbGy8.z5Sks6K0xm"], ["created_at", "2018-12-07 02:29:45.345931"], ["updated_at", "2018-12-07 02:29:45.345931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.347486"], ["updated_at", "2018-12-07 02:29:45.347486"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.349276"], ["last_sign_in_at", "2018-12-07 02:29:45.349276"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.349656"], ["id", 12257]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9140"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$z3P9lPvfDxwb7zh50sjHAefCN4RlbTJqrzmI5/ldCtsNXrh5cHzDC"], ["created_at", "2018-12-07 02:29:45.362824"], ["updated_at", "2018-12-07 02:29:45.362824"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.364469"], ["updated_at", "2018-12-07 02:29:45.364469"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.366321"], ["last_sign_in_at", "2018-12-07 02:29:45.366321"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.366709"], ["id", 12258]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9141"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$jyHXiMG9jwMvnYorZhXf3.ByO9zSoMEPSzD3PRmLdPFu.Nn2UApjq"], ["created_at", "2018-12-07 02:29:45.379546"], ["updated_at", "2018-12-07 02:29:45.379546"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.381090"], ["updated_at", "2018-12-07 02:29:45.381090"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9142], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12259], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12259], ["room_id", 9142], ["created_at", "2018-12-07 02:29:45.383895"], ["updated_at", "2018-12-07 02:29:45.383895"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/9142” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.385413"], ["last_sign_in_at", "2018-12-07 02:29:45.385413"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.385769"], ["id", 12259]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9142"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9142], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9142')
Rendered appointments/show.html.erb within layouts/application (6.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 184ms (Views: 181.9ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HEmDaBUrQWiAkDKjXEgPaebIKBB4JubZAb0av7RMO.L/P2Gn2MqZW"], ["created_at", "2018-12-07 02:29:45.575594"], ["updated_at", "2018-12-07 02:29:45.575594"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.577222"], ["updated_at", "2018-12-07 02:29:45.577222"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9143], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12260], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12260], ["room_id", 9143], ["created_at", "2018-12-07 02:29:45.580141"], ["updated_at", "2018-12-07 02:29:45.580141"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4814/edit” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.581702"], ["last_sign_in_at", "2018-12-07 02:29:45.581702"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.582060"], ["id", 12260]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4814"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4814], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ojb7CkraBEUwXJ3ywBh7fOuRaynxZB.SEUV9RZDRxLIUEfx7lXVrO"], ["created_at", "2018-12-07 02:29:45.593185"], ["updated_at", "2018-12-07 02:29:45.593185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.594848"], ["last_sign_in_at", "2018-12-07 02:29:45.594848"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.595172"], ["id", 12261]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$LLM8DEcga7qpbqq5FOqWg.Z8AZEpXlTuAsocTSIypKlfpgopiOagi"], ["created_at", "2018-12-07 02:29:45.605566"], ["updated_at", "2018-12-07 02:29:45.605566"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.607119"], ["updated_at", "2018-12-07 02:29:45.607119"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9144], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12262], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12262], ["room_id", 9144], ["created_at", "2018-12-07 02:29:45.609890"], ["updated_at", "2018-12-07 02:29:45.609890"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9144], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12262], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12262], ["room_id", 9144], ["created_at", "2018-12-07 02:29:45.612507"], ["updated_at", "2018-12-07 02:29:45.612507"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.613959"], ["last_sign_in_at", "2018-12-07 02:29:45.613959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.614293"], ["id", 12262]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12262]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$I8Nx8HurMKqZX//JWk5GTeRxIGJrzkRZ73Q.CbJiwDtue1y3qV2h6"], ["created_at", "2018-12-07 02:29:45.628606"], ["updated_at", "2018-12-07 02:29:45.628606"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.630092"], ["updated_at", "2018-12-07 02:29:45.630092"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9145], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12263], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12263], ["room_id", 9145], ["created_at", "2018-12-07 02:29:45.633092"], ["updated_at", "2018-12-07 02:29:45.633092"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9145], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12263], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12263], ["room_id", 9145], ["created_at", "2018-12-07 02:29:45.636360"], ["updated_at", "2018-12-07 02:29:45.636360"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.637894"], ["last_sign_in_at", "2018-12-07 02:29:45.637894"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.638233"], ["id", 12263]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.1ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12263]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$6wu6QLLY4R.ruv552fSEAOJ5g.tW.Vwt3pS7rMQWQ5etY0p67wlgW"], ["created_at", "2018-12-07 02:29:45.647337"], ["updated_at", "2018-12-07 02:29:45.647337"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.648824"], ["updated_at", "2018-12-07 02:29:45.648824"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9146], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12264], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12264], ["room_id", 9146], ["created_at", "2018-12-07 02:29:45.651543"], ["updated_at", "2018-12-07 02:29:45.651543"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4819” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.652991"], ["last_sign_in_at", "2018-12-07 02:29:45.652991"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.653348"], ["id", 12264]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4819"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4819], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4819]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Rxzi9dcaoqXvV3Z0OGfr9.sPkCgHNoNoRK8aiXtBMILedxxTOU4n6"], ["created_at", "2018-12-07 02:29:45.661468"], ["updated_at", "2018-12-07 02:29:45.661468"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.663037"], ["updated_at", "2018-12-07 02:29:45.663037"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZaAXBNuLKlybp9cvubgWYOKnZTC.UCY9OeiE8zO3tFEuIWu3vF7QC"], ["created_at", "2018-12-07 02:29:45.666570"], ["updated_at", "2018-12-07 02:29:45.666570"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9147], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12266], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12266], ["room_id", 9147], ["created_at", "2018-12-07 02:29:45.669658"], ["updated_at", "2018-12-07 02:29:45.669658"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4820” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.671536"], ["last_sign_in_at", "2018-12-07 02:29:45.671536"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.671871"], ["id", 12265]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4820"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4820], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9147], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12266], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qlbEF8EIug1N/J2PqXrM0./2yKPUKj8o.3eT2araDJvIk2/IOcvuy"], ["created_at", "2018-12-07 02:29:45.681015"], ["updated_at", "2018-12-07 02:29:45.681015"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.682507"], ["updated_at", "2018-12-07 02:29:45.682507"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZNk5nNym2HKQNgm8lrRzS.rO4HBE0UjtwVjbPsLCz.5SAVTGQ0jxa"], ["created_at", "2018-12-07 02:29:45.685470"], ["updated_at", "2018-12-07 02:29:45.685470"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9148], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12268], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12268], ["room_id", 9148], ["created_at", "2018-12-07 02:29:45.688260"], ["updated_at", "2018-12-07 02:29:45.688260"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4821” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.690079"], ["last_sign_in_at", "2018-12-07 02:29:45.690079"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.690422"], ["id", 12267]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4821"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4821], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9148], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12268], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.TBHAofglHpw533PA7vbNu/mLeAP3eOGLiEZ7i62OP7/RU6wfz7v6"], ["created_at", "2018-12-07 02:29:45.699590"], ["updated_at", "2018-12-07 02:29:45.699590"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.701198"], ["updated_at", "2018-12-07 02:29:45.701198"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MSxjsr7OWAfLxlEiLPU5euMTZfnEeKgUNgsD6QJZjLv175CKSoMjC"], ["created_at", "2018-12-07 02:29:45.704210"], ["updated_at", "2018-12-07 02:29:45.704210"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9149], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12270], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12270], ["room_id", 9149], ["created_at", "2018-12-07 02:29:45.707076"], ["updated_at", "2018-12-07 02:29:45.707076"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4822” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.708937"], ["last_sign_in_at", "2018-12-07 02:29:45.708937"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.709281"], ["id", 12269]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4822"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4822], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9149], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12270], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:29:45.713267"], ["id", 4822]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:29:45 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db19af143_57292afa73f625f05637c@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db19aeb67_57292afa73f625f0562d7";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db19aeb67_57292afa73f625f0562d7 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db19aeb67_57292afa73f625f0562d7 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db19aeb67_57292afa73f625f0562d7–

Completed 302 Found in 8ms (ActiveRecord: 0.6ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qvCdMeYjKT3bA5tR4S5vY.RYo6RjJY5NVDhlxsFVvb48hNwgG3jje"], ["created_at", "2018-12-07 02:29:45.723375"], ["updated_at", "2018-12-07 02:29:45.723375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.724901"], ["updated_at", "2018-12-07 02:29:45.724901"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NOpvU8z2e2DRGz2yLPLhDO8irAlC2JVewx3Hj3CrpQtChizgLnS8."], ["created_at", "2018-12-07 02:29:45.728512"], ["updated_at", "2018-12-07 02:29:45.728512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9150], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12272], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12272], ["room_id", 9150], ["created_at", "2018-12-07 02:29:45.731869"], ["updated_at", "2018-12-07 02:29:45.731869"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:29:45.733270"], ["id", 4823]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9150], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12272], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12272], ["room_id", 9150], ["created_at", "2018-12-07 02:29:45.735994"], ["updated_at", "2018-12-07 02:29:45.735994"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:29:45.737312"], ["id", 4824]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.738766"], ["last_sign_in_at", "2018-12-07 02:29:45.738766"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.739156"], ["id", 12271]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12272], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9150], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12272], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9150], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.2ms)

Completed 200 OK in 7ms (Views: 5.5ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$RFCNAcdF6U/d7z6gsyLQe.KVmIvt9GDMIk.gcW6r2SnuD3.mLJi4G"], ["created_at", "2018-12-07 02:29:45.752299"], ["updated_at", "2018-12-07 02:29:45.752299"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.753917"], ["updated_at", "2018-12-07 02:29:45.753917"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$gAZUtTy9dwXKQbJ6k.YjJeK4Aa4Uedi.GcGVWkx6ngtJG.2KrrRse"], ["created_at", "2018-12-07 02:29:45.757040"], ["updated_at", "2018-12-07 02:29:45.757040"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9151], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12274], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12274], ["room_id", 9151], ["created_at", "2018-12-07 02:29:45.760545"], ["updated_at", "2018-12-07 02:29:45.760545"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:29:45.762149"], ["id", 4825]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9151], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12274], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12274], ["room_id", 9151], ["created_at", "2018-12-07 02:29:45.765090"], ["updated_at", "2018-12-07 02:29:45.765090"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:29:45.766423"], ["id", 4826]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.767884"], ["last_sign_in_at", "2018-12-07 02:29:45.767884"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.768249"], ["id", 12273]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12274], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9151], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12274], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9151], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 4.3ms | ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wG8b/uvL5BXNU5u6Rjk/8ev65YrBNzat.7wkI71Qhm8eAkImsi5Qa"], ["created_at", "2018-12-07 02:29:45.780937"], ["updated_at", "2018-12-07 02:29:45.780937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.782598"], ["last_sign_in_at", "2018-12-07 02:29:45.782598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.783020"], ["id", 12275]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.8ms)

Completed 200 OK in 6ms (Views: 5.5ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$a.bukcRjoUqg.g34KjPAy.FLa0M1vKfc5BtgIB4UZPs8.NgTxRdES"], ["created_at", "2018-12-07 02:29:45.796460"], ["updated_at", "2018-12-07 02:29:45.796460"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.798128"], ["last_sign_in_at", "2018-12-07 02:29:45.798128"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.798484"], ["id", 12276]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aeJ9PTAa99upqjRmpvsYJ.NJBihPHWQCDH0pslDE2dcQDbZuFnUSy"], ["created_at", "2018-12-07 02:29:45.804373"], ["updated_at", "2018-12-07 02:29:45.804373"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.805916"], ["last_sign_in_at", "2018-12-07 02:29:45.805916"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.806255"], ["id", 12277]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Mts6NrofceiRcCq4X2hDnuKfP57fiV59IEB3jJVtrqs1qQk1nKH5K"], ["created_at", "2018-12-07 02:29:45.815609"], ["updated_at", "2018-12-07 02:29:45.815609"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.817186"], ["last_sign_in_at", "2018-12-07 02:29:45.817186"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.817526"], ["id", 12278]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Q9axoSeC4/gofF88uelLLOWM0MwqkIHObmRJ1XBUoW.31RFNAxEai"], ["created_at", "2018-12-07 02:29:45.832148"], ["updated_at", "2018-12-07 02:29:45.832148"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.833748"], ["updated_at", "2018-12-07 02:29:45.833748"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9152” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.835234"], ["last_sign_in_at", "2018-12-07 02:29:45.835234"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.835653"], ["id", 12279]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9152"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9152], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$29Q445CY2lxpMXvhT0.xAuPc0Y3gNXHUd89M5qFc.Fa4ok48sqNVi"], ["created_at", "2018-12-07 02:29:45.844665"], ["updated_at", "2018-12-07 02:29:45.844665"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.846227"], ["updated_at", "2018-12-07 02:29:45.846227"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9153” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.847701"], ["last_sign_in_at", "2018-12-07 02:29:45.847701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.848095"], ["id", 12280]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9153"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9153], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.854894"], ["updated_at", "2018-12-07 02:29:45.854894"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9154” for 127.0.0.1 at 2018-12-07 00:29:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9154"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$P038V8Ct4ErLxxTwzCYkd.vrPfXoh9dtNbEM/HKWtIUjuG75OtNhe"], ["created_at", "2018-12-07 02:29:45.861707"], ["updated_at", "2018-12-07 02:29:45.861707"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.863305"], ["updated_at", "2018-12-07 02:29:45.863305"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9155” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.864677"], ["last_sign_in_at", "2018-12-07 02:29:45.864677"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.865076"], ["id", 12281]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9155"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.872973"], ["updated_at", "2018-12-07 02:29:45.872973"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9156” for 127.0.0.1 at 2018-12-07 00:29:45 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9156"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$bocUWDasAqIFjsT5QXmnU.WTILwAWZcvvY/sp4rJUKCpCIj4MxIpi"], ["created_at", "2018-12-07 02:29:45.879111"], ["updated_at", "2018-12-07 02:29:45.879111"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.880655"], ["updated_at", "2018-12-07 02:29:45.880655"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9157/edit” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.882015"], ["last_sign_in_at", "2018-12-07 02:29:45.882015"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.882375"], ["id", 12282]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9157"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9157], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Ocix9n43prtFCWoqYuUC/eRYPXexF6pvbARysgBhsDq.L2QdaK1Be"], ["created_at", "2018-12-07 02:29:45.893932"], ["updated_at", "2018-12-07 02:29:45.893932"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.895578"], ["updated_at", "2018-12-07 02:29:45.895578"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9158/edit” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.897095"], ["last_sign_in_at", "2018-12-07 02:29:45.897095"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.897489"], ["id", 12283]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9158"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9158], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.905371"], ["updated_at", "2018-12-07 02:29:45.905371"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9159” for 127.0.0.1 at 2018-12-07 00:29:45 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9159"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$poruTlSdCwjzL45aiafDH.Dc1JoLfXmlpriPK81eMHOU6kxYQ5yie"], ["created_at", "2018-12-07 02:29:45.911681"], ["updated_at", "2018-12-07 02:29:45.911681"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.913807"], ["last_sign_in_at", "2018-12-07 02:29:45.913807"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.914149"], ["id", 12284]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.917278"], ["updated_at", "2018-12-07 02:29:45.917278"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 3ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$75Sr4B1F/kvPgDHfX5WTFuWIbGIhBMXY12fQRrBDYz8p2t8xcbTky"], ["created_at", "2018-12-07 02:29:45.923936"], ["updated_at", "2018-12-07 02:29:45.923936"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.925999"], ["last_sign_in_at", "2018-12-07 02:29:45.925999"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.926354"], ["id", 12285]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.928710"], ["updated_at", "2018-12-07 02:29:45.928710"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$5QH6FRj0.TdfJF6IFTuWFO67ScCSJyvsfWC89om13xk0CZG8T/Gaa"], ["created_at", "2018-12-07 02:29:45.933827"], ["updated_at", "2018-12-07 02:29:45.933827"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.935899"], ["last_sign_in_at", "2018-12-07 02:29:45.935899"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.936249"], ["id", 12286]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$.1VqgvJ/GMKb32pR5t6IiuQbvwTioEW2sM.vDKqYnZ0YGctfHYhSO"], ["created_at", "2018-12-07 02:29:45.943909"], ["updated_at", "2018-12-07 02:29:45.943909"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.946018"], ["last_sign_in_at", "2018-12-07 02:29:45.946018"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.946491"], ["id", 12287]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DJpqicO1Dxd70FOZ2G5.ROej/drs.d9q8co6UvQLhBx4oKE1f.dWe"], ["created_at", "2018-12-07 02:29:45.954884"], ["updated_at", "2018-12-07 02:29:45.954884"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.956977"], ["last_sign_in_at", "2018-12-07 02:29:45.956977"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.957344"], ["id", 12288]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l7DMg47kL/sUjmP/lfaH9u7hVBRH9TN4r3RplNF0ra2TX4LIdFrHW"], ["created_at", "2018-12-07 02:29:45.963687"], ["updated_at", "2018-12-07 02:29:45.963687"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.965405"], ["updated_at", "2018-12-07 02:29:45.965405"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9162” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.967151"], ["last_sign_in_at", "2018-12-07 02:29:45.967151"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.967515"], ["id", 12289]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9162"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9162], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:29:45.970501"], ["id", 9162]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9162 Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SB01eBVGyEYwBEFekGURq.e89.f60nU/MxAe4Psw.O88lnNCLklv6"], ["created_at", "2018-12-07 02:29:45.976176"], ["updated_at", "2018-12-07 02:29:45.976176"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.978069"], ["updated_at", "2018-12-07 02:29:45.978069"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9163” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.980478"], ["last_sign_in_at", "2018-12-07 02:29:45.980478"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.980958"], ["id", 12290]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9163"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9163], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:29:45.984097"], ["id", 9163]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9163 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mceDOy7lWq9RRpP1RvtpyeIb.r48q2gI7iryxmeMh5pgEziC/GoNC"], ["created_at", "2018-12-07 02:29:45.989536"], ["updated_at", "2018-12-07 02:29:45.989536"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:45.991149"], ["updated_at", "2018-12-07 02:29:45.991149"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9164” for 127.0.0.1 at 2018-12-07 00:29:45 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:45.992976"], ["last_sign_in_at", "2018-12-07 02:29:45.992976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:45.993398"], ["id", 12291]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9164"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9164], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$PNEr0AN0oxDCPERcVkG/fe9v0a30iydY374I8/sy3FqfTZcT2W70a"], ["created_at", "2018-12-07 02:29:46.004904"], ["updated_at", "2018-12-07 02:29:46.004904"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.006600"], ["updated_at", "2018-12-07 02:29:46.006600"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9165” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.008424"], ["last_sign_in_at", "2018-12-07 02:29:46.008424"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.008824"], ["id", 12292]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9165"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9165], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VaGKe6Gm6XqtxVzt6dW8rOWD6LIK1tpjMSSZTOFHwqA/RqQeZRUBy"], ["created_at", "2018-12-07 02:29:46.020945"], ["updated_at", "2018-12-07 02:29:46.020945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.023100"], ["last_sign_in_at", "2018-12-07 02:29:46.023100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.023456"], ["id", 12293]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$LlCDes4v8YhPuVC8mN4OIOyD2yXzxSiWkaIzUG4NLF4DDLcsBIhV6"], ["created_at", "2018-12-07 02:29:46.029348"], ["updated_at", "2018-12-07 02:29:46.029348"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.030898"], ["updated_at", "2018-12-07 02:29:46.030898"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9166” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.032255"], ["last_sign_in_at", "2018-12-07 02:29:46.032255"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.032608"], ["id", 12294]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9166"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9166], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9166]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$BPuQ.jATMmhbV1HTlnIwCeNO58xwJSl1mKN4MKg7jbgt9fj.A6tVu"], ["created_at", "2018-12-07 02:29:46.040105"], ["updated_at", "2018-12-07 02:29:46.040105"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.042069"], ["updated_at", "2018-12-07 02:29:46.042069"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9167” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.044100"], ["last_sign_in_at", "2018-12-07 02:29:46.044100"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.044524"], ["id", 12295]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9167"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9167], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9167]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9f4QdLrB06bjit51UCi0i.Pe/pLm5vXCdZkEqewL12OgAKOImPAiq"], ["created_at", "2018-12-07 02:29:46.052263"], ["updated_at", "2018-12-07 02:29:46.052263"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.053978"], ["updated_at", "2018-12-07 02:29:46.053978"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9168” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.055513"], ["last_sign_in_at", "2018-12-07 02:29:46.055513"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.055956"], ["id", 12296]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9168"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MgRQURJJFDwCUj.IYdKtYO/4KjoFsZBU80Xztchpxjd/uTugya2Jy"], ["created_at", "2018-12-07 02:29:46.062381"], ["updated_at", "2018-12-07 02:29:46.062381"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.064011"], ["updated_at", "2018-12-07 02:29:46.064011"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9169” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.065461"], ["last_sign_in_at", "2018-12-07 02:29:46.065461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.065907"], ["id", 12297]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9169"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$8jthjcltkwgW07k5oAfLZO5aqxb4wHqxcmBUtxd3d.wHb92lBwl9a"], ["created_at", "2018-12-07 02:29:46.089885"], ["updated_at", "2018-12-07 02:29:46.089885"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.092106"], ["last_sign_in_at", "2018-12-07 02:29:46.092106"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.092560"], ["id", 12298]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l1mycf.Z/i4Q3HUUQ2vceuRlrQg5Jp7Uw9z.cI1MHvNF6GENaCnrm"], ["created_at", "2018-12-07 02:29:46.107064"], ["updated_at", "2018-12-07 02:29:46.107064"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.108962"], ["updated_at", "2018-12-07 02:29:46.108962"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.110471"], ["updated_at", "2018-12-07 02:29:46.110471"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.111765"], ["updated_at", "2018-12-07 02:29:46.111765"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9170], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12299], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12299], ["room_id", 9170], ["created_at", "2018-12-07 02:29:46.114870"], ["updated_at", "2018-12-07 02:29:46.114870"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.116633"], ["last_sign_in_at", "2018-12-07 02:29:46.116633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.117049"], ["id", 12299]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.4ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 10ms (Views: 3.4ms | ActiveRecord: 0.6ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oqh4ZBx9QaWAcsN8SHy7Gu2ht4mtipCK1Sn/XBxL2Onf75CC3tSFG"], ["created_at", "2018-12-07 02:29:46.135497"], ["updated_at", "2018-12-07 02:29:46.135497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.137849"], ["updated_at", "2018-12-07 02:29:46.137849"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.139633"], ["updated_at", "2018-12-07 02:29:46.139633"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:29:46.140973"], ["updated_at", "2018-12-07 02:29:46.140973"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9173], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12300], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12300], ["room_id", 9173], ["created_at", "2018-12-07 02:29:46.144051"], ["updated_at", "2018-12-07 02:29:46.144051"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:29:46 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:29:46.145723"], ["last_sign_in_at", "2018-12-07 02:29:46.145723"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:29:46.146137"], ["id", 12300]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.4ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/qo0u4WcaUw/VD4PNL79lOei1xzNx/6vXnFCXXwibtQrfdFu6FcLC"], ["created_at", "2018-12-07 02:30:11.698068"], ["updated_at", "2018-12-07 02:30:11.698068"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$IN.O53Dd8o7sAzD0giMtHOFjKi5.TgT9k/ddbsCkys3/pf8Tz.wca"], ["created_at", "2018-12-07 02:30:11.702462"], ["updated_at", "2018-12-07 02:30:11.702462"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:11.709831"], ["updated_at", "2018-12-07 02:30:11.709831"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9176], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12302], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12302], ["room_id", 9176], ["created_at", "2018-12-07 02:30:11.728419"], ["updated_at", "2018-12-07 02:30:11.728419"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4829"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4829], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9176], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12302], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 119.4ms Sent mail to 123@123.com (5.3ms) Date: Fri, 07 Dec 2018 00:30:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db33d20a3_57522b23e08d66009717@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db33d12ab_57522b23e08d6600966c";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db33d12ab_57522b23e08d6600966c Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db33d12ab_57522b23e08d6600966c Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db33d12ab_57522b23e08d6600966c–

Completed 302 Found in 129ms (ActiveRecord: 0.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qZ2LthQxQZkNoX1/3AobmuBXI9kcRJvzYMgMaS9PWv/e/T2Up3KMS"], ["created_at", "2018-12-07 02:30:11.867029"], ["updated_at", "2018-12-07 02:30:11.867029"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ki1tsT6zz3cCXKTwLQw7Wu5WHT22sGxarCn/AZahzEa7uEa1AHxHW"], ["created_at", "2018-12-07 02:30:11.870074"], ["updated_at", "2018-12-07 02:30:11.870074"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:11.871485"], ["updated_at", "2018-12-07 02:30:11.871485"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9177], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12304], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12304], ["room_id", 9177], ["created_at", "2018-12-07 02:30:11.874031"], ["updated_at", "2018-12-07 02:30:11.874031"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4830"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4830], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9177], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12304], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:30:11.878375"], ["id", 4830]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.2ms) Date: Fri, 07 Dec 2018 00:30:11 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db33d76bf_57522b23e08d66009970@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db33d7163_57522b23e08d66009874";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db33d7163_57522b23e08d66009874 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db33d7163_57522b23e08d66009874 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db33d7163_57522b23e08d66009874–

Completed 302 Found in 8ms (ActiveRecord: 1.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$d6vhSYTN5m1Xa1xIvixblu/Ut7/XbfL1Ab5GUO34juD6J2/x.ePmu"], ["created_at", "2018-12-07 02:30:11.887792"], ["updated_at", "2018-12-07 02:30:11.887792"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rpU0h3.s6NNPtkvR4NJsqubQADh5Cg/oxtHB1IQKX2nOMNhQg/wA2"], ["created_at", "2018-12-07 02:30:11.891218"], ["updated_at", "2018-12-07 02:30:11.891218"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:11.892744"], ["updated_at", "2018-12-07 02:30:11.892744"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9178], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12306], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12306], ["room_id", 9178], ["created_at", "2018-12-07 02:30:11.896105"], ["updated_at", "2018-12-07 02:30:11.896105"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$tThgQd2PdToQqzF7eODFMOP1d0vcTLwbwR1uS9s5z7JAs6MEAww4q"], ["created_at", "2018-12-07 02:30:11.902656"], ["updated_at", "2018-12-07 02:30:11.902656"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$YwAu.1sz0iHnuLkM1EKq2u.xa7mhIznaxePFRsXIIzO0wnvdG8sRW"], ["created_at", "2018-12-07 02:30:11.905879"], ["updated_at", "2018-12-07 02:30:11.905879"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:11.907359"], ["updated_at", "2018-12-07 02:30:11.907359"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9179], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12308], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12308], ["room_id", 9179], ["created_at", "2018-12-07 02:30:11.910387"], ["updated_at", "2018-12-07 02:30:11.910387"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4832], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$4s8gFi6/nH6SdQWUfF8M6OUXz5CJsSTbM9ShqwPsCb6krttM.TuSG"], ["created_at", "2018-12-07 02:30:11.915616"], ["updated_at", "2018-12-07 02:30:11.915616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12309"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "1yx_vQ-wzofLT72V-ZNy7w"], ["updated_at", "2018-12-07 02:30:11.918824"], ["id", 12309]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:30:11.920168"], ["reset_sent_at", "2018-12-07 02:30:11.919900"], ["id", 12309]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.5ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.4ms)

UserMailer#password_reset: processed outbound mail in 5.4ms Sent mail to teste@unb.com.br (2.4ms) Date: Fri, 07 Dec 2018 00:30:11 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09db33e26e1_57522b23e08d6600102d9@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db33e20d6_57522b23e08d6600101b4";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db33e20d6_57522b23e08d6600101b4 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/1yx_vQ-wzofLT72V-ZNy7w/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09db33e20d6_57522b23e08d6600101b4 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/1yx_vQ-wzofLT72V-ZNy7w/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db33e20d6_57522b23e08d6600101b4–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$d6x321E.829jmdilTnoYveg2k3bGQfn4Rkt4jnaMADscvGU90qtGa"], ["created_at", "2018-12-07 02:30:11.933273"], ["updated_at", "2018-12-07 02:30:11.933273"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$56CUESfeGZdy0de2ehctOOZByrQVYm6MT787j7labGS1p3s2S1dou"], ["created_at", "2018-12-07 02:30:11.940563"], ["updated_at", "2018-12-07 02:30:11.940563"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12311"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$2SSNVUlyZVN440x12rST4era2VyQRCElv9jFQ3mP3XMavnwJ6GEjO"], ["updated_at", "2018-12-07 02:30:11.944574"], ["id", 12311]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$g60AEPflDn2OpPwYyrfPyu8pHzbyeAhTCoWj4uIeT5zjbH2jgnXyK"], ["created_at", "2018-12-07 02:30:11.949438"], ["updated_at", "2018-12-07 02:30:11.949438"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12312"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$CKScn06s9Z43/8sSdXRf5.Zc6GAPjCLuPIVOJY5AUkmbmoWL.5M4u"], ["created_at", "2018-12-07 02:30:11.957427"], ["updated_at", "2018-12-07 02:30:11.957427"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12313"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$tVBqFbc806/ulmHtCjtanuj6eEkApgeVQAaDvzTq3WqTaLLqxo/Ga"], ["created_at", "2018-12-07 02:30:11.971208"], ["updated_at", "2018-12-07 02:30:11.971208"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12314"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$Yqj3eZes5.LHJPLIKvukxepvm1CFBSQ5jybultgZyOFdr.9yd6ksC"], ["created_at", "2018-12-07 02:30:11.979568"], ["updated_at", "2018-12-07 02:30:11.979568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12315"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.6ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2L1vLShU5ixpHaX5vNgUfOyWqMnXIZy1Exdj7GvLZ3gS0weCmWv5W"], ["created_at", "2018-12-07 02:30:11.987139"], ["updated_at", "2018-12-07 02:30:11.987139"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.9ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CPCaM6VvuoE1JDmCqrt68O5DMY/y19lkJuzhfE9z2H83yKmbsh/hS"], ["created_at", "2018-12-07 02:30:11.994497"], ["updated_at", "2018-12-07 02:30:11.994497"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$/mAfXYWgCR1q57sX1FxPrOMgyYlcJXvSxPZBZPAbvXOJ81owp67Pe"], ["created_at", "2018-12-07 02:30:12.001335"], ["updated_at", "2018-12-07 02:30:12.001335"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.002805"], ["updated_at", "2018-12-07 02:30:12.002805"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9180], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12318], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12318], ["room_id", 9180], ["created_at", "2018-12-07 02:30:12.005563"], ["updated_at", "2018-12-07 02:30:12.005563"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cOFVb05ixFr1MhCnfhKRuuVRDSJ4Ba5UANKoahIKwnmvdSKufNZ/q"], ["created_at", "2018-12-07 02:30:12.011816"], ["updated_at", "2018-12-07 02:30:12.011816"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.013276"], ["updated_at", "2018-12-07 02:30:12.013276"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9181], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12319], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12319], ["room_id", 9181], ["created_at", "2018-12-07 02:30:12.016220"], ["updated_at", "2018-12-07 02:30:12.016220"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.0ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BTKZwdK8CsQvOTTtqDDIV.Ab2lAEFWkGWOfqZvVPbhvmr4jTjOvQy"], ["created_at", "2018-12-07 02:30:12.039391"], ["updated_at", "2018-12-07 02:30:12.039391"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.040987"], ["updated_at", "2018-12-07 02:30:12.040987"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.047915"], ["last_sign_in_at", "2018-12-07 02:30:12.047915"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.048295"], ["id", 12320]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9182"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4P3uu3bD0GRLUMQlqnb1r.vaO59RPgOeCcPebfStnE/pqoMj09AaS"], ["created_at", "2018-12-07 02:30:12.067967"], ["updated_at", "2018-12-07 02:30:12.067967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.069585"], ["updated_at", "2018-12-07 02:30:12.069585"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.071520"], ["last_sign_in_at", "2018-12-07 02:30:12.071520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.071923"], ["id", 12321]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9183"}

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$cDul1KKew9Nh9rbThQrta.izP43MpTY/aLxhq3/gaEFoBdbX0b5NK"], ["created_at", "2018-12-07 02:30:12.089475"], ["updated_at", "2018-12-07 02:30:12.089475"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.091074"], ["updated_at", "2018-12-07 02:30:12.091074"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.093387"], ["last_sign_in_at", "2018-12-07 02:30:12.093387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.093763"], ["id", 12322]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9184", "user_id"=>"12322"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$lPBo1iSIQ/bB91/fcniNYOhNQhwxNh/RoAIOsWA3YMf6w/sT.dPKa"], ["created_at", "2018-12-07 02:30:12.109945"], ["updated_at", "2018-12-07 02:30:12.109945"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.111473"], ["updated_at", "2018-12-07 02:30:12.111473"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.113887"], ["last_sign_in_at", "2018-12-07 02:30:12.113887"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.114468"], ["id", 12323]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9185", "user_id"=>"12323"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ZDIbkv8U72pwTO6Dr6WUyentrC5yxYncE7j28iWoUIJAgdwZP41D2"], ["created_at", "2018-12-07 02:30:12.131445"], ["updated_at", "2018-12-07 02:30:12.131445"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.133183"], ["updated_at", "2018-12-07 02:30:12.133183"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.135391"], ["last_sign_in_at", "2018-12-07 02:30:12.135391"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.135753"], ["id", 12324]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9186", "user_id"=>"12324"}

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Ui.rlEFYXSt6CnyBjhO.b.wShr8w3BA3Fry0/Ovkh4C6.GYAMutzC"], ["created_at", "2018-12-07 02:30:12.153189"], ["updated_at", "2018-12-07 02:30:12.153189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.155023"], ["updated_at", "2018-12-07 02:30:12.155023"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.161471"], ["last_sign_in_at", "2018-12-07 02:30:12.161471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.161948"], ["id", 12325]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9187"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NpqM1cNDoIkGV1GvffjTK.7rx4dMddz07Lo5BUcm60xZp16GaRDeO"], ["created_at", "2018-12-07 02:30:12.179019"], ["updated_at", "2018-12-07 02:30:12.179019"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.180771"], ["updated_at", "2018-12-07 02:30:12.180771"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.182766"], ["last_sign_in_at", "2018-12-07 02:30:12.182766"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.183171"], ["id", 12326]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9188"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$fqG4aTOSW3pL8DURSqDQ5.MHiY5mRKumor5BDWhIdxiVdybKE0FaC"], ["created_at", "2018-12-07 02:30:12.200036"], ["updated_at", "2018-12-07 02:30:12.200036"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.201568"], ["updated_at", "2018-12-07 02:30:12.201568"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9189], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12327], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12327], ["room_id", 9189], ["created_at", "2018-12-07 02:30:12.204370"], ["updated_at", "2018-12-07 02:30:12.204370"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/9189” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.205872"], ["last_sign_in_at", "2018-12-07 02:30:12.205872"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.206240"], ["id", 12327]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9189"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9189], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9189')
Rendered appointments/show.html.erb within layouts/application (6.4ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 197ms (Views: 194.6ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$wNACova/Sy/nRCSeQvav0OMIvx04/UIVVkcE42FQoUdyeZ8kIgm6S"], ["created_at", "2018-12-07 02:30:12.409489"], ["updated_at", "2018-12-07 02:30:12.409489"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.411202"], ["updated_at", "2018-12-07 02:30:12.411202"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9190], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12328], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12328], ["room_id", 9190], ["created_at", "2018-12-07 02:30:12.414156"], ["updated_at", "2018-12-07 02:30:12.414156"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4836/edit” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.415736"], ["last_sign_in_at", "2018-12-07 02:30:12.415736"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.416116"], ["id", 12328]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4836"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4836], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$bhhAjo4c1Z2FF9DFh8MCX.DisEjPPXL2X4HeNu6DFSkXTv5/ACzAS"], ["created_at", "2018-12-07 02:30:12.427680"], ["updated_at", "2018-12-07 02:30:12.427680"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.429396"], ["last_sign_in_at", "2018-12-07 02:30:12.429396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.429816"], ["id", 12329]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$XoFk3obQop6/xMxWcoAiOuX.1yze4jtwUonswhViZk2t0e5gZkSjC"], ["created_at", "2018-12-07 02:30:12.440934"], ["updated_at", "2018-12-07 02:30:12.440934"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.442545"], ["updated_at", "2018-12-07 02:30:12.442545"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9191], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12330], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12330], ["room_id", 9191], ["created_at", "2018-12-07 02:30:12.445544"], ["updated_at", "2018-12-07 02:30:12.445544"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9191], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12330], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12330], ["room_id", 9191], ["created_at", "2018-12-07 02:30:12.448340"], ["updated_at", "2018-12-07 02:30:12.448340"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.449854"], ["last_sign_in_at", "2018-12-07 02:30:12.449854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.450218"], ["id", 12330]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12330]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$piBXtT1uPWe5/FNIWC6rIOV6dXG5CpfhR842qeV6ayRLta8fUKgKi"], ["created_at", "2018-12-07 02:30:12.464870"], ["updated_at", "2018-12-07 02:30:12.464870"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.467134"], ["updated_at", "2018-12-07 02:30:12.467134"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9192], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12331], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12331], ["room_id", 9192], ["created_at", "2018-12-07 02:30:12.470305"], ["updated_at", "2018-12-07 02:30:12.470305"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9192], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12331], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12331], ["room_id", 9192], ["created_at", "2018-12-07 02:30:12.473219"], ["updated_at", "2018-12-07 02:30:12.473219"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.474726"], ["last_sign_in_at", "2018-12-07 02:30:12.474726"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.475116"], ["id", 12331]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12331]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$5H4sXUN77lt.zF7yr.TWyufWKb2sNci/gmP0PCiUAWzxEhBaktDwa"], ["created_at", "2018-12-07 02:30:12.484369"], ["updated_at", "2018-12-07 02:30:12.484369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.485942"], ["updated_at", "2018-12-07 02:30:12.485942"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9193], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12332], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12332], ["room_id", 9193], ["created_at", "2018-12-07 02:30:12.488798"], ["updated_at", "2018-12-07 02:30:12.488798"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4841” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.490334"], ["last_sign_in_at", "2018-12-07 02:30:12.490334"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.490685"], ["id", 12332]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4841"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4841], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4841]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZJWsEcsaNRc4Zzdk5AcGu.g/wWP.x9pVCoEduScFIO/hSRr4orWIm"], ["created_at", "2018-12-07 02:30:12.499616"], ["updated_at", "2018-12-07 02:30:12.499616"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.501251"], ["updated_at", "2018-12-07 02:30:12.501251"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.1ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$rvvgR8ONTKryugECYlB.uu8XiORoIXOkyVbbvzeRTijVUUZwqoDii"], ["created_at", "2018-12-07 02:30:12.504290"], ["updated_at", "2018-12-07 02:30:12.504290"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9194], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12334], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12334], ["room_id", 9194], ["created_at", "2018-12-07 02:30:12.507106"], ["updated_at", "2018-12-07 02:30:12.507106"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4842” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.508891"], ["last_sign_in_at", "2018-12-07 02:30:12.508891"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.509211"], ["id", 12333]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4842"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4842], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9194], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12334], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.7ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2IBOt446tB0CCGMldbroeuK5vl7v0fftkCqFMARgzXHI70Jxfhslu"], ["created_at", "2018-12-07 02:30:12.518975"], ["updated_at", "2018-12-07 02:30:12.518975"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.520551"], ["updated_at", "2018-12-07 02:30:12.520551"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$HAkwwnY02W5HrPhHputUF.BhD2cddvtqVJKiCX6ZISb01VVdmBfM."], ["created_at", "2018-12-07 02:30:12.523794"], ["updated_at", "2018-12-07 02:30:12.523794"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9195], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12336], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12336], ["room_id", 9195], ["created_at", "2018-12-07 02:30:12.526935"], ["updated_at", "2018-12-07 02:30:12.526935"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4843” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.529055"], ["last_sign_in_at", "2018-12-07 02:30:12.529055"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.529628"], ["id", 12335]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4843"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4843], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9195], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12336], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9qvfWFzt8aJjR3gFZCYU5.74NIctxgkhH8PqXMJ92sdRIllf4YeXy"], ["created_at", "2018-12-07 02:30:12.538834"], ["updated_at", "2018-12-07 02:30:12.538834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.540434"], ["updated_at", "2018-12-07 02:30:12.540434"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3Z9b3djjdACa.n6J7Bzz6OrlsQilQWi0duKkDLKaCa5UMbJzxJw6O"], ["created_at", "2018-12-07 02:30:12.543688"], ["updated_at", "2018-12-07 02:30:12.543688"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9196], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12338], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12338], ["room_id", 9196], ["created_at", "2018-12-07 02:30:12.546794"], ["updated_at", "2018-12-07 02:30:12.546794"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4844” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.548722"], ["last_sign_in_at", "2018-12-07 02:30:12.548722"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.549108"], ["id", 12337]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4844"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4844], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9196], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12338], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:30:12.553176"], ["id", 4844]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.4ms) Date: Fri, 07 Dec 2018 00:30:12 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09db3487fe8_57522b23e08d6600109b8@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09db3487a2e_57522b23e08d660010896";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09db3487a2e_57522b23e08d660010896 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09db3487a2e_57522b23e08d660010896 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09db3487a2e_57522b23e08d660010896–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yjn4uBYWmwhWwnyfIhocGODnZAe/bee7gS70FCd/bVBlUnjxUNOLC"], ["created_at", "2018-12-07 02:30:12.563967"], ["updated_at", "2018-12-07 02:30:12.563967"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.565838"], ["updated_at", "2018-12-07 02:30:12.565838"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$svOkDIH7PaTe9M/7hPnXuudNS7K2BnHMrKscZOEidrkt4Z0ywX9xS"], ["created_at", "2018-12-07 02:30:12.569153"], ["updated_at", "2018-12-07 02:30:12.569153"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9197], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12340], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12340], ["room_id", 9197], ["created_at", "2018-12-07 02:30:12.572197"], ["updated_at", "2018-12-07 02:30:12.572197"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:30:12.573557"], ["id", 4845]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9197], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12340], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12340], ["room_id", 9197], ["created_at", "2018-12-07 02:30:12.576125"], ["updated_at", "2018-12-07 02:30:12.576125"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:30:12.577384"], ["id", 4846]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.578831"], ["last_sign_in_at", "2018-12-07 02:30:12.578831"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.579186"], ["id", 12339]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12340], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9197], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12340], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9197], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.2ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.4ms | ActiveRecord: 0.8ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.7ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$91qfAkJRIGLMtUlo9aO/b.HoJL8G.E/EPkTSpFX5AZcTCk7URRkoa"], ["created_at", "2018-12-07 02:30:12.592927"], ["updated_at", "2018-12-07 02:30:12.592927"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.594871"], ["updated_at", "2018-12-07 02:30:12.594871"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$kguxXP5bEAyshXL.wuLMI.dMAGwiOgofoO9elYLoHVyedg8iV8v6y"], ["created_at", "2018-12-07 02:30:12.598183"], ["updated_at", "2018-12-07 02:30:12.598183"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9198], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12342], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12342], ["room_id", 9198], ["created_at", "2018-12-07 02:30:12.601301"], ["updated_at", "2018-12-07 02:30:12.601301"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:30:12.602690"], ["id", 4847]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9198], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12342], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12342], ["room_id", 9198], ["created_at", "2018-12-07 02:30:12.605259"], ["updated_at", "2018-12-07 02:30:12.605259"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:30:12.606546"], ["id", 4848]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.607938"], ["last_sign_in_at", "2018-12-07 02:30:12.607938"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.608302"], ["id", 12341]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12342], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9198], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12342], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9198], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$JnkIQOKGBLM.Q.bJSSzjYeLbFc3nAtBeCxhCtUztMlG.5NuVW1HrK"], ["created_at", "2018-12-07 02:30:12.620512"], ["updated_at", "2018-12-07 02:30:12.620512"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.5ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.622337"], ["last_sign_in_at", "2018-12-07 02:30:12.622337"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.622747"], ["id", 12343]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.6ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$e6u1wR7GjRs4uq7O7//ZauodCcROp7PrTZ2Tp.6oELNPweml9yPei"], ["created_at", "2018-12-07 02:30:12.636507"], ["updated_at", "2018-12-07 02:30:12.636507"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.638184"], ["last_sign_in_at", "2018-12-07 02:30:12.638184"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.638539"], ["id", 12344]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$pjZk5K7i3q5iCHjsYoxEQ.sS..xATirdO32B/5Ui/u7f8E/jJ6YPC"], ["created_at", "2018-12-07 02:30:12.644369"], ["updated_at", "2018-12-07 02:30:12.644369"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.645892"], ["last_sign_in_at", "2018-12-07 02:30:12.645892"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.646228"], ["id", 12345]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$m8O9iWhuiVocukXE0qAjouw6wYXXxhCaGBaATamB0dxyM22EYrtJG"], ["created_at", "2018-12-07 02:30:12.656181"], ["updated_at", "2018-12-07 02:30:12.656181"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.658013"], ["last_sign_in_at", "2018-12-07 02:30:12.658013"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.658393"], ["id", 12346]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (0.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$816P4oWNjlZLsQ15D14dmOK9NYFevNzlvN/DYXCF6O8wIgRlW8iQm"], ["created_at", "2018-12-07 02:30:12.672267"], ["updated_at", "2018-12-07 02:30:12.672267"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.673839"], ["updated_at", "2018-12-07 02:30:12.673839"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9199” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.675265"], ["last_sign_in_at", "2018-12-07 02:30:12.675265"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.675711"], ["id", 12347]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9199"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9199], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$avqyyyiysa3JmiGAjN8.duFCcmFGpmjlTzEQ4BGsdHmoBCX521Hkq"], ["created_at", "2018-12-07 02:30:12.684622"], ["updated_at", "2018-12-07 02:30:12.684622"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.686365"], ["updated_at", "2018-12-07 02:30:12.686365"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9200” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.688415"], ["last_sign_in_at", "2018-12-07 02:30:12.688415"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.688811"], ["id", 12348]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9200"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9200], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 1.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.695427"], ["updated_at", "2018-12-07 02:30:12.695427"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9201” for 127.0.0.1 at 2018-12-07 00:30:12 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9201"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$KwwpkdKsPf0lYUin4KHxCe2dufKSLr9LcSeaLH7iH/88c7NgGtdza"], ["created_at", "2018-12-07 02:30:12.701633"], ["updated_at", "2018-12-07 02:30:12.701633"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.703287"], ["updated_at", "2018-12-07 02:30:12.703287"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9202” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.704753"], ["last_sign_in_at", "2018-12-07 02:30:12.704753"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.705168"], ["id", 12349]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9202"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.713055"], ["updated_at", "2018-12-07 02:30:12.713055"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9203” for 127.0.0.1 at 2018-12-07 00:30:12 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9203"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OJ6VOrcyHnYMaTt82nfhQOOyD57DzeaIHy7dEj7r9KpTFIJDHh.py"], ["created_at", "2018-12-07 02:30:12.719656"], ["updated_at", "2018-12-07 02:30:12.719656"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.721341"], ["updated_at", "2018-12-07 02:30:12.721341"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9204/edit” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.722826"], ["last_sign_in_at", "2018-12-07 02:30:12.722826"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.723228"], ["id", 12350]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9204"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9204], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$kcvYNlswqCeU29LuubUrVOZmFACg.37lPeMwo/mXlTooEa2I7a5rm"], ["created_at", "2018-12-07 02:30:12.733628"], ["updated_at", "2018-12-07 02:30:12.733628"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.735224"], ["updated_at", "2018-12-07 02:30:12.735224"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9205/edit” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.736620"], ["last_sign_in_at", "2018-12-07 02:30:12.736620"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.736987"], ["id", 12351]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9205"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9205], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.744568"], ["updated_at", "2018-12-07 02:30:12.744568"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9206” for 127.0.0.1 at 2018-12-07 00:30:12 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9206"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$VIY82ZpVKM9TgBQjDPJAM.NRUWHon.WicOzu5AU5fxBBERKuoxaqa"], ["created_at", "2018-12-07 02:30:12.751412"], ["updated_at", "2018-12-07 02:30:12.751412"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.753700"], ["last_sign_in_at", "2018-12-07 02:30:12.753700"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.754053"], ["id", 12352]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.756590"], ["updated_at", "2018-12-07 02:30:12.756590"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$zhYXrc45q/2W.LlDgVKvFO31VGkC5nGpPgK3W/DOb20g0k7Sn.BAS"], ["created_at", "2018-12-07 02:30:12.762345"], ["updated_at", "2018-12-07 02:30:12.762345"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.764399"], ["last_sign_in_at", "2018-12-07 02:30:12.764399"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.764804"], ["id", 12353]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.767192"], ["updated_at", "2018-12-07 02:30:12.767192"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$NYMuzWzGcCRxYLkvWj86dOYFnBoczuEBcx5cRJQ/GiJkjW543l9tC"], ["created_at", "2018-12-07 02:30:12.772325"], ["updated_at", "2018-12-07 02:30:12.772325"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.774311"], ["last_sign_in_at", "2018-12-07 02:30:12.774311"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.774666"], ["id", 12354]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$h.aS8tu/qQ1p9wjCWOi8JeYAd.wUYc8LQb0tmkR2V4OHwfsn8P5Jm"], ["created_at", "2018-12-07 02:30:12.783054"], ["updated_at", "2018-12-07 02:30:12.783054"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.785242"], ["last_sign_in_at", "2018-12-07 02:30:12.785242"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.785620"], ["id", 12355]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$9tq9oj2LtS4WqgfcXIzvy.Lrnzje8pvILlO739WOg4q7S3T09JSge"], ["created_at", "2018-12-07 02:30:12.793208"], ["updated_at", "2018-12-07 02:30:12.793208"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.795205"], ["last_sign_in_at", "2018-12-07 02:30:12.795205"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.795553"], ["id", 12356]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DnG5IJqaR9HC6NhorwpvwuCEuUKOQyo7Q7hfPHeXH44CwQhuourCK"], ["created_at", "2018-12-07 02:30:12.801426"], ["updated_at", "2018-12-07 02:30:12.801426"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.802953"], ["updated_at", "2018-12-07 02:30:12.802953"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9209” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.804667"], ["last_sign_in_at", "2018-12-07 02:30:12.804667"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.805024"], ["id", 12357]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9209"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9209], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:30:12.807859"], ["id", 9209]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9209 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$oOFtBxvx5tv80AN7HhhaZ.dVvT.fg.aY93oNnRYw.j6k9DR8DqNoW"], ["created_at", "2018-12-07 02:30:12.813777"], ["updated_at", "2018-12-07 02:30:12.813777"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.815845"], ["updated_at", "2018-12-07 02:30:12.815845"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9210” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.817701"], ["last_sign_in_at", "2018-12-07 02:30:12.817701"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.818072"], ["id", 12358]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9210"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9210], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:30:12.820921"], ["id", 9210]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9210 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$CN0aI5lAThxffcqd.m6K.OkN9D5MhZM9k3MZ/2IJXFzz77gNZBQS6"], ["created_at", "2018-12-07 02:30:12.826189"], ["updated_at", "2018-12-07 02:30:12.826189"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.827753"], ["updated_at", "2018-12-07 02:30:12.827753"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9211” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.829496"], ["last_sign_in_at", "2018-12-07 02:30:12.829496"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.829858"], ["id", 12359]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9211"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9211], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qf.E4tgAzQqxYTSjSRz.6eBmnOHOwwXzR8yvv06L/fClFut1x7MdC"], ["created_at", "2018-12-07 02:30:12.840970"], ["updated_at", "2018-12-07 02:30:12.840970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.842589"], ["updated_at", "2018-12-07 02:30:12.842589"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9212” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.844558"], ["last_sign_in_at", "2018-12-07 02:30:12.844558"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.844970"], ["id", 12360]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9212"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9212], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$OCYZ9QdyGAKOheWjhoUifuhUMhL9KoOTNt70Khi0Ffa9Bh61nFjoK"], ["created_at", "2018-12-07 02:30:12.856669"], ["updated_at", "2018-12-07 02:30:12.856669"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.858773"], ["last_sign_in_at", "2018-12-07 02:30:12.858773"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.859124"], ["id", 12361]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4LnK4qPF5eYCf3vHsypTjuQe6lXWhu2jWf8WR7SlC.cnB1OR7nAq."], ["created_at", "2018-12-07 02:30:12.865194"], ["updated_at", "2018-12-07 02:30:12.865194"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.866788"], ["updated_at", "2018-12-07 02:30:12.866788"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9213” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.868219"], ["last_sign_in_at", "2018-12-07 02:30:12.868219"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.868633"], ["id", 12362]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9213"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9213], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9213]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$lFhpAdA3KLzskqxqA9HqmOhi4PbmWpvXEE5y.uL8N1.8jzKLCyzIK"], ["created_at", "2018-12-07 02:30:12.876682"], ["updated_at", "2018-12-07 02:30:12.876682"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.878666"], ["updated_at", "2018-12-07 02:30:12.878666"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9214” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.880223"], ["last_sign_in_at", "2018-12-07 02:30:12.880223"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.880654"], ["id", 12363]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9214"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9214], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9214]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Sij1mksxEYrI/yCBfOUFN.lTW36zGaBtvkU8HFn28UZjCwSvrZlzu"], ["created_at", "2018-12-07 02:30:12.888251"], ["updated_at", "2018-12-07 02:30:12.888251"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.889820"], ["updated_at", "2018-12-07 02:30:12.889820"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9215” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.891233"], ["last_sign_in_at", "2018-12-07 02:30:12.891233"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.891623"], ["id", 12364]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9215"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6c7kKedUM9alTefFWrjAMu3UMUK6kiqPtLyvwu4Z0iOw073BkjKaq"], ["created_at", "2018-12-07 02:30:12.897650"], ["updated_at", "2018-12-07 02:30:12.897650"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.899183"], ["updated_at", "2018-12-07 02:30:12.899183"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9216” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.900520"], ["last_sign_in_at", "2018-12-07 02:30:12.900520"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.900888"], ["id", 12365]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9216"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$sgWRLNjXJ0MVuOEm1untoOrfUl2OtOQ6oCgzBmYR2M4Nac7rPchrG"], ["created_at", "2018-12-07 02:30:12.906669"], ["updated_at", "2018-12-07 02:30:12.906669"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.908625"], ["last_sign_in_at", "2018-12-07 02:30:12.908625"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.909017"], ["id", 12366]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2CfndVF/QPKHktTZTNRMm.WlIjjOT2.wYoxmlmpRe0YdapPAq3Aw2"], ["created_at", "2018-12-07 02:30:12.920457"], ["updated_at", "2018-12-07 02:30:12.920457"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.921946"], ["updated_at", "2018-12-07 02:30:12.921946"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.923119"], ["updated_at", "2018-12-07 02:30:12.923119"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.924196"], ["updated_at", "2018-12-07 02:30:12.924196"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9217], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12367], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12367], ["room_id", 9217], ["created_at", "2018-12-07 02:30:12.926851"], ["updated_at", "2018-12-07 02:30:12.926851"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.928418"], ["last_sign_in_at", "2018-12-07 02:30:12.928418"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.928763"], ["id", 12367]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.2ms | ActiveRecord: 0.4ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$f0yiSM/D5tVYVMgc3SOp2eyiWpiNLIi9Dc2RDmYRuiS5FFn9MsFj6"], ["created_at", "2018-12-07 02:30:12.945309"], ["updated_at", "2018-12-07 02:30:12.945309"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.946893"], ["updated_at", "2018-12-07 02:30:12.946893"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.948045"], ["updated_at", "2018-12-07 02:30:12.948045"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:30:12.949119"], ["updated_at", "2018-12-07 02:30:12.949119"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9220], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12368], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12368], ["room_id", 9220], ["created_at", "2018-12-07 02:30:12.951751"], ["updated_at", "2018-12-07 02:30:12.951751"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:30:12 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:30:12.953239"], ["last_sign_in_at", "2018-12-07 02:30:12.953239"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:30:12.953566"], ["id", 12368]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9kw9zSdF0uVwyXfurZKgt.mBBGzvqhQbXe1Wb.Dc0EE54PKTtxGGS"], ["created_at", "2018-12-07 02:30:22.195960"], ["updated_at", "2018-12-07 02:30:22.195960"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.4ms)
Rendered users/sessions/new.html.erb within layouts/application (199.6ms)

Completed 200 OK in 212ms (Views: 204.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:30:22.435660"], ["last_sign_in_at", "2018-12-07 02:30:22.435660"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:30:22.436181"], ["id", 12369]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12369], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:30:22.459349"], ["updated_at", "2018-12-07 02:30:22.459349"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:30:22.460885"], ["updated_at", "2018-12-07 02:30:22.460885"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12369], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9223” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9223"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9223], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9223')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12369], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.9223” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 17ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Vm7Jd5/QmAgUTdrwZg5sbOCPprwsrWW6WnlVDQ012pJhF70C5rJGW"], ["created_at", "2018-12-07 02:30:22.526827"], ["updated_at", "2018-12-07 02:30:22.526827"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.4ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:30:22.538076"], ["last_sign_in_at", "2018-12-07 02:30:22.538076"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:30:22.538540"], ["id", 12370]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12370], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:30:22.546593"], ["updated_at", "2018-12-07 02:30:22.546593"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:30:22.548068"], ["updated_at", "2018-12-07 02:30:22.548068"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12370], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/9225” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9225"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9225], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9225')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12370], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.9225” for 127.0.0.1 at 2018-12-07 00:30:22 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 21ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$aIe39COEwSqPo8l8Gm3QE.PkU5EaoSOqnEZjbbDSSVHDgDi2CYQMu"], ["created_at", "2018-12-07 02:30:42.472855"], ["updated_at", "2018-12-07 02:30:42.472855"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.8ms)
Rendered users/sessions/new.html.erb within layouts/application (105.6ms)

Completed 200 OK in 118ms (Views: 110.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:30:42.618396"], ["last_sign_in_at", "2018-12-07 02:30:42.618396"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:30:42.618931"], ["id", 12371]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12371], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:30:42.641655"], ["updated_at", "2018-12-07 02:30:42.641655"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:30:42.643158"], ["updated_at", "2018-12-07 02:30:42.643158"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12371], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/9227” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9227"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9227], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9227')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12371], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 2.0ms) Started POST “/appointments.9227” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$veeJMBYQ0eHgZdBuns8DBurd5Y5eE1yxl7w5uH4syuq0OV7ZMyVKq"], ["created_at", "2018-12-07 02:30:42.704872"], ["updated_at", "2018-12-07 02:30:42.704872"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:30:42.719303"], ["last_sign_in_at", "2018-12-07 02:30:42.719303"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:30:42.719780"], ["id", 12372]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12372], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:30:42.728003"], ["updated_at", "2018-12-07 02:30:42.728003"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:30:42.729609"], ["updated_at", "2018-12-07 02:30:42.729609"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12372], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9229” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9229"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9229], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9229')
Rendered appointments/show.html.erb within layouts/application (1.5ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12372], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 7ms (Views: 4.7ms | ActiveRecord: 0.9ms) Started POST “/appointments.9229” for 127.0.0.1 at 2018-12-07 00:30:42 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 9ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$BKhJOIOyauT9IX.yPPvFnO2aPlpfCvGFQRK.NEcBg4YsJtEllC7wu"], ["created_at", "2018-12-07 02:31:13.015257"], ["updated_at", "2018-12-07 02:31:13.015257"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (117.6ms)

Completed 200 OK in 131ms (Views: 122.2ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:13.173637"], ["last_sign_in_at", "2018-12-07 02:31:13.173637"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:13.174151"], ["id", 12373]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12373], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:13.197519"], ["updated_at", "2018-12-07 02:31:13.197519"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:13.199213"], ["updated_at", "2018-12-07 02:31:13.199213"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12373], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9231” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9231"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9231], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9231')
Rendered appointments/show.html.erb within layouts/application (5.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12373], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.6ms) Started POST “/appointments.9231” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 17ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$S/GO8SPN1FUiBd92JNk4Ce.bEhjVE5VnkXk2t4bHv8NzqnJfONtcu"], ["created_at", "2018-12-07 02:31:13.265155"], ["updated_at", "2018-12-07 02:31:13.265155"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:13.276379"], ["last_sign_in_at", "2018-12-07 02:31:13.276379"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:13.276814"], ["id", 12374]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12374], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:13.284990"], ["updated_at", "2018-12-07 02:31:13.284990"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:13.286444"], ["updated_at", "2018-12-07 02:31:13.286444"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12374], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/9233” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9233"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9233], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9233')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12374], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.9233” for 127.0.0.1 at 2018-12-07 00:31:13 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Pfo7RltUF3XHqoUR1GBfx.7mLBLoOaEHmcrulRghYy6HIpH4sasau"], ["created_at", "2018-12-07 02:31:35.667536"], ["updated_at", "2018-12-07 02:31:35.667536"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.0ms)
Rendered users/sessions/new.html.erb within layouts/application (119.1ms)

Completed 200 OK in 132ms (Views: 123.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:35.827461"], ["last_sign_in_at", "2018-12-07 02:31:35.827461"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:35.827966"], ["id", 12375]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12375], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:35.851205"], ["updated_at", "2018-12-07 02:31:35.851205"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:35.852780"], ["updated_at", "2018-12-07 02:31:35.852780"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12375], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9235” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9235"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9235], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9235')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12375], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.9235” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 15ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$BRJw0j3wyhiJmlEe9c7qYeltI0vAma9yK53WSTJevdr3tZcJfbezS"], ["created_at", "2018-12-07 02:31:35.916955"], ["updated_at", "2018-12-07 02:31:35.916955"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:35.928498"], ["last_sign_in_at", "2018-12-07 02:31:35.928498"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:35.928968"], ["id", 12376]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12376], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:35.936645"], ["updated_at", "2018-12-07 02:31:35.936645"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:35.938212"], ["updated_at", "2018-12-07 02:31:35.938212"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12376], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/9237” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9237"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9237], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9237')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12376], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.9237” for 127.0.0.1 at 2018-12-07 00:31:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 10ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$P1tLBCQrlDmnlVKepiXHl.r.XK0TERGfN5z.a1ylCD6ILFPI1jMbK"], ["created_at", "2018-12-07 02:31:47.436054"], ["updated_at", "2018-12-07 02:31:47.436054"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (116.7ms)

Completed 200 OK in 130ms (Views: 121.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:47.593390"], ["last_sign_in_at", "2018-12-07 02:31:47.593390"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:47.593897"], ["id", 12377]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12377], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:47.617208"], ["updated_at", "2018-12-07 02:31:47.617208"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:47.618705"], ["updated_at", "2018-12-07 02:31:47.618705"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12377], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9239” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9239"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9239], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9239')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12377], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.9239” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 16ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$YjF6YdDm1IyuKeRj8pNfXOaXGSKzrh090zcO9WAjVAb7jHPYHXHQ2"], ["created_at", "2018-12-07 02:31:47.683448"], ["updated_at", "2018-12-07 02:31:47.683448"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:47.694720"], ["last_sign_in_at", "2018-12-07 02:31:47.694720"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:47.695178"], ["id", 12378]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12378], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:47.702545"], ["updated_at", "2018-12-07 02:31:47.702545"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:47.704246"], ["updated_at", "2018-12-07 02:31:47.704246"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12378], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/9241” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9241"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9241], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9241')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12378], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.9241” for 127.0.0.1 at 2018-12-07 00:31:47 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$4Ir9gk367VMVobv1/990YOTDeG.XvIap3QIeLqnlpvuTdlsqNpeQ."], ["created_at", "2018-12-07 02:31:59.088785"], ["updated_at", "2018-12-07 02:31:59.088785"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (12.3ms)
Rendered users/sessions/new.html.erb within layouts/application (126.6ms)

Completed 200 OK in 140ms (Views: 131.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:59.257172"], ["last_sign_in_at", "2018-12-07 02:31:59.257172"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:59.257679"], ["id", 12379]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12379], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:59.281257"], ["updated_at", "2018-12-07 02:31:59.281257"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:59.282819"], ["updated_at", "2018-12-07 02:31:59.282819"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12379], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 4.0ms | ActiveRecord: 0.6ms) Started GET “/appointments/9243” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9243"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9243], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9243')
Rendered appointments/show.html.erb within layouts/application (5.4ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12379], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.3ms | ActiveRecord: 1.9ms) Started POST “/appointments.9243” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 18ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iJouVewkfYG/457mSAHuVe4vElIZnKLHOX3dvggKCN4qLv9SItb1a"], ["created_at", "2018-12-07 02:31:59.351425"], ["updated_at", "2018-12-07 02:31:59.351425"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:31:59.362551"], ["last_sign_in_at", "2018-12-07 02:31:59.362551"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:31:59.363055"], ["id", 12380]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12380], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:31:59.371312"], ["updated_at", "2018-12-07 02:31:59.371312"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:31:59.372727"], ["updated_at", "2018-12-07 02:31:59.372727"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12380], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.4ms) Started GET “/appointments/9245” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9245"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9245], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9245')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12380], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.9245” for 127.0.0.1 at 2018-12-07 00:31:59 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 12ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$cCONtiU71enCHgIcAc7R9.d3UD8asmMWv8hBT/aNqcNRZEVHBcktS"], ["created_at", "2018-12-07 02:32:07.695863"], ["updated_at", "2018-12-07 02:32:07.695863"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.7ms)
Rendered users/sessions/new.html.erb within layouts/application (116.7ms)

Completed 200 OK in 130ms (Views: 121.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:32:07.853249"], ["last_sign_in_at", "2018-12-07 02:32:07.853249"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:32:07.853764"], ["id", 12381]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12381], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:32:07.877129"], ["updated_at", "2018-12-07 02:32:07.877129"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:32:07.878705"], ["updated_at", "2018-12-07 02:32:07.878705"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12381], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/9247” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9247"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9247], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9247')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12381], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.9247” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$rVWNiD5ooj/7ZKtPduhSZey6/GG7k5iSFvpehrXxhQHAXrkQvqSpO"], ["created_at", "2018-12-07 02:32:07.938179"], ["updated_at", "2018-12-07 02:32:07.938179"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:32:07.949495"], ["last_sign_in_at", "2018-12-07 02:32:07.949495"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:32:07.949940"], ["id", 12382]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12382], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:32:07.957004"], ["updated_at", "2018-12-07 02:32:07.957004"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:32:07.958332"], ["updated_at", "2018-12-07 02:32:07.958332"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12382], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 5ms (Views: 2.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/9249” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9249"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9249], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9249')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12382], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.9249” for 127.0.0.1 at 2018-12-07 00:32:07 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7p63C60iaTsltimYWCLxG.e5x1Mwkn89d8KfXNfgf.ittx4lBiAyu"], ["created_at", "2018-12-07 02:32:25.802736"], ["updated_at", "2018-12-07 02:32:25.802736"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:32:25 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (115.4ms)

Completed 200 OK in 128ms (Views: 120.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:32:25 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:32:25.958710"], ["last_sign_in_at", "2018-12-07 02:32:25.958710"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:32:25.959214"], ["id", 12383]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:32:25 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12383], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:32:25.982284"], ["updated_at", "2018-12-07 02:32:25.982284"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:32:25.983801"], ["updated_at", "2018-12-07 02:32:25.983801"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:32:25 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12383], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9251” for 127.0.0.1 at 2018-12-07 00:32:25 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9251"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9251], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9251')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12383], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.9251” for 127.0.0.1 at 2018-12-07 00:32:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$vLHpNSOqIu.rrhBpDJyLvuK1AMZhd/bLBfUXyfwBVvToFSy0heaYm"], ["created_at", "2018-12-07 02:32:26.037433"], ["updated_at", "2018-12-07 02:32:26.037433"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:32:26 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:32:26 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:32:26.049000"], ["last_sign_in_at", "2018-12-07 02:32:26.049000"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:32:26.049466"], ["id", 12384]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:32:26 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12384], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:32:26.056741"], ["updated_at", "2018-12-07 02:32:26.056741"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:32:26.058115"], ["updated_at", "2018-12-07 02:32:26.058115"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:32:26 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12384], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/9253” for 127.0.0.1 at 2018-12-07 00:32:26 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9253"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9253], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9253')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12384], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.9253” for 127.0.0.1 at 2018-12-07 00:32:26 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$f3wQuhWwKrwdwTB16zLe2ewBBta5SKPdaZwBbIEiy2yBzV1DXXvjG"], ["created_at", "2018-12-07 02:33:34.722070"], ["updated_at", "2018-12-07 02:33:34.722070"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (118.2ms)

Completed 200 OK in 131ms (Views: 122.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:33:34.880934"], ["last_sign_in_at", "2018-12-07 02:33:34.880934"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:33:34.881443"], ["id", 12385]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12385], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:33:34.904683"], ["updated_at", "2018-12-07 02:33:34.904683"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:33:34.906193"], ["updated_at", "2018-12-07 02:33:34.906193"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12385], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9255” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9255"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9255], ["LIMIT", 1]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$eKh9f/QjWHhP.rTeQFddQu/TDRRdH1FA6O10mgAD5NENWN1fgGJ9u"], ["created_at", "2018-12-07 02:33:34.935766"], ["updated_at", "2018-12-07 02:33:34.935766"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:33:34.947193"], ["last_sign_in_at", "2018-12-07 02:33:34.947193"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:33:34.947673"], ["id", 12386]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12386], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:33:34.954992"], ["updated_at", "2018-12-07 02:33:34.954992"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:33:34.956387"], ["updated_at", "2018-12-07 02:33:34.956387"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12386], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/9257” for 127.0.0.1 at 2018-12-07 00:33:34 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9257"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9257], ["LIMIT", 1]]

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$EJNFWDuMfyYQuwpZeTwboeb7AOnweqyKIFyn30KqGCuoIyFIXEr1W"], ["created_at", "2018-12-07 02:34:07.388881"], ["updated_at", "2018-12-07 02:34:07.388881"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (117.3ms)

Completed 200 OK in 130ms (Views: 122.0ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:07.546944"], ["last_sign_in_at", "2018-12-07 02:34:07.546944"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:07.547454"], ["id", 12387]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12387], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:07.570595"], ["updated_at", "2018-12-07 02:34:07.570595"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:07.572159"], ["updated_at", "2018-12-07 02:34:07.572159"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12387], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9259” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9259"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9259], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9259')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12387], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.9259” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$G2D9zzAvqhWwUgLzbOYgfei5YTvcQqWAQtyob9EcdqsZZWSGhvKH6"], ["created_at", "2018-12-07 02:34:07.630894"], ["updated_at", "2018-12-07 02:34:07.630894"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:07.642387"], ["last_sign_in_at", "2018-12-07 02:34:07.642387"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:07.642863"], ["id", 12388]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12388], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:07.650155"], ["updated_at", "2018-12-07 02:34:07.650155"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:07.651525"], ["updated_at", "2018-12-07 02:34:07.651525"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12388], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/9261” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9261"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9261], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9261')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12388], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.9261” for 127.0.0.1 at 2018-12-07 00:34:07 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.3ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$iU5/FbxpL9yiRRSKlr5fZexTbZufweiG/QWPVx3XTDK/SAqXvlU9m"], ["created_at", "2018-12-07 02:34:34.776698"], ["updated_at", "2018-12-07 02:34:34.776698"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:34 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.7ms)
Rendered users/sessions/new.html.erb within layouts/application (125.8ms)

Completed 200 OK in 139ms (Views: 130.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:34 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:34.943876"], ["last_sign_in_at", "2018-12-07 02:34:34.943876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:34.944393"], ["id", 12389]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:34 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12389], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:34.967743"], ["updated_at", "2018-12-07 02:34:34.967743"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:34.969298"], ["updated_at", "2018-12-07 02:34:34.969298"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:34 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12389], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/9263” for 127.0.0.1 at 2018-12-07 00:34:34 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9263"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9263], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9263')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12389], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.9263” for 127.0.0.1 at 2018-12-07 00:34:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$oaqz/wwWjLKXiqoQMuZpvOlSCFOf8TzGH/LzE6rOnVj215n4KmFQ2"], ["created_at", "2018-12-07 02:34:35.023793"], ["updated_at", "2018-12-07 02:34:35.023793"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:35.035471"], ["last_sign_in_at", "2018-12-07 02:34:35.035471"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:35.035870"], ["id", 12390]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12390], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:35.043103"], ["updated_at", "2018-12-07 02:34:35.043103"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:35.044490"], ["updated_at", "2018-12-07 02:34:35.044490"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:35 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12390], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.4ms) Started GET “/appointments/9265” for 127.0.0.1 at 2018-12-07 00:34:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9265"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9265], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9265')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12390], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.9265” for 127.0.0.1 at 2018-12-07 00:34:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$WDqqg67bZn7Esh6IhiT1D.NyvMLomZlIBoorXJ6TYNX9LtNnv04d6"], ["created_at", "2018-12-07 02:34:45.496269"], ["updated_at", "2018-12-07 02:34:45.496269"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.6ms)
Rendered users/sessions/new.html.erb within layouts/application (124.4ms)

Completed 200 OK in 138ms (Views: 129.3ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:45.661876"], ["last_sign_in_at", "2018-12-07 02:34:45.661876"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:45.662402"], ["id", 12391]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12391], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:45.685933"], ["updated_at", "2018-12-07 02:34:45.685933"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:45.687513"], ["updated_at", "2018-12-07 02:34:45.687513"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12391], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9267” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9267"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9267], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9267')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12391], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.9267” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.0ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5eWo63LHlIVtVAqYzrDhJeewmJDgxGBHc34Em8kDDYf1gaHBR1Ohm"], ["created_at", "2018-12-07 02:34:45.746490"], ["updated_at", "2018-12-07 02:34:45.746490"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:45.757992"], ["last_sign_in_at", "2018-12-07 02:34:45.757992"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:45.758396"], ["id", 12392]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12392], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:45.765360"], ["updated_at", "2018-12-07 02:34:45.765360"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:45.766482"], ["updated_at", "2018-12-07 02:34:45.766482"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12392], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.0ms | ActiveRecord: 0.6ms) Started GET “/appointments/9269” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9269"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9269], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9269')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12392], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.9269” for 127.0.0.1 at 2018-12-07 00:34:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$HVYiVbWu/3nxWNIEhaH8RuCAVZjucD7Tx1SYQC144/lzCgaPvYvdu"], ["created_at", "2018-12-07 02:34:53.915739"], ["updated_at", "2018-12-07 02:34:53.915739"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:53 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (11.6ms)
Rendered users/sessions/new.html.erb within layouts/application (125.0ms)

Completed 200 OK in 138ms (Views: 129.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:54.081906"], ["last_sign_in_at", "2018-12-07 02:34:54.081906"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:54.082433"], ["id", 12393]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12393], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:54.105936"], ["updated_at", "2018-12-07 02:34:54.105936"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:54.107514"], ["updated_at", "2018-12-07 02:34:54.107514"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12393], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9271” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9271"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9271], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9271')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12393], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.9271” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$lw/NAV4o47wZqKWOhsrnNOaVLTOFVcJ1ts0kOm0ZTZ00v.bW9wS4a"], ["created_at", "2018-12-07 02:34:54.167194"], ["updated_at", "2018-12-07 02:34:54.167194"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:34:54.178521"], ["last_sign_in_at", "2018-12-07 02:34:54.178521"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:34:54.178961"], ["id", 12394]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12394], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 2ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:34:54.186002"], ["updated_at", "2018-12-07 02:34:54.186002"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:34:54.187383"], ["updated_at", "2018-12-07 02:34:54.187383"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12394], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/9273” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9273"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9273], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9273')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12394], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.9273” for 127.0.0.1 at 2018-12-07 00:34:54 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3WUm7dL94leedmAq.mLKdu2/F7lQeldNuCr8uYLXoKJvhRL5POnKG"], ["created_at", "2018-12-07 02:35:19.511324"], ["updated_at", "2018-12-07 02:35:19.511324"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (117.1ms)

Completed 200 OK in 130ms (Views: 121.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:35:19.668989"], ["last_sign_in_at", "2018-12-07 02:35:19.668989"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:35:19.669505"], ["id", 12395]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12395], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:35:19.692790"], ["updated_at", "2018-12-07 02:35:19.692790"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:35:19.694353"], ["updated_at", "2018-12-07 02:35:19.694353"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12395], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/9275” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9275"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9275], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9275')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12395], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.8ms) Started POST “/appointments.9275” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5nW9XBm5DnhdVztSuv3p4.zMeytAwzUqJSyXXSzLHuleadWs6QdkC"], ["created_at", "2018-12-07 02:35:19.753350"], ["updated_at", "2018-12-07 02:35:19.753350"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:35:19.764952"], ["last_sign_in_at", "2018-12-07 02:35:19.764952"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:35:19.765407"], ["id", 12396]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12396], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:35:19.772655"], ["updated_at", "2018-12-07 02:35:19.772655"], ["tipo_sala", "salaTeste"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:35:19.774132"], ["updated_at", "2018-12-07 02:35:19.774132"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12396], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/9277” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9277"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9277], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9277')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12396], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.9277” for 127.0.0.1 at 2018-12-07 00:35:19 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$tDLrR.fDp0nEDY8l0LIBMO0pR9agbJF8Rj6W/w6LRNPVh2TY4YmLq"], ["created_at", "2018-12-07 02:35:35.676637"], ["updated_at", "2018-12-07 02:35:35.676637"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (120.9ms)

Completed 200 OK in 134ms (Views: 125.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:35:35.838179"], ["last_sign_in_at", "2018-12-07 02:35:35.838179"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:35:35.838675"], ["id", 12397]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12397], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:35:35.861955"], ["updated_at", "2018-12-07 02:35:35.861955"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:35:35.863536"], ["updated_at", "2018-12-07 02:35:35.863536"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12397], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9279” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9279"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9279], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9279')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12397], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.8ms) Started POST “/appointments.9279” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 13ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$4bu6Fmo2rjNWBcveBaSxZujCIxuW6zImxkruJuu8kuiqgg9UVFzOu"], ["created_at", "2018-12-07 02:35:35.926624"], ["updated_at", "2018-12-07 02:35:35.926624"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:35:35.938289"], ["last_sign_in_at", "2018-12-07 02:35:35.938289"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:35:35.938757"], ["id", 12398]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12398], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:35:35.947066"], ["updated_at", "2018-12-07 02:35:35.947066"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:35:35.948567"], ["updated_at", "2018-12-07 02:35:35.948567"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12398], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.5ms) Started GET “/appointments/9281” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9281"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9281], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9281')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12398], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.7ms) Started POST “/appointments.9281” for 127.0.0.1 at 2018-12-07 00:35:35 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 8ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5FIQOC11xfBxSE8M2bN.GesI1VMfSllAy4Uqn4mC64khNW5wPRmiu"], ["created_at", "2018-12-07 02:35:44.979630"], ["updated_at", "2018-12-07 02:35:44.979630"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:35:44 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (9.6ms)
Rendered users/sessions/new.html.erb within layouts/application (104.0ms)

Completed 200 OK in 117ms (Views: 108.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:35:45.123301"], ["last_sign_in_at", "2018-12-07 02:35:45.123301"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:35:45.123800"], ["id", 12399]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12399], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:35:45.146535"], ["updated_at", "2018-12-07 02:35:45.146535"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:35:45.148063"], ["updated_at", "2018-12-07 02:35:45.148063"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12399], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/9283” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9283"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9283], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9283')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12399], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.9283” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12399], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9283 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9283], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12399], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 12399], ["room_id", 9283], ["created_at", "2018-12-07 02:35:45.207902"], ["updated_at", "2018-12-07 02:35:45.207902"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 19ms (ActiveRecord: 2.7ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12399], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$Fucd9jZYXq3jTtl30W1X9ObMzl6OckolyoN/QyQYiiYSfM5Mb2TL2"], ["created_at", "2018-12-07 02:35:45.226252"], ["updated_at", "2018-12-07 02:35:45.226252"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:35:45.255012"], ["last_sign_in_at", "2018-12-07 02:35:45.255012"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:35:45.255573"], ["id", 12400]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 6ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12400], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.9ms)
Rendered layouts/_header-user.html.erb (0.8ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.3ms)

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:35:45.264688"], ["updated_at", "2018-12-07 02:35:45.264688"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:35:45.266275"], ["updated_at", "2018-12-07 02:35:45.266275"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12400], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.5ms) Started GET “/appointments/9285” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9285"}
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9285], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9285')
Rendered appointments/show.html.erb within layouts/application (1.4ms)
User Load (0.8ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12400], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.9ms)

Completed 200 OK in 7ms (Views: 4.5ms | ActiveRecord: 1.3ms) Started POST “/appointments.9285” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12400], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9285 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:35:45 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12400], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (0.9ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$3vEYTqPkOrxpUTX8gD6xo.kRzf/4.FZs4QYLHUbMcCu120xe/1x6C"], ["created_at", "2018-12-07 02:36:00.347958"], ["updated_at", "2018-12-07 02:36:00.347958"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.9ms)
Rendered users/sessions/new.html.erb within layouts/application (121.2ms)

Completed 200 OK in 134ms (Views: 125.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:00.510217"], ["last_sign_in_at", "2018-12-07 02:36:00.510217"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:00.510698"], ["id", 12401]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12401], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:00.534176"], ["updated_at", "2018-12-07 02:36:00.534176"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:00.535791"], ["updated_at", "2018-12-07 02:36:00.535791"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12401], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/9287” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9287"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9287], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9287')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12401], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.1ms | ActiveRecord: 1.9ms) Started POST “/appointments.9287” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 11ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$lhUjRo2x0uZ46nYjYL8iCewzKzOiu6WLiEV3ETVViGgCZehV5MK0K"], ["created_at", "2018-12-07 02:36:00.595577"], ["updated_at", "2018-12-07 02:36:00.595577"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:00.607073"], ["last_sign_in_at", "2018-12-07 02:36:00.607073"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:00.607458"], ["id", 12402]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 4ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12402], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:00.614534"], ["updated_at", "2018-12-07 02:36:00.614534"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:00.615875"], ["updated_at", "2018-12-07 02:36:00.615875"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12402], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started GET “/appointments/9289” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9289"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9289], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9289')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12402], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.9289” for 127.0.0.1 at 2018-12-07 00:36:00 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 5ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$pqZMPvDhnneBiclch5PQPOyfnyQbhMCLzNcejhHXApzwPruG4P5Cu"], ["created_at", "2018-12-07 02:36:22.053039"], ["updated_at", "2018-12-07 02:36:22.053039"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.5ms)
Rendered users/sessions/new.html.erb within layouts/application (115.0ms)

Completed 200 OK in 128ms (Views: 119.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:22.208543"], ["last_sign_in_at", "2018-12-07 02:36:22.208543"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:22.209040"], ["id", 12403]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.0ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12403], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:22.231689"], ["updated_at", "2018-12-07 02:36:22.231689"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:22.233212"], ["updated_at", "2018-12-07 02:36:22.233212"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12403], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (2.0ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/9291” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9291"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9291], ["LIMIT", 1]]

Completed 500 Internal Server Error in 3ms (ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$McRAAPcMbJgNxLwqZtN7PeB8MLsqYEdBCY6cQ3JG0803Z61P2/IF2"], ["created_at", "2018-12-07 02:36:22.262964"], ["updated_at", "2018-12-07 02:36:22.262964"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.9ms)
Rendered users/sessions/new.html.erb within layouts/application (1.6ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:22.274454"], ["last_sign_in_at", "2018-12-07 02:36:22.274454"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:22.274883"], ["id", 12404]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12404], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:22.281903"], ["updated_at", "2018-12-07 02:36:22.281903"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.0ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:22.283031"], ["updated_at", "2018-12-07 02:36:22.283031"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by RoomsController#index as HTML

User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12404], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.7ms | ActiveRecord: 0.6ms) Started GET “/appointments/9293” for 127.0.0.1 at 2018-12-07 00:36:22 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9293"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9293], ["LIMIT", 1]]

Completed 500 Internal Server Error in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$5y8TujG70DxMaeORtIO3LeeqByALH9SSuUoEwjTT0U6qpjnXmU4Bu"], ["created_at", "2018-12-07 02:36:37.865837"], ["updated_at", "2018-12-07 02:36:37.865837"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:37 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (117.1ms)

Completed 200 OK in 130ms (Views: 121.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:38.023801"], ["last_sign_in_at", "2018-12-07 02:36:38.023801"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:38.024327"], ["id", 12405]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12405], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:38.047753"], ["updated_at", "2018-12-07 02:36:38.047753"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:38.049258"], ["updated_at", "2018-12-07 02:36:38.049258"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12405], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.5ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.6ms) Started GET “/appointments/9295” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9295"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9295], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9295')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12405], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.9295” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 1.0ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$9ttASi7gEHdEtdsslZVmROFlCP7iJI6hYX7hrYWdqn1hyHYaNOy.S"], ["created_at", "2018-12-07 02:36:38.103607"], ["updated_at", "2018-12-07 02:36:38.103607"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.7ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:38.115287"], ["last_sign_in_at", "2018-12-07 02:36:38.115287"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:38.115761"], ["id", 12406]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12406], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:38.123057"], ["updated_at", "2018-12-07 02:36:38.123057"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:38.124451"], ["updated_at", "2018-12-07 02:36:38.124451"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12406], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.3ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.8ms | ActiveRecord: 0.4ms) Started GET “/appointments/9297” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9297"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9297], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9297')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12406], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.9297” for 127.0.0.1 at 2018-12-07 00:36:38 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$lZnHe92UAJF2kVlWRrhKsu5SKCMEUvFhAwc9/tHsXYFM2GJrkNciq"], ["created_at", "2018-12-07 02:36:50.788163"], ["updated_at", "2018-12-07 02:36:50.788163"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:50 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.6ms)
Rendered users/sessions/new.html.erb within layouts/application (117.1ms)

Completed 200 OK in 130ms (Views: 121.8ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:50 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:50.945976"], ["last_sign_in_at", "2018-12-07 02:36:50.945976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:50.946463"], ["id", 12407]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:50 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12407], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.0ms)

Completed 200 OK in 5ms (Views: 3.9ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:50.969754"], ["updated_at", "2018-12-07 02:36:50.969754"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:50.971349"], ["updated_at", "2018-12-07 02:36:50.971349"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:50 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12407], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.6ms) Started GET “/appointments/9299” for 127.0.0.1 at 2018-12-07 00:36:50 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9299"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9299], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9299')
Rendered appointments/show.html.erb within layouts/application (5.3ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12407], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.9ms) Started POST “/appointments.9299” for 127.0.0.1 at 2018-12-07 00:36:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 6ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$fj1nlG0l6DNoRvA9IzOzi.xjC0L3iXUmwDq0sBmymQkEY3QX7CZAe"], ["created_at", "2018-12-07 02:36:51.026731"], ["updated_at", "2018-12-07 02:36:51.026731"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:36:51 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:36:51 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:36:51.038452"], ["last_sign_in_at", "2018-12-07 02:36:51.038452"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:36:51.038941"], ["id", 12408]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:36:51 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12408], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:36:51.046275"], ["updated_at", "2018-12-07 02:36:51.046275"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:36:51.047660"], ["updated_at", "2018-12-07 02:36:51.047660"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:36:51 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12408], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.4ms) Started GET “/appointments/9301” for 127.0.0.1 at 2018-12-07 00:36:51 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9301"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9301], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9301')
Rendered appointments/show.html.erb within layouts/application (1.2ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12408], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.8ms) Started POST “/appointments.9301” for 127.0.0.1 at 2018-12-07 00:36:51 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}

Completed 500 Internal Server Error in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.4ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$8rcoX3hE3SxbIZ4OVzO9ouk3LoZnRNQEwFlvsjoBS.dBMOROu/Rq2"], ["created_at", "2018-12-07 02:37:16.520032"], ["updated_at", "2018-12-07 02:37:16.520032"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (117.4ms)

Completed 200 OK in 130ms (Views: 122.1ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:37:16.678077"], ["last_sign_in_at", "2018-12-07 02:37:16.678077"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:37:16.678542"], ["id", 12409]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 0.8ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12409], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.2ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:37:16.701475"], ["updated_at", "2018-12-07 02:37:16.701475"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:37:16.702857"], ["updated_at", "2018-12-07 02:37:16.702857"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12409], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.9ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.9ms | ActiveRecord: 0.5ms) Started GET “/appointments/9303” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9303"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9303], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9303')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12409], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.6ms) Started POST “/appointments.9303” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12409], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9303 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9303], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12409], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 12409], ["room_id", 9303], ["created_at", "2018-12-07 02:37:16.760529"], ["updated_at", "2018-12-07 02:37:16.760529"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.1ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12409], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.3ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.0ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$flTy4.T.jhJpjUvSbqU.GOpzy.AUOtCwCtsYtUuriD4ewdXdkO9RO"], ["created_at", "2018-12-07 02:37:16.776028"], ["updated_at", "2018-12-07 02:37:16.776028"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:37:16.787546"], ["last_sign_in_at", "2018-12-07 02:37:16.787546"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:37:16.788099"], ["id", 12410]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.7ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12410], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.2ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "Pat-45"], ["created_at", "2018-12-07 02:37:16.795656"], ["updated_at", "2018-12-07 02:37:16.795656"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.1ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "PAT-AT"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:37:16.796790"], ["updated_at", "2018-12-07 02:37:16.796790"], ["tipo_sala", "salaTeste"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by RoomsController#index as HTML

User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12410], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.1ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.3ms) Started GET “/appointments/9305” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9305"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9305], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9305')
Rendered appointments/show.html.erb within layouts/application (1.1ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12410], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.6ms) Started POST “/appointments.9305” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12410], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9305 AND appointment_date = NULL AND start_time = '2000-01-01 08:00:00')

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:37:16 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12410], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.0ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.2ms | ActiveRecord: 0.3ms)

 (0.1ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  COMMIT
 (0.1ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$7E6MvQ95yA/eRXn7NFTs0uXmZbcMp/j5HmHa3cVMsKyp8yRvncyC6"], ["created_at", "2018-12-07 02:37:23.446909"], ["updated_at", "2018-12-07 02:37:23.446909"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (10.8ms)
Rendered users/sessions/new.html.erb within layouts/application (116.7ms)

Completed 200 OK in 130ms (Views: 121.4ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.5ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:37:23.604361"], ["last_sign_in_at", "2018-12-07 02:37:23.604361"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:37:23.604882"], ["id", 12411]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 9ms (ActiveRecord: 1.1ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12411], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (1.3ms)
Rendered layouts/_header-user.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:37:23.628852"], ["updated_at", "2018-12-07 02:37:23.628852"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12411], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 6ms (Views: 3.8ms | ActiveRecord: 0.5ms) Started GET “/appointments/9307” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9307"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9307], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.4ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9307')
Rendered appointments/show.html.erb within layouts/application (5.2ms)
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12411], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 15ms (Views: 7.0ms | ActiveRecord: 1.7ms) Started POST “/appointments.9307” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12411], ["LIMIT", 1]]
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9307 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9307], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12411], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 2], ["user_id", 12411], ["room_id", 9307], ["created_at", "2018-12-07 02:37:23.685192"], ["updated_at", "2018-12-07 02:37:23.685192"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 18ms (ActiveRecord: 2.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12411], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.4ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 5ms (Views: 4.0ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  COMMIT
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "usuario@comum.com"], ["encrypted_password", "$2a$04$I.CJDDQhcwg4qUXfqcPEU.fTTAaKdKhVnYI8ned6y9A869RXXleM."], ["created_at", "2018-12-07 02:37:23.701140"], ["updated_at", "2018-12-07 02:37:23.701140"], ["username", "usuario123"], ["registration", "15015296"], ["course", "CIC"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/login” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by Users::SessionsController#new as HTML

Rendering users/sessions/new.html.erb within layouts/application
Rendered layouts/_login-form.html.erb (0.8ms)
Rendered users/sessions/new.html.erb within layouts/application (1.5ms)

Completed 200 OK in 3ms (Views: 2.5ms | ActiveRecord: 0.0ms) Started POST “/login” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by Users::SessionsController#create as HTML

Parameters: {"utf8"=>"✓", "user"=>{"email"=>"usuario@comum.com", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["email", "usuario@comum.com"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "current_sign_in_at" = $1, "last_sign_in_at" = $2, "current_sign_in_ip" = $3, "last_sign_in_ip" = $4, "sign_in_count" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["current_sign_in_at", "2018-12-07 02:37:23.713028"], ["last_sign_in_at", "2018-12-07 02:37:23.713028"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["sign_in_count", 1], ["updated_at", "2018-12-07 02:37:23.713525"], ["id", 12412]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/ Completed 302 Found in 5ms (ActiveRecord: 0.9ms) Started GET “/” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by HomeController#index as HTML

Rendering home/index.html.erb within layouts/home
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12412], ["LIMIT", 1]]
Rendered home/index.html.erb within layouts/home (0.8ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.1ms | ActiveRecord: 0.3ms)

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Pat-45"], ["location", "PAT-AT"], ["created_at", "2018-12-07 02:37:23.722017"], ["updated_at", "2018-12-07 02:37:23.722017"], ["tipo_sala", "Auditório"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
User Load (0.1ms)  SELECT  "users".* FROM "users" ORDER BY "users"."id" DESC LIMIT $1  [["LIMIT", 1]]
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" ORDER BY "rooms"."id" DESC LIMIT $1  [["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9308], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12412], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["user_id", 12412], ["room_id", 9308], ["created_at", "2018-12-07 02:37:23.726004"], ["updated_at", "2018-12-07 02:37:23.726004"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by RoomsController#index as HTML

User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12412], ["LIMIT", 1]]
Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 2.6ms | ActiveRecord: 0.5ms) Started GET “/appointments/9308” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9308"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9308], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9308')
Rendered appointments/show.html.erb within layouts/application (3.1ms)
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12412], ["LIMIT", 1]]
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 7ms (Views: 5.1ms | ActiveRecord: 0.8ms) Started POST “/appointments.9308” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by AppointmentsController#create as

Parameters: {"utf8"=>"✓", "appointment_date"=>"2018-12-08", "start_time"=>"8:00", "commit"=>"Reservar"}
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12412], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9308 AND appointment_date = '2018-12-08 00:00:00' AND start_time = '2000-01-01 08:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9308], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12412], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-12-08 00:00:00"], ["start_time", "08:00:00"], ["status", 1], ["user_id", 12412], ["room_id", 9308], ["created_at", "2018-12-07 02:37:23.755031"], ["updated_at", "2018-12-07 02:37:23.755031"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.6ms) Started GET “/backoffice” for 127.0.0.1 at 2018-12-07 00:37:23 -0200 Processing by Backoffice::DashboardController#index as HTML

Rendering backoffice/dashboard/index.html.erb within layouts/backoffice
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12412], ["LIMIT", 1]]
Rendered backoffice/dashboard/index.html.erb within layouts/backoffice (1.1ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.3ms)

 (0.2ms)  ROLLBACK
 (0.4ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
 (0.2ms)  BEGIN
 (0.2ms)  SAVEPOINT active_record_1
User Exists (0.5ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SVwFAJEfs8hY2cVdwoJ6vetzPt9ucZnDX32Vga66Rc/KEbRrkK0/K"], ["created_at", "2018-12-07 02:37:30.080955"], ["updated_at", "2018-12-07 02:37:30.080955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$xo3YnoNhXQzJrAso6ESgkuWQSdMiv92U4m0Zo0P/YhSmThmlvSaTq"], ["created_at", "2018-12-07 02:37:30.085033"], ["updated_at", "2018-12-07 02:37:30.085033"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.092618"], ["updated_at", "2018-12-07 02:37:30.092618"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9309], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12414], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12414], ["room_id", 9309], ["created_at", "2018-12-07 02:37:30.110962"], ["updated_at", "2018-12-07 02:37:30.110962"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"2"}, "status_old"=>"3", "id"=>"4856"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4856], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9309], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12414], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.7ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.2ms)

UserMailer#status_notification: processed outbound mail in 118.4ms Sent mail to 123@123.com (5.2ms) Date: Fri, 07 Dec 2018 00:37:30 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09dcea3b1ab_5afb2b107762e5f084946@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09dcea3a3c9_5afb2b107762e5f08486";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09dcea3a3c9_5afb2b107762e5f08486 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado pe= lo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09dcea3a3c9_5afb2b107762e5f08486 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi aprovado=

pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09dcea3a3c9_5afb2b107762e5f08486–

Completed 302 Found in 128ms (ActiveRecord: 0.9ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$7cwJBtUGaW.l5v62JsLideoAl3zh6ZKJlQ4w7cSGP/09eeDHvlDcW"], ["created_at", "2018-12-07 02:37:30.248715"], ["updated_at", "2018-12-07 02:37:30.248715"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$4r67v3G7I2zEL7gDn1UTpeR9RLTDKoxH7EYn8ICIuK9Ya/v4jTG.W"], ["created_at", "2018-12-07 02:37:30.251635"], ["updated_at", "2018-12-07 02:37:30.251635"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.252886"], ["updated_at", "2018-12-07 02:37:30.252886"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9310], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12416], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12416], ["room_id", 9310], ["created_at", "2018-12-07 02:37:30.255406"], ["updated_at", "2018-12-07 02:37:30.255406"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"status"=>"3"}, "status_old"=>"2", "id"=>"4857"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4857], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9310], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12416], ["LIMIT", 1]]
SQL (0.3ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", 3], ["updated_at", "2018-12-07 02:37:30.259271"], ["id", 4857]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms Sent mail to 123@123.com (2.1ms) Date: Fri, 07 Dec 2018 00:37:30 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09dcea40440_5afb2b107762e5f085183@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09dcea3fef7_5afb2b107762e5f0850e5";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09dcea3fef7_5afb2b107762e5f0850e5 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09dcea3fef7_5afb2b107762e5f0850e5 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09dcea3fef7_5afb2b107762e5f0850e5–

Completed 302 Found in 8ms (ActiveRecord: 1.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FpjlqARLkZZ/Zip5qFYGa.0cGEFaonBmk821uaOFkHzSvaF3dCzie"], ["created_at", "2018-12-07 02:37:30.268554"], ["updated_at", "2018-12-07 02:37:30.268554"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.ACBTdAaZBKNRcFfJitGwuHj6CtDyNij80/yMO0pX/Wdq0OIzy8de"], ["created_at", "2018-12-07 02:37:30.271955"], ["updated_at", "2018-12-07 02:37:30.271955"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.273589"], ["updated_at", "2018-12-07 02:37:30.273589"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.3ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9311], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12418], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12418], ["room_id", 9311], ["created_at", "2018-12-07 02:37:30.277231"], ["updated_at", "2018-12-07 02:37:30.277231"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.7ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$SPgJ/scuJ//rJoAQ8UTVSu/m.xMtEUuup8DIw2C5XsCnJBYXa9376"], ["created_at", "2018-12-07 02:37:30.284178"], ["updated_at", "2018-12-07 02:37:30.284178"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$Z/dkyc6PMuHQw.Gyn9UADOqWSVJHaBwsxMy3cq7BmZZiZVz90vNwy"], ["created_at", "2018-12-07 02:37:30.287405"], ["updated_at", "2018-12-07 02:37:30.287405"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.288934"], ["updated_at", "2018-12-07 02:37:30.288934"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9312], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12420], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12420], ["room_id", 9312], ["created_at", "2018-12-07 02:37:30.291958"], ["updated_at", "2018-12-07 02:37:30.291958"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4859], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.2ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$VaX./WUbXWiz2eptUjt5GeqeEzjA8EEJAKeyhRzU4gjqD9/JW2CMK"], ["created_at", "2018-12-07 02:37:30.297185"], ["updated_at", "2018-12-07 02:37:30.297185"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12421"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "reset_digest" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["reset_digest", "L8SdNZ2m8xS7ZXLXZGdVEg"], ["updated_at", "2018-12-07 02:37:30.300408"], ["id", 12421]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "updated_at" = $1, "reset_sent_at" = $2 WHERE "users"."id" = $3  [["updated_at", "2018-12-07 02:37:30.301945"], ["reset_sent_at", "2018-12-07 02:37:30.301604"], ["id", 12421]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.6ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.3ms)

UserMailer#password_reset: processed outbound mail in 5.3ms Sent mail to teste@unb.com.br (2.5ms) Date: Fri, 07 Dec 2018 00:37:30 -0200 From: noreply@example.com To: teste@unb.com.br Message-ID: <5c09dcea4b7be_5afb2b107762e5f085447@diogo-340XAA-350XAA-550XAA.mail> Subject: =?UTF-8?Q?Recupera=C3=A7=C3=A3o_de_senha?= Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09dcea4b1c6_5afb2b107762e5f0853e1";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09dcea4b1c6_5afb2b107762e5f0853e1 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Para recadastrar sua senha clique no link abaixo:=0D

0D

localhost:3000/password_resets/L8SdNZ2m8xS7ZXLXZGdVEg/edit?email=3D= teste%40unb.com.br=0D

0D

Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D

—-==_mimepart_5c09dcea4b1c6_5afb2b107762e5f0853e1 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Recadastramento de Senha</h1>=0D

0D

<p>Para recadastrar sua senha clique no link abaixo:</p>=0D

0D

<a href=3D“localhost:3000/password_resets/L8SdNZ2m8xS7ZXLXZGdVEg/e= dit?email=3Dteste%40unb.com.br”>Recadastrar senha</a>=0D

0D

<p>=0D Se voc=C3=AA n=C3=A3o solicitou este recadastramento de senha, por favor = desconsidere este email.=0D </p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09dcea4b1c6_5afb2b107762e5f0853e1–

Redirected to test.host/login Completed 302 Found in 12ms (ActiveRecord: 1.1ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$VWOjxjsseV9FIKlcfJsY7O/Dw30O1LMvBDytkrWx/0aZay3q3U78u"], ["created_at", "2018-12-07 02:37:30.314937"], ["updated_at", "2018-12-07 02:37:30.314937"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.8ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste@unb.com.br"], ["encrypted_password", "$2a$04$lvePRygrw3LtlftbnD.fPepxPPGOsQE3jCHL0tWNGxYbrBKfw7kPa"], ["created_at", "2018-12-07 02:37:30.322227"], ["updated_at", "2018-12-07 02:37:30.322227"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12423"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "encrypted_password" = $1, "updated_at" = $2 WHERE "users"."id" = $3  [["encrypted_password", "$2a$04$lZjMY823SeOBI.9/jWOYYuVnpPYSMgsUD3.Bxlmdx5wOX1zUnCMn."], ["updated_at", "2018-12-07 02:37:30.326228"], ["id", 12423]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to test.host/login Completed 302 Found in 4ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$FLbXfcZcYS2hQSDpFbkC7O40vWoVP.ToMCGkTgz/0ce1dMXvIcRTu"], ["created_at", "2018-12-07 02:37:30.330969"], ["updated_at", "2018-12-07 02:37:30.330969"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#create as HTML

Parameters: {"password_reset"=>"[FILTERED]", "user"=>"12424"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "naoexiste@unb.br"], ["LIMIT", 1]]
Rendering password_resets/new.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/new.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$nsIHoUiFMKwO3lgWOUaWiO57.dZVV0eT6.35xLZdweCAf0HV5evoi"], ["created_at", "2018-12-07 02:37:30.338758"], ["updated_at", "2018-12-07 02:37:30.338758"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12425"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 8ms (Views: 0.9ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$dY07xRQnHUsDG8er5sCEgOv2Aog2.Se4qm/3hGYMEDL219UTsCA1G"], ["created_at", "2018-12-07 02:37:30.352295"], ["updated_at", "2018-12-07 02:37:30.352295"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12426"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.2ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 3ms (Views: 0.6ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "teste2@unb.com.br"], ["encrypted_password", "$2a$04$xUf4zIolP2h/KQXVZR1YheOl/m7EdyADhEg0SwBxj1r0TbDzr6yti"], ["created_at", "2018-12-07 02:37:30.360684"], ["updated_at", "2018-12-07 02:37:30.360684"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by PasswordResetsController#update as HTML

Parameters: {"email"=>"teste2@unb.com.br", "user"=>{"password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "id"=>"12427"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "teste2@unb.com.br"], ["LIMIT", 1]]
Rendering password_resets/edit.html.erb within layouts/application
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.
Rendered password_resets/edit.html.erb within layouts/application (0.1ms)
Template rendering was prevented by rspec-rails. Use `render_views` to verify rendered view contents if necessary.

Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$l1o6Eemey7z/WiQXcYKzG.YozWIYEdBuf2gLqSafLi55Okk/qzpsi"], ["created_at", "2018-12-07 02:37:30.368198"], ["updated_at", "2018-12-07 02:37:30.368198"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.2ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 2.0ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Oaje5erfKMnevHBOB6wO3.cUcsQ1YbalQOoIUPk6NfBTyP4FriGwO"], ["created_at", "2018-12-07 02:37:30.375307"], ["updated_at", "2018-12-07 02:37:30.375307"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/password_reset.html.erb within layouts/mailer
Rendered user_mailer/password_reset.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/password_reset.text.erb within layouts/mailer
Rendered user_mailer/password_reset.text.erb within layouts/mailer (0.1ms)

UserMailer#password_reset: processed outbound mail in 1.7ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$2HjgiFWQlx6yeGg7RLAObudJ22QXzu8lA5.NPuDuigAr/3v1yJ3m2"], ["created_at", "2018-12-07 02:37:30.382106"], ["updated_at", "2018-12-07 02:37:30.382106"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.383645"], ["updated_at", "2018-12-07 02:37:30.383645"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9313], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12430], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12430], ["room_id", 9313], ["created_at", "2018-12-07 02:37:30.386419"], ["updated_at", "2018-12-07 02:37:30.386419"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.6ms

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$qHEQKO.luqjmsBWI0Mwuk.Vsdvw153cGosi6GVvL2it9cHILMqYl6"], ["created_at", "2018-12-07 02:37:30.392503"], ["updated_at", "2018-12-07 02:37:30.392503"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.394031"], ["updated_at", "2018-12-07 02:37:30.394031"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9314], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12431], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12431], ["room_id", 9314], ["created_at", "2018-12-07 02:37:30.396968"], ["updated_at", "2018-12-07 02:37:30.396968"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$1FLSje6Sxuv7gBJH3EE5NOYufVdHOJEeYgdsRlLmov5paJgiH/kdq"], ["created_at", "2018-12-07 02:37:30.419695"], ["updated_at", "2018-12-07 02:37:30.419695"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.421273"], ["updated_at", "2018-12-07 02:37:30.421273"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.428119"], ["last_sign_in_at", "2018-12-07 02:37:30.428119"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.428579"], ["id", 12432]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9315"}
 (0.4ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9315 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9315], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12432], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12432], ["room_id", 9315], ["created_at", "2018-12-07 02:37:30.436734"], ["updated_at", "2018-12-07 02:37:30.436734"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 9315], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ejb8gTm35AM8tWjBf5Wx4..C4k1ptaH3m6Pf8paTiQNQOO9nuWYzK"], ["created_at", "2018-12-07 02:37:30.443041"], ["updated_at", "2018-12-07 02:37:30.443041"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.444564"], ["updated_at", "2018-12-07 02:37:30.444564"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.446565"], ["last_sign_in_at", "2018-12-07 02:37:30.446565"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.446985"], ["id", 12433]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9316"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9316 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9316], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12433], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12433], ["room_id", 9316], ["created_at", "2018-12-07 02:37:30.451740"], ["updated_at", "2018-12-07 02:37:30.451740"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.3ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NvpvnbLc8Dcr1exav/DJRO5jbEzTW9IgogIpSctaR42XWex380oCG"], ["created_at", "2018-12-07 02:37:30.457036"], ["updated_at", "2018-12-07 02:37:30.457036"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.458556"], ["updated_at", "2018-12-07 02:37:30.458556"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.4ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.460959"], ["last_sign_in_at", "2018-12-07 02:37:30.460959"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.461466"], ["id", 12434]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9317", "user_id"=>"12434"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9317 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9317], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12434], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12434], ["room_id", 9317], ["created_at", "2018-12-07 02:37:30.467102"], ["updated_at", "2018-12-07 02:37:30.467102"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.4ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9317", "user_id"=>"12434"}
User Load (0.4ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12434], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9317 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9317], ["LIMIT", 1]]
User Load (0.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12434], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12434], ["room_id", 9317], ["created_at", "2018-12-07 02:37:30.474061"], ["updated_at", "2018-12-07 02:37:30.474061"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.7ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$SiCtKSojBmSgk6.zt0FN2ucGaSwmIFoCCjzSpTPsrypiZ9KVam8vS"], ["created_at", "2018-12-07 02:37:30.479375"], ["updated_at", "2018-12-07 02:37:30.479375"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.480907"], ["updated_at", "2018-12-07 02:37:30.480907"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.483230"], ["last_sign_in_at", "2018-12-07 02:37:30.483230"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.483650"], ["id", 12435]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9318", "user_id"=>"12435"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9318 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.2ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9318], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12435], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12435], ["room_id", 9318], ["created_at", "2018-12-07 02:37:30.488273"], ["updated_at", "2018-12-07 02:37:30.488273"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.2ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9318", "user_id"=>"12435"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12435], ["LIMIT", 1]]
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9318 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9318], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12435], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12435], ["room_id", 9318], ["created_at", "2018-12-07 02:37:30.494483"], ["updated_at", "2018-12-07 02:37:30.494483"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.5ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 9318], ["user_id", 12435], ["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$9.NiRvrZeWWxekx9MXuFkOta1Li8Lte3n/qLPDAgdaF2.hQcVt3sK"], ["created_at", "2018-12-07 02:37:30.500993"], ["updated_at", "2018-12-07 02:37:30.500993"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.502555"], ["updated_at", "2018-12-07 02:37:30.502555"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.504633"], ["last_sign_in_at", "2018-12-07 02:37:30.504633"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.505005"], ["id", 12436]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9319", "user_id"=>"12436"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9319 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9319], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12436], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12436], ["room_id", 9319], ["created_at", "2018-12-07 02:37:30.509391"], ["updated_at", "2018-12-07 02:37:30.509391"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 4ms (ActiveRecord: 1.0ms) Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200 Processing by AppointmentsController#create as

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2", "room_id"=>"9319", "user_id"=>"12436"}
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2  [["id", 12436], ["LIMIT", 1]]
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = 9319 AND appointment_date = '2018-06-22 00:00:00' AND start_time = '2000-01-01 10:00:00')
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9319], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12436], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 1], ["user_id", 12436], ["room_id", 9319], ["created_at", "2018-12-07 02:37:30.515290"], ["updated_at", "2018-12-07 02:37:30.515290"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 5ms (ActiveRecord: 1.2ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 AND "appointments"."user_id" = $3 AND "appointments"."status" = $4 LIMIT $5  [["appointment_date", "22-06-2018"], ["room_id", 9319], ["user_id", 12436], ["status", 1], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$zuLFnQP.MDWHlnfdWVlidePndQZT1tPG.Cq2dCEQoqrJ4lAeKN9vW"], ["created_at", "2018-12-07 02:37:30.520987"], ["updated_at", "2018-12-07 02:37:30.520987"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.522488"], ["updated_at", "2018-12-07 02:37:30.522488"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.524441"], ["last_sign_in_at", "2018-12-07 02:37:30.524441"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.524853"], ["id", 12437]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9320"}
 (0.3ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.3ms)

Appointment Load (0.3ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 AND "appointments"."room_id" = $2 LIMIT $3  [["appointment_date", "22-06-2018"], ["room_id", 9320], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$.gYTWDrVX2WKvvACy9h0muQfAWXA03QMELjPkYQ1Wpp/7O43IoloS"], ["created_at", "2018-12-07 02:37:30.537292"], ["updated_at", "2018-12-07 02:37:30.537292"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.539062"], ["updated_at", "2018-12-07 02:37:30.539062"], ["tipo_sala", "palestras"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Started POST “/appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.541008"], ["last_sign_in_at", "2018-12-07 02:37:30.541008"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.541454"], ["id", 12438]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#create as HTML

Parameters: {"appointment_date"=>"22-06-2018", "start_time"=>"", "status"=>"2", "room_id"=>"9321"}
 (0.2ms)  SELECT COUNT(*) FROM "appointments" WHERE (room_id = NULL AND appointment_date = '2018-06-22 00:00:00' AND start_time = NULL)

Redirected to www.example.com/backoffice Completed 302 Found in 1ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$EBGy2RFBKWrKCgJK8J.ry.sGy13WfwsPPpgwDzxyuF0gLZmwnvg8y"], ["created_at", "2018-12-07 02:37:30.548428"], ["updated_at", "2018-12-07 02:37:30.548428"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.549945"], ["updated_at", "2018-12-07 02:37:30.549945"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9322], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12439], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12439], ["room_id", 9322], ["created_at", "2018-12-07 02:37:30.553054"], ["updated_at", "2018-12-07 02:37:30.553054"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/9322” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.554598"], ["last_sign_in_at", "2018-12-07 02:37:30.554598"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.554974"], ["id", 12439]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#show as HTML

Parameters: {"id"=>"9322"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9322], ["LIMIT", 1]]
Rendering appointments/show.html.erb within layouts/application
Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date >= '2018-12-03' AND room_id = '9322')
Rendered appointments/show.html.erb within layouts/application (6.5ms)
Rendered layouts/_header-user.html.erb (1.2ms)

Completed 200 OK in 204ms (Views: 202.2ms | ActiveRecord: 0.5ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$NMjBFLp2WQZvt71g2eGHA.mYzsytDcaRHnRekrHXix3SzZPjZjr86"], ["created_at", "2018-12-07 02:37:30.765693"], ["updated_at", "2018-12-07 02:37:30.765693"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.767440"], ["updated_at", "2018-12-07 02:37:30.767440"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9323], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12440], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12440], ["room_id", 9323], ["created_at", "2018-12-07 02:37:30.770340"], ["updated_at", "2018-12-07 02:37:30.770340"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/appointments/4871/edit” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.771900"], ["last_sign_in_at", "2018-12-07 02:37:30.771900"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.772277"], ["id", 12440]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#edit as HTML

Parameters: {"id"=>"4871"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4871], ["LIMIT", 1]]
Rendering appointments/edit.html.erb within layouts/application
Rendered appointments/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$PoES.NvKBTvysLKq6flzcOBn7K3ir0UmKvCymUdyBzxS15HYyGyea"], ["created_at", "2018-12-07 02:37:30.783686"], ["updated_at", "2018-12-07 02:37:30.783686"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/all-appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.785345"], ["last_sign_in_at", "2018-12-07 02:37:30.785345"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.785762"], ["id", 12441]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#all_appointments as HTML

Rendering appointments/all_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments"
Rendered appointments/all_appointments.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.5ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$BA6XNIv2Pn0n6M7E5NXMWeOEtKrcehwqe3QwvucJv2IHpOiDq5f5K"], ["created_at", "2018-12-07 02:37:30.796342"], ["updated_at", "2018-12-07 02:37:30.796342"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.798002"], ["updated_at", "2018-12-07 02:37:30.798002"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9324], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12442], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12442], ["room_id", 9324], ["created_at", "2018-12-07 02:37:30.800989"], ["updated_at", "2018-12-07 02:37:30.800989"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9324], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12442], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12442], ["room_id", 9324], ["created_at", "2018-12-07 02:37:30.803759"], ["updated_at", "2018-12-07 02:37:30.803759"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.805260"], ["last_sign_in_at", "2018-12-07 02:37:30.805260"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.805625"], ["id", 12442]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12442]]
Rendered appointments/my_appointments.html.erb within layouts/application (2.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 3.9ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$MRV/Je/vyK2EK9E/dd5eoelcDVYkNo4AT8y7BfW0rzkmdaENEa7ru"], ["created_at", "2018-12-07 02:37:30.820104"], ["updated_at", "2018-12-07 02:37:30.820104"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.821876"], ["updated_at", "2018-12-07 02:37:30.821876"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9325], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12443], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12443], ["room_id", 9325], ["created_at", "2018-12-07 02:37:30.825409"], ["updated_at", "2018-12-07 02:37:30.825409"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9325], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12443], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12443], ["room_id", 9325], ["created_at", "2018-12-07 02:37:30.828495"], ["updated_at", "2018-12-07 02:37:30.828495"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/my-appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.830041"], ["last_sign_in_at", "2018-12-07 02:37:30.830041"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.830406"], ["id", 12443]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#my_appointments as HTML

Rendering appointments/my_appointments.html.erb within layouts/application
Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE "appointments"."user_id" = $1  [["user_id", 12443]]
Rendered appointments/my_appointments.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 3.0ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$dDxOIqaHrd7gJL90j2feVu5nC4j42PFIU3vkSwhLVeVJypZC6asAK"], ["created_at", "2018-12-07 02:37:30.839834"], ["updated_at", "2018-12-07 02:37:30.839834"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.841479"], ["updated_at", "2018-12-07 02:37:30.841479"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9326], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12444], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12444], ["room_id", 9326], ["created_at", "2018-12-07 02:37:30.844404"], ["updated_at", "2018-12-07 02:37:30.844404"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/appointments/4876” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.845943"], ["last_sign_in_at", "2018-12-07 02:37:30.845943"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.846292"], ["id", 12444]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#destroy as HTML

Parameters: {"id"=>"4876"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4876], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "appointments" WHERE "appointments"."id" = $1  [["id", 4876]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/my-appointments Completed 302 Found in 2ms (ActiveRecord: 0.7ms)

Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."appointment_date" = $1 LIMIT $2  [["appointment_date", "22-06-2018"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$fKqkgkHEoB28Mx6nT7mGQuA8ECeOxGntKrbbD/J9.1lf2h7hOzRhm"], ["created_at", "2018-12-07 02:37:30.855202"], ["updated_at", "2018-12-07 02:37:30.855202"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.857227"], ["updated_at", "2018-12-07 02:37:30.857227"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$pT1wCwkbjim4bdbEIS3SkOm5m/cOdG1/YpAr4KbHtPjId5Y4FAGOW"], ["created_at", "2018-12-07 02:37:30.860641"], ["updated_at", "2018-12-07 02:37:30.860641"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9327], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12446], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12446], ["room_id", 9327], ["created_at", "2018-12-07 02:37:30.863795"], ["updated_at", "2018-12-07 02:37:30.863795"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4877” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.865680"], ["last_sign_in_at", "2018-12-07 02:37:30.865680"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.866039"], ["id", 12445]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4877"}
Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4877], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9327], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12446], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", 2], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$YhhUXWK5LtNaciOvXEh3pu5yF8xogkhSbl5kbdV9nIr00fq3YtHk2"], ["created_at", "2018-12-07 02:37:30.875542"], ["updated_at", "2018-12-07 02:37:30.875542"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.877081"], ["updated_at", "2018-12-07 02:37:30.877081"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$KjN.eEDpQe80ttSJo5DDG.0RVht0ugmPky8sfnWusyHH5tthnnZB6"], ["created_at", "2018-12-07 02:37:30.880140"], ["updated_at", "2018-12-07 02:37:30.880140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9328], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12448], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12448], ["room_id", 9328], ["created_at", "2018-12-07 02:37:30.882984"], ["updated_at", "2018-12-07 02:37:30.882984"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4878” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.884839"], ["last_sign_in_at", "2018-12-07 02:37:30.884839"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.885285"], ["id", 12447]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>"2"}, "id"=>"4878"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4878], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9328], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12448], ["LIMIT", 1]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments Completed 302 Found in 3ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XqerS8HX2UKppSTP0Ep9O.GU5tFkPP7urVMjLs1ktYeOv/EpwmJwq"], ["created_at", "2018-12-07 02:37:30.894683"], ["updated_at", "2018-12-07 02:37:30.894683"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.896301"], ["updated_at", "2018-12-07 02:37:30.896301"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$3CsiFlyXf9bQ/WKXjXMccecIZSR/0hGhiH0I.s5sMdYzrjh9a5Bou"], ["created_at", "2018-12-07 02:37:30.899322"], ["updated_at", "2018-12-07 02:37:30.899322"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9329], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12450], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12450], ["room_id", 9329], ["created_at", "2018-12-07 02:37:30.902154"], ["updated_at", "2018-12-07 02:37:30.902154"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/appointments/4879” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.904004"], ["last_sign_in_at", "2018-12-07 02:37:30.904004"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.904379"], ["id", 12449]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#update as HTML

Parameters: {"appointment"=>{"appointment_date"=>"22-06-2018", "start_time"=>"10:00:00", "status"=>""}, "id"=>"4879"}
Appointment Load (0.1ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."id" = $1 LIMIT $2  [["id", 4879], ["LIMIT", 1]]

Unpermitted parameters: :appointment_date, :start_time

 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9329], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12450], ["LIMIT", 1]]
SQL (0.2ms)  UPDATE "appointments" SET "status" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["status", nil], ["updated_at", "2018-12-07 02:37:30.908365"], ["id", 4879]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/all-appointments

Rendering user_mailer/status_notification.html.erb within layouts/mailer
Rendered user_mailer/status_notification.html.erb within layouts/mailer (0.1ms)
Rendering user_mailer/status_notification.text.erb within layouts/mailer
Rendered user_mailer/status_notification.text.erb within layouts/mailer (0.0ms)

UserMailer#status_notification: processed outbound mail in 1.8ms Sent mail to 123@123.com (2.3ms) Date: Fri, 07 Dec 2018 00:37:30 -0200 From: noreply@example.com To: 123@123.com Message-ID: <5c09dceadeb19_5afb2b107762e5f0861a7@diogo-340XAA-350XAA-550XAA.mail> Subject: Status da sua reserva Mime-Version: 1.0 Content-Type: multipart/alternative;

boundary="--==_mimepart_5c09dceade56d_5afb2b107762e5f086027";
charset=UTF-8

Content-Transfer-Encoding: 7bit

—-==_mimepart_5c09dceade56d_5afb2b107762e5f086027 Content-Type: text/plain;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

Notifica=C3=A7=C3=A3o de Reserva=0D

0D

Usu=C3=A1rio testesilva=0D

0D

Informamos que seu pedido de reserva para a sala Fake-123 foi reprovado p= elo administrador do sistema.=0D

0D

Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.=0D

—-==_mimepart_5c09dceade56d_5afb2b107762e5f086027 Content-Type: text/html;

charset=UTF-8

Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>=0D <html>=0D

<head>=0D
  <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dutf=

-8“ />=0D

  <style>=0D
    /* Email styles need to be inline */=0D
  </style>=0D
</head>=0D

0D

<body>=0D
  <h1>Notifica=C3=A7=C3=A3o de Reserva</h1>=0D

0D

<p>Usu=C3=A1rio testesilva</p>=0D

0D

<p>Informamos que seu pedido de reserva para a sala Fake-123 foi reprovad= o pelo administrador do sistema.</p>=0D

0D

<p>Atenciosamente, =0D Equipe do Reserva-de-Salas UnB.</p>=0D

</body>=0D

</html>=0D

—-==_mimepart_5c09dceade56d_5afb2b107762e5f086027–

Completed 302 Found in 8ms (ActiveRecord: 0.8ms)

Appointment Load (0.2ms)  SELECT  "appointments".* FROM "appointments" WHERE "appointments"."status" = $1 LIMIT $2  [["status", nil], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.3ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$3NFY7wfEij/AUHCUxADYxefmZdHiQAK/XQ9CO9M6cFRf4HaxfF7BC"], ["created_at", "2018-12-07 02:37:30.918819"], ["updated_at", "2018-12-07 02:37:30.918819"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.920608"], ["updated_at", "2018-12-07 02:37:30.920608"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ckXprv7VwswLOvvmphEWvugQMKXw9cgZBjiyTfE2LN7DjPKD/gAPa"], ["created_at", "2018-12-07 02:37:30.923946"], ["updated_at", "2018-12-07 02:37:30.923946"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9330], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12452], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12452], ["room_id", 9330], ["created_at", "2018-12-07 02:37:30.926976"], ["updated_at", "2018-12-07 02:37:30.926976"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:37:30.928326"], ["id", 4880]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9330], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12452], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12452], ["room_id", 9330], ["created_at", "2018-12-07 02:37:30.930953"], ["updated_at", "2018-12-07 02:37:30.930953"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:37:30.932229"], ["id", 4881]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.933621"], ["last_sign_in_at", "2018-12-07 02:37:30.933621"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.933992"], ["id", 12451]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.3ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12452], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9330], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12452], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9330], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (3.1ms)
Rendered layouts/_header-admin.html.erb (1.1ms)

Completed 200 OK in 7ms (Views: 5.3ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TINE0eQWnQoF/wVIs7ZieOIzugrXxVaW7YRYOp3LIgIJ3DRq4lnVG"], ["created_at", "2018-12-07 02:37:30.946835"], ["updated_at", "2018-12-07 02:37:30.946835"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:30.948511"], ["updated_at", "2018-12-07 02:37:30.948511"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "123@123.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "123@123.com"], ["encrypted_password", "$2a$04$ThF8Ikz61HGnA4SeGHpnl.MrLH9Fl1g3qeNM5YCD6jAJM5lM9KcnS"], ["created_at", "2018-12-07 02:37:30.952117"], ["updated_at", "2018-12-07 02:37:30.952117"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9331], ["LIMIT", 1]]
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12454], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12454], ["room_id", 9331], ["created_at", "2018-12-07 02:37:30.955235"], ["updated_at", "2018-12-07 02:37:30.955235"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-03 00:00:00"], ["updated_at", "2018-12-07 02:37:30.956724"], ["id", 4882]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9331], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12454], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12454], ["room_id", 9331], ["created_at", "2018-12-07 02:37:30.959380"], ["updated_at", "2018-12-07 02:37:30.959380"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "appointments" SET "appointment_date" = $1, "updated_at" = $2 WHERE "appointments"."id" = $3  [["appointment_date", "2018-12-09 00:00:00"], ["updated_at", "2018-12-07 02:37:30.960672"], ["id", 4883]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/weeks-appointments” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.962078"], ["last_sign_in_at", "2018-12-07 02:37:30.962078"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.962433"], ["id", 12453]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by AppointmentsController#weeks_appointments as HTML

Appointment Load (0.2ms)  SELECT "appointments".* FROM "appointments" WHERE (appointment_date BETWEEN '2018-12-03' AND '2018-12-09')
Rendering appointments/weeks_appointments.html.erb within layouts/application
User Load (0.2ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12454], ["LIMIT", 1]]
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9331], ["LIMIT", 1]]
CACHE User Load (0.0ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12454], ["LIMIT", 1]]
CACHE Room Load (0.0ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9331], ["LIMIT", 1]]
Rendered appointments/weeks_appointments.html.erb within layouts/application (2.7ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.7ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$aepz.ZBndhc7WByAd3qW1eOkfX3NG3Z392C5yK1mh3UcL5D8UX/7u"], ["created_at", "2018-12-07 02:37:30.974663"], ["updated_at", "2018-12-07 02:37:30.974663"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.976313"], ["last_sign_in_at", "2018-12-07 02:37:30.976313"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.976652"], ["id", 12455]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML

Rendering rooms/new.html.erb within layouts/application
Rendered rooms/new.html.erb within layouts/application (2.8ms)
Rendered layouts/_header-admin.html.erb (0.7ms)

Completed 200 OK in 6ms (Views: 5.4ms | ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$A/bZO007cFrZOQINI1F.Aehcs2Jf8gyPxwAwakDZmQziRj5yGATR2"], ["created_at", "2018-12-07 02:37:30.990140"], ["updated_at", "2018-12-07 02:37:30.990140"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/new” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.991845"], ["last_sign_in_at", "2018-12-07 02:37:30.991845"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:30.992188"], ["id", 12456]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#new as HTML Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$yqN4urRD18vbMHDNBFMOve5iD7kYbYmcxSuSpnyZSl.rrYVIDqBoe"], ["created_at", "2018-12-07 02:37:30.998080"], ["updated_at", "2018-12-07 02:37:30.998080"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:37:30 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:30.999685"], ["last_sign_in_at", "2018-12-07 02:37:30.999685"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.000026"], ["id", 12457]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.6ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$TzofFRcoqXgjxl6KYqICaeyAlRTcwggLB9gcoG0RRzpDfCEavR7pK"], ["created_at", "2018-12-07 02:37:31.009357"], ["updated_at", "2018-12-07 02:37:31.009357"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.011207"], ["last_sign_in_at", "2018-12-07 02:37:31.011207"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.011587"], ["id", 12458]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#index as HTML

Rendering rooms/index.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/index.html.erb within layouts/application (1.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.6ms | ActiveRecord: 0.2ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN

Started GET “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200 Processing by RoomsController#index as HTML Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 3ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xPPTd1UqdgkRSUel.RwzLuoZLJ8AsRrOeEh4hUTqUHBVmfGc79./i"], ["created_at", "2018-12-07 02:37:31.026233"], ["updated_at", "2018-12-07 02:37:31.026233"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.027816"], ["updated_at", "2018-12-07 02:37:31.027816"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9332” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.029292"], ["last_sign_in_at", "2018-12-07 02:37:31.029292"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.029708"], ["id", 12459]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9332"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9332], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.3ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.3ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$qMlMa2BnVIeiqEdCo3hh9ukIGnUspndf6sIP24/nRdxiXUq5xERre"], ["created_at", "2018-12-07 02:37:31.038568"], ["updated_at", "2018-12-07 02:37:31.038568"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.040090"], ["updated_at", "2018-12-07 02:37:31.040090"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9333” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.041575"], ["last_sign_in_at", "2018-12-07 02:37:31.041575"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.042030"], ["id", 12460]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#show as HTML

Parameters: {"id"=>"9333"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9333], ["LIMIT", 1]]
Rendering rooms/show.html.erb within layouts/application
Rendered rooms/show.html.erb within layouts/application (0.1ms)
Rendered layouts/_header-user.html.erb (0.7ms)

Completed 200 OK in 3ms (Views: 2.0ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.049456"], ["updated_at", "2018-12-07 02:37:31.049456"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9334” for 127.0.0.1 at 2018-12-07 00:37:31 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9334"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$IofzcUM36JvHRxj/dvt.BetfnUlRDF7Dh5Q8tsE8C03Y/Ay3kA3Ii"], ["created_at", "2018-12-07 02:37:31.055619"], ["updated_at", "2018-12-07 02:37:31.055619"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.057216"], ["updated_at", "2018-12-07 02:37:31.057216"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9335” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.058637"], ["last_sign_in_at", "2018-12-07 02:37:31.058637"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.059050"], ["id", 12461]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9335"}
Rendering rooms/filtro.html.erb within layouts/application
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Rendered rooms/filtro.html.erb within layouts/application (1.7ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.066861"], ["updated_at", "2018-12-07 02:37:31.066861"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/filtro/9336” for 127.0.0.1 at 2018-12-07 00:37:31 -0200 Processing by RoomsController#filtro as HTML

Parameters: {"id"=>"9336"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4eYcT9yM2uTBQoCg6OLBmOIhwk4ovoEJ3A/EKhxNMHDUSMt5XL01m"], ["created_at", "2018-12-07 02:37:31.072931"], ["updated_at", "2018-12-07 02:37:31.072931"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.074826"], ["updated_at", "2018-12-07 02:37:31.074826"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9337/edit” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.076976"], ["last_sign_in_at", "2018-12-07 02:37:31.076976"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.077435"], ["id", 12462]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9337"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9337], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (2.1ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.8ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$/P.RDnfeThYGjQrNzQu8qun.mShHLXOJWCPkkuvB1aXUv1plrmIAi"], ["created_at", "2018-12-07 02:37:31.088096"], ["updated_at", "2018-12-07 02:37:31.088096"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.089656"], ["updated_at", "2018-12-07 02:37:31.089656"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9338/edit” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.091061"], ["last_sign_in_at", "2018-12-07 02:37:31.091061"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.091445"], ["id", 12463]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#edit as HTML

Parameters: {"id"=>"9338"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9338], ["LIMIT", 1]]
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 4ms (Views: 3.1ms | ActiveRecord: 0.1ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.098817"], ["updated_at", "2018-12-07 02:37:31.098817"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/rooms/9339” for 127.0.0.1 at 2018-12-07 00:37:31 -0200 Processing by RoomsController#show as HTML

Parameters: {"id"=>"9339"}

Redirected to www.example.com/ Filter chain halted as :signed_in? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$XR8wSVQZrUMwUj.3mGb/quzDI7sP5oPxwPxuDhi0SJH9e6Lk8uQau"], ["created_at", "2018-12-07 02:37:31.104970"], ["updated_at", "2018-12-07 02:37:31.104970"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.107644"], ["last_sign_in_at", "2018-12-07 02:37:31.107644"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.108131"], ["id", 12464]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.110910"], ["updated_at", "2018-12-07 02:37:31.110910"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZRSWA7fM7Fonxu7ZCSxxHeUqHNG0nPHmIAXIU0Kr4PF/nTv1SgbD."], ["created_at", "2018-12-07 02:37:31.116821"], ["updated_at", "2018-12-07 02:37:31.116821"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.118867"], ["last_sign_in_at", "2018-12-07 02:37:31.118867"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.119223"], ["id", 12465]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"Fake-123", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.121541"], ["updated_at", "2018-12-07 02:37:31.121541"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$mMR..iGKkAbVW8fAA6cSieDXEa5gFxl2KBa6ukRN9LFMEWC4Tr1D2"], ["created_at", "2018-12-07 02:37:31.126535"], ["updated_at", "2018-12-07 02:37:31.126535"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.128481"], ["last_sign_in_at", "2018-12-07 02:37:31.128481"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.128818"], ["id", 12466]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$j3OZWavKtqcJE9b/Ifx3muxo5xpuPfigXC5R5R2djX./kt4NyIAUe"], ["created_at", "2018-12-07 02:37:31.136223"], ["updated_at", "2018-12-07 02:37:31.136223"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.138719"], ["last_sign_in_at", "2018-12-07 02:37:31.138719"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.139258"], ["id", 12467]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.2ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$xiY51GERch6k38NEY1gpv.IvnyN.7XEo5Fczs3soEXa1U3GW3Fvcq"], ["created_at", "2018-12-07 02:37:31.146840"], ["updated_at", "2018-12-07 02:37:31.146840"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.148854"], ["last_sign_in_at", "2018-12-07 02:37:31.148854"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.149198"], ["id", 12468]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$rEJsKIUS9c7J5CX7v8Zgv.XxSz3uKGGJUDuYYoHRDovdBw85vsJhC"], ["created_at", "2018-12-07 02:37:31.154985"], ["updated_at", "2018-12-07 02:37:31.154985"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.156500"], ["updated_at", "2018-12-07 02:37:31.156500"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9342” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.158195"], ["last_sign_in_at", "2018-12-07 02:37:31.158195"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.158555"], ["id", 12469]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9342"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9342], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:37:31.161358"], ["id", 9342]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9342 Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "New Fake Name"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Bro6rhTzYzmpajjeNJb9wueWBM4V8RzG.rG47v7SgKmbkAUzQgwdC"], ["created_at", "2018-12-07 02:37:31.166875"], ["updated_at", "2018-12-07 02:37:31.166875"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.168661"], ["updated_at", "2018-12-07 02:37:31.168661"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9343” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.170924"], ["last_sign_in_at", "2018-12-07 02:37:31.170924"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.171392"], ["id", 12470]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9343"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9343], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "rooms" SET "name" = $1, "location" = $2, "updated_at" = $3 WHERE "rooms"."id" = $4  [["name", "New Fake Name"], ["location", "New Fake Location"], ["updated_at", "2018-12-07 02:37:31.174500"], ["id", 9343]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/rooms/9343 Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$p9ReSMQm8TlkDdVZj51j1eAbWaC1pC6fO8M/7oCl8DRgRgGF7ScNi"], ["created_at", "2018-12-07 02:37:31.179896"], ["updated_at", "2018-12-07 02:37:31.179896"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.181587"], ["updated_at", "2018-12-07 02:37:31.181587"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9344” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.183331"], ["last_sign_in_at", "2018-12-07 02:37:31.183331"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.183694"], ["id", 12471]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9344"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9344], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.4ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.2ms | ActiveRecord: 0.3ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", ""], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$2WykiEbf1fuOlCVXyuYbxusp2ELi3dBIBXMSHbE64r4Nw.IJp/FgK"], ["created_at", "2018-12-07 02:37:31.194723"], ["updated_at", "2018-12-07 02:37:31.194723"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.196303"], ["updated_at", "2018-12-07 02:37:31.196303"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started PUT “/rooms/9345” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.198116"], ["last_sign_in_at", "2018-12-07 02:37:31.198116"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.198567"], ["id", 12472]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#update as HTML

Parameters: {"room"=>{"name"=>"", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}, "id"=>"9345"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9345], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
 (0.1ms)  ROLLBACK TO SAVEPOINT active_record_1
Rendering rooms/edit.html.erb within layouts/application
Rendered rooms/edit.html.erb within layouts/application (1.5ms)
Rendered layouts/_header-admin.html.erb (0.6ms)

Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.4ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$Z5A6t/QKiDomBnz8oOMTqeHJWWOrEeQKjUn2t1jMohKbhA.66c9eq"], ["created_at", "2018-12-07 02:37:31.210670"], ["updated_at", "2018-12-07 02:37:31.210670"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.212783"], ["last_sign_in_at", "2018-12-07 02:37:31.212783"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.213130"], ["id", 12473]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#create as HTML

Parameters: {"room"=>{"name"=>"New Fake Name", "location"=>"New Fake Location", "tipo_sala"=>"palestras"}}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$DjdG94AOmkYxtALt.8JDLeEKcdwPXjG8p.5VaQ7oyniUkGnCne3r2"], ["created_at", "2018-12-07 02:37:31.218986"], ["updated_at", "2018-12-07 02:37:31.218986"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.220488"], ["updated_at", "2018-12-07 02:37:31.220488"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9346” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.221837"], ["last_sign_in_at", "2018-12-07 02:37:31.221837"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.222190"], ["id", 12474]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9346"}
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9346], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9346]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.5ms)

Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course", "is_admin") VALUES ($1, $2, $3, $4, $5, $6, $7, $8) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$MftrjQlvKxzpaeB0G65SoeVABYIEVBWc3Ao.ONMCESqFrvYuglxAq"], ["created_at", "2018-12-07 02:37:31.229514"], ["updated_at", "2018-12-07 02:37:31.229514"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"], ["is_admin", "t"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.231073"], ["updated_at", "2018-12-07 02:37:31.231073"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9347” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.232672"], ["last_sign_in_at", "2018-12-07 02:37:31.232672"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.233116"], ["id", 12475]]
 (0.2ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9347"}
Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9347], ["LIMIT", 1]]
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  DELETE FROM "rooms" WHERE "rooms"."id" = $1  [["id", 9347]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Redirected to www.example.com/backoffice Completed 302 Found in 2ms (ActiveRecord: 0.6ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$ZFwLmzIrKBY4mq2m4xAJEuflwO3DWX4o43yQrAqEjpUepXtfvGtLm"], ["created_at", "2018-12-07 02:37:31.241154"], ["updated_at", "2018-12-07 02:37:31.241154"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.242724"], ["updated_at", "2018-12-07 02:37:31.242724"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9348” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.244196"], ["last_sign_in_at", "2018-12-07 02:37:31.244196"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.244612"], ["id", 12476]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9348"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

Room Load (0.2ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."name" = $1 LIMIT $2  [["name", "Fake-123"], ["LIMIT", 1]]
 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$6ANCD87P5R7OxJypoEGojuhl.DaSST8ZN5sC3oP8BVzpxiqGrmqGS"], ["created_at", "2018-12-07 02:37:31.250906"], ["updated_at", "2018-12-07 02:37:31.250906"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.252524"], ["updated_at", "2018-12-07 02:37:31.252524"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started DELETE “/rooms/9349” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.2ms)  SAVEPOINT active_record_1
SQL (0.3ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.253920"], ["last_sign_in_at", "2018-12-07 02:37:31.253920"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.254342"], ["id", 12477]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#destroy as HTML

Parameters: {"id"=>"9349"}

Redirected to www.example.com/ Filter chain halted as :is_admin? rendered or redirected Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.2ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$4DD5CGYFagJVqNnZGdnKxuazuvrPQa7vBRhU1bITAXFmUS5/Cxi26"], ["created_at", "2018-12-07 02:37:31.260221"], ["updated_at", "2018-12-07 02:37:31.260221"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-rooms” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.261810"], ["last_sign_in_at", "2018-12-07 02:37:31.261810"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.262139"], ["id", 12478]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_rooms as HTML

Rendering rooms/search_rooms.html.erb within layouts/application
Rendered rooms/search_rooms.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 3ms (Views: 2.9ms | ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$FelFu17xOKkTVrm2.PF2Ou2UtqL8GSXHQpWg5RxwroQKI/VWKNbAm"], ["created_at", "2018-12-07 02:37:31.274147"], ["updated_at", "2018-12-07 02:37:31.274147"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.275707"], ["updated_at", "2018-12-07 02:37:31.275707"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.276948"], ["updated_at", "2018-12-07 02:37:31.276948"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.278144"], ["updated_at", "2018-12-07 02:37:31.278144"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9350], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12479], ["LIMIT", 1]]
SQL (0.3ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12479], ["room_id", 9350], ["created_at", "2018-12-07 02:37:31.280953"], ["updated_at", "2018-12-07 02:37:31.280953"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started POST “/search-result” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.282615"], ["last_sign_in_at", "2018-12-07 02:37:31.282615"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.282971"], ["id", 12479]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML

Parameters: {"date_search"=>"22-06-2018", "time_search"=>"10:00:00"}
Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
Rendering rooms/search_result.html.erb within layouts/application
Rendered rooms/search_result.html.erb within layouts/application (1.2ms)
Rendered layouts/_header-user.html.erb (0.6ms)

Completed 200 OK in 9ms (Views: 2.9ms | ActiveRecord: 0.5ms)

Room Load (0.2ms)  SELECT "rooms".* FROM "rooms"
Room Load (0.3ms)  SELECT "rooms".* FROM "rooms" INNER JOIN "appointments" ON "appointments"."room_id" = "rooms"."id" WHERE (appointment_date = '22-06-2018' AND start_time = '10:00:00' AND status = 2)
 (0.1ms)  ROLLBACK
 (0.1ms)  BEGIN
 (0.1ms)  SAVEPOINT active_record_1
User Exists (0.2ms)  SELECT  1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2  [["email", "silva@silva.com"], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "registration", "course") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["email", "silva@silva.com"], ["encrypted_password", "$2a$04$wmh4pJW2DJaqMbaKuDw7g.nLRoVRZcYA/ZiI.epDsEi7xWAZbKpP."], ["created_at", "2018-12-07 02:37:31.299470"], ["updated_at", "2018-12-07 02:37:31.299470"], ["username", "testesilva"], ["registration", "150115464"], ["course", "Artes Cenicas"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.301133"], ["updated_at", "2018-12-07 02:37:31.301133"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.302397"], ["updated_at", "2018-12-07 02:37:31.302397"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  INSERT INTO "rooms" ("name", "location", "created_at", "updated_at", "tipo_sala") VALUES ($1, $2, $3, $4, $5) RETURNING "id"  [["name", "Fake-123"], ["location", "Fake Location"], ["created_at", "2018-12-07 02:37:31.303710"], ["updated_at", "2018-12-07 02:37:31.303710"], ["tipo_sala", "palestras"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1
 (0.1ms)  SAVEPOINT active_record_1
Room Load (0.1ms)  SELECT  "rooms".* FROM "rooms" WHERE "rooms"."id" = $1 LIMIT $2  [["id", 9353], ["LIMIT", 1]]
User Load (0.1ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 12480], ["LIMIT", 1]]
SQL (0.2ms)  INSERT INTO "appointments" ("appointment_date", "start_time", "status", "user_id", "room_id", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id"  [["appointment_date", "2018-06-22 00:00:00"], ["start_time", "10:00:00"], ["status", 2], ["user_id", 12480], ["room_id", 9353], ["created_at", "2018-12-07 02:37:31.306458"], ["updated_at", "2018-12-07 02:37:31.306458"]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Started GET “/search-result” for 127.0.0.1 at 2018-12-07 00:37:31 -0200

 (0.1ms)  SAVEPOINT active_record_1
SQL (0.2ms)  UPDATE "users" SET "sign_in_count" = $1, "current_sign_in_at" = $2, "last_sign_in_at" = $3, "current_sign_in_ip" = $4, "last_sign_in_ip" = $5, "updated_at" = $6 WHERE "users"."id" = $7  [["sign_in_count", 1], ["current_sign_in_at", "2018-12-07 02:37:31.307957"], ["last_sign_in_at", "2018-12-07 02:37:31.307957"], ["current_sign_in_ip", "127.0.0.1/32"], ["last_sign_in_ip", "127.0.0.1/32"], ["updated_at", "2018-12-07 02:37:31.308321"], ["id", 12480]]
 (0.1ms)  RELEASE SAVEPOINT active_record_1

Processing by RoomsController#search_result as HTML Redirected to www.example.com/search-rooms Completed 302 Found in 0ms (ActiveRecord: 0.0ms)

 (0.1ms)  ROLLBACK